|
ATLAS Offline Software
|
#include <LArPhysWaveTool.h>
|
| LArPhysWaveTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~LArPhysWaveTool () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | finalize () |
|
StatusCode | makeLArPhysWave (const LArWFParams &, const LArCaliWave &, int region, int layer, LArPhysWave &predLArPhysWave, float &MphysMcali) const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
LArWave | exp2Tri (const LArWave &, const unsigned N, const double dt, const LArWFParams ¶ms) const |
|
LArWave | physPred (LArCaliWave &) |
|
LArWave | injResp (const LArWave &w, unsigned N, double dt, const LArWFParams ¶ms) const |
|
LArWave | stepResp (const LArCaliWave &gCali, const LArWFParams ¶ms) const |
|
LArWave | step2Tri (const LArWave &w, unsigned N, double dt, const LArWFParams ¶ms) const |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
static double | caliPhysCorr (double t, const LArWFParams ¶ms) |
|
static LArWave | caliPhysCorr (const unsigned N, const double dt, const LArWFParams ¶ms) |
|
static double | stepPhysCorr (double t, const double dT) |
|
static LArWave | stepPhysCorr (unsigned N, double dt, const double dT) |
|
static LArWave | stepCorr (unsigned N, double dt, const LArWFParams ¶ms) |
|
static double | stepCorr (double t, const LArWFParams ¶ms) |
|
static LArWave | injCorr (unsigned N, double dt, const LArWFParams ¶ms) |
|
static double | injCorr (double t, const LArWFParams ¶ms) |
|
Definition at line 20 of file LArPhysWaveTool.h.
◆ StoreGateSvc_t
◆ LArPhysWaveTool()
LArPhysWaveTool::LArPhysWaveTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
Definition at line 7 of file LArPhysWaveTool.cxx.
13 declareInterface<LArPhysWaveTool>(
this);
16 bool injPcorr[4] = { false , true , true ,
false } ;
20 bool injPtaur[4] = { false , false , true ,
false } ;
◆ ~LArPhysWaveTool()
LArPhysWaveTool::~LArPhysWaveTool |
( |
| ) |
|
|
virtualdefault |
◆ caliPhysCorr() [1/2]
◆ caliPhysCorr() [2/2]
Definition at line 135 of file LArPhysWaveTool.cxx.
136 const double fstep =
params.fstep() ;
137 const double Tc =
params.tcal() ;
138 const double Td =
params.tdrift() ;
140 if ( fstep==0. )
return ((1.-Tc/Td)-
t/Td)/Tc ;
141 return (1.-fstep)/Tc *
exp (-fstep*
t/Tc)
142 +1./(fstep*Td) * ((1.-fstep)*
exp(-fstep*
t/Tc)-1.);
145 if ( fstep==0. )
return ((1.-Tc/Td)-
t/Td)/Tc
146 + ((
t-Td)/Td+Tc/Td)/Tc ;
147 return (1.-fstep)/Tc *
exp (-fstep*
t/Tc)
148 +1./(fstep*Td) * ( (1.-fstep)*
exp(-fstep*
t/Tc) - 1. )
149 -1./(fstep*Td) * ( (1.-fstep)*
exp(-fstep*(
t-Td)/Tc) - 1. ) ;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ exp2Tri()
◆ 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 LArPhysWaveTool::finalize |
( |
| ) |
|
|
inlinevirtual |
◆ initialize()
virtual StatusCode LArPhysWaveTool::initialize |
( |
| ) |
|
|
inlinevirtual |
◆ injCorr() [1/2]
Definition at line 219 of file LArPhysWaveTool.cxx.
220 const double tau0 = 1./
params.omega0();
221 const double taur =
params.taur();
224 double sqrtDelta = std::sqrt(Delta) ;
225 double taup = 0.5*( taur + sqrtDelta ) ;
226 double taum = 0.5*( taur - sqrtDelta ) ;
227 return (
exp(-
t/taup) -
exp(-
t/taum) ) / ( taup - taum ) ;
228 }
else if ( Delta < 0 ) {
229 double T = std::sqrt(-Delta) ;
230 double A = 2 * taur / (
std::pow(taur,2) - Delta ) ;
231 double B = 2 *
T / (
std::pow(taur,2) - Delta ) ;
234 double tau = 0.5 * taur ;
238 double taur2 = taur*taur, tau02 = tau0*tau0 ;
239 double taua = sqrt( 4.*tau02 - taur2 );
240 return (2./taua)*
exp(-
t*taur/(2.*tau02))*
sin(
t*taua/(2.*tau02));
◆ injCorr() [2/2]
◆ 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()
static const InterfaceID& LArPhysWaveTool::interfaceID |
( |
| ) |
|
|
inlinestatic |
◆ makeLArPhysWave()
Definition at line 37 of file LArPhysWaveTool.cxx.
60 ATH_MSG_VERBOSE (
"*** Normalisation \t|-> YES (CaliWave peak = " << peak <<
")" );
64 gCaliMB = gCaliMB * (1./peak) ;
79 && larWFParam.
omega0() != 0. ) ;
81 const unsigned N = gCaliMB.getSize();
82 const double dt = gCaliMB.getDt() ;
85 if ( ! doInjPointCorr ) {
110 gCaliMB.getSample( wHelper.
getMax(gCaliMB) ) ;
112 ATH_MSG_VERBOSE (
"*** Physics waveform\t|-> m_MphysMcali = " << MphysMcali );
116 return StatusCode::SUCCESS;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ 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.
◆ physPred()
◆ renounce()
◆ renounceArray()
◆ step2Tri()
◆ stepCorr() [1/2]
◆ stepCorr() [2/2]
◆ stepPhysCorr() [1/2]
double LArPhysWaveTool::stepPhysCorr |
( |
double |
t, |
|
|
const double |
dT |
|
) |
| |
|
staticprivate |
◆ stepPhysCorr() [2/2]
LArWave LArPhysWaveTool::stepPhysCorr |
( |
unsigned |
N, |
|
|
double |
dt, |
|
|
const double |
dT |
|
) |
| |
|
staticprivate |
◆ stepResp()
◆ 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()
◆ m_detStore
◆ m_evtStore
◆ m_injPointCorr
bool LArPhysWaveTool::m_injPointCorr |
|
private |
◆ m_injPointCorrLayer
std::vector<bool> LArPhysWaveTool::m_injPointCorrLayer |
|
private |
◆ m_injPointUseTauR
std::vector<bool> LArPhysWaveTool::m_injPointUseTauR |
|
private |
◆ m_normalizeCali
bool LArPhysWaveTool::m_normalizeCali |
|
private |
◆ m_subtractBaseline
bool LArPhysWaveTool::m_subtractBaseline |
|
private |
◆ m_timeOriginShift
bool LArPhysWaveTool::m_timeOriginShift |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
size_t getSize() const
number of time samples
unsigned getStart(const LArWave &theWave) const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const std::vector< double > & getWave() const
Wave parameters.
double getBaseline(const LArWave &theWave, unsigned nBase) const
const double & getDt() const
delta time
LArWave translate(const LArWave &theWave, int nShift, double baseline=0.) const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
unsigned int getMax(const LArWave &theWave) const
return index of maximum sample
virtual void setOwner(IDataHandleHolder *o)=0
const double & getSample(const unsigned int i) const
Amplitude per time bin.
void setTaur(double taur)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
constexpr int pow(int base, int exp) noexcept
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>