#include <LArDeltaRespTool.h>
Definition at line 19 of file LArDeltaRespTool.h.
◆ StoreGateSvc_t
◆ LArDeltaRespTool()
| LArDeltaRespTool::LArDeltaRespTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 11 of file LArDeltaRespTool.cxx.
19{
24}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ ~LArDeltaRespTool()
| LArDeltaRespTool::~LArDeltaRespTool |
( |
| ) |
|
|
virtualdefault |
◆ compute_deltaresp()
| void LArDeltaRespTool::compute_deltaresp |
( |
| ) |
|
|
private |
Definition at line 47 of file LArDeltaRespTool.cxx.
48{
49 LArWaveHelper wHelper;
50
51
52 LArWave gCaliMB(
m_gCali), gDelta;
53
54
59
60
63 double peak = gCaliMB.getSample( wHelper.
getMax(gCaliMB) ) ;
65 if ( peak <=0 ) {
67 } else {
68 gCaliMB = gCaliMB * (1./peak) ;
69 }
70 } else {
72 }
73
74
79
81
84 } else {
85
87
88
90 }
91
92
93 int deltaRespDAC = -3 ;
94
97 deltaRespDAC ,
100
101}
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
LArWave translate(const LArWave &theWave, int nShift, double baseline=0.) const
double getBaseline(const LArWave &theWave, unsigned nBase) const
unsigned int getMax(const LArWave &theWave) const
return index of maximum sample
unsigned getStart(const LArWave &theWave) const
const std::vector< double > & getWave() const
Wave parameters.
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ deltaCorr() [1/2]
| LArWave LArDeltaRespTool::deltaCorr |
( |
| ) |
const |
|
private |
◆ deltaCorr() [2/2]
| double LArDeltaRespTool::deltaCorr |
( |
double | t | ) |
const |
|
private |
◆ deltaResp()
Definition at line 104 of file LArDeltaRespTool.cxx.
105{
108 LArWaveHelper wHelper;
110}
LArWave derive_smooth(const LArWave &theWave) const
smoothed derivative
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
| virtual StatusCode LArDeltaRespTool::finalize |
( |
| ) |
|
|
inlinevirtual |
◆ initialize()
| virtual StatusCode LArDeltaRespTool::initialize |
( |
| ) |
|
|
inlinevirtual |
◆ injCorr() [1/2]
| LArWave LArDeltaRespTool::injCorr |
( |
| ) |
const |
|
private |
◆ injCorr() [2/2]
| double LArDeltaRespTool::injCorr |
( |
double | t | ) |
const |
|
private |
Definition at line 140 of file LArDeltaRespTool.cxx.
140 {
143 double Delta =
pow(taur,2.) -
pow(2*
tau0,2.) ;
144 if ( Delta > 0 ) {
145 double sqrtDelta = sqrt(Delta) ;
146 double taup = 0.5*( taur + sqrtDelta ) ;
147 double taum = 0.5*( taur - sqrtDelta ) ;
149 } else if ( Delta < 0 ) {
150 double T = sqrt(-Delta) ;
151 double A = 2 * taur / (
pow(taur,2.) - Delta ) ;
152 double B = 2 *
T / (
pow(taur,2.) - Delta ) ;
153 return 2 *
exp(-A*t) *
sin(B*t) /
T ;
154 } else {
155 double tau = 0.5 * taur ;
156 return exp(-t/tau) *
t /
pow(tau,2.) ;
157 }
158#if 0
159 double taur2 = taur*taur, tau02 =
tau0*
tau0 ;
160 double taua = sqrt( 4.*tau02 - taur2 );
161 return (2./taua)*
exp(-t*taur/(2.*tau02))*
sin(t*taua/(2.*tau02));
162#endif
163}
constexpr int pow(int base, int exp) noexcept
◆ injResp()
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
| const InterfaceID & LArDeltaRespTool::interfaceID |
( |
| ) |
|
|
inlinestatic |
◆ makeLArDeltaResp()
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ DEFAULT
| const int LArDeltaRespTool::DEFAULT =-1 |
|
staticprivate |
◆ m_detStore
◆ m_evtStore
◆ m_Fstep
| double LArDeltaRespTool::m_Fstep |
|
private |
◆ m_gCali
◆ m_gDelta
◆ m_injPointCorr
| bool LArDeltaRespTool::m_injPointCorr |
|
private |
◆ m_normalizeCali
| bool LArDeltaRespTool::m_normalizeCali |
|
private |
◆ m_Omega0
| double LArDeltaRespTool::m_Omega0 |
|
private |
◆ m_subtractBaseline
| bool LArDeltaRespTool::m_subtractBaseline |
|
private |
◆ m_Taur
| double LArDeltaRespTool::m_Taur |
|
private |
◆ m_Tcal
| double LArDeltaRespTool::m_Tcal |
|
private |
◆ m_Tdrift
| double LArDeltaRespTool::m_Tdrift |
|
private |
◆ m_timeOriginShift
| bool LArDeltaRespTool::m_timeOriginShift |
|
private |
◆ m_Tstart
| unsigned LArDeltaRespTool::m_Tstart |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: