 |
ATLAS Offline Software
|
#include <LArWFParamTool.h>
|
| | LArWFParamTool (const std::string &type, const std::string &name, const IInterface *parent) |
| |
| virtual | ~LArWFParamTool () |
| |
| virtual StatusCode | initialize () |
| |
| virtual StatusCode | finalize () |
| |
| StatusCode | getLArWaveParams (const LArCaliWave &larCaliWave, const HWIdentifier chid, const CaloGain::CaloGain gain, LArWFParams &wfParams, const LArOnOffIdMapping *cabling, std::optional< LArCaliWave > &omegaScan, std::optional< LArCaliWave > &resOscill0, std::optional< LArCaliWave > &resOscill1) 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, V, H > &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 |
| |
|
| WaveTiming_t | timeExtr (LArWave &gCali) const |
| |
| double | expTail (const LArWave &gCali, const WaveTiming_t &wt) const |
| |
| StatusCode | GetFstep (const LArWave &gCali, LArWFParams &wfParams, const WaveTiming_t &wt) const |
| |
| double | fstepMin (const LArWave &gCali, double fstep, const double Tc, const unsigned Ttail) const |
| |
| double | dFstep (const LArWave &gCali, const double fstep, const double Tc, const unsigned Ttail) const |
| |
| LArWave | dstepRespDfstep (const LArWave &gCali, const double &fstep, const double &Tc) const |
| |
| StatusCode | RTM_Omega0 (const LArWave &gCali, const HWIdentifier chid, LArWFParams &wfParams, const WaveTiming_t &wt, const LArOnOffIdMapping *cabling, std::optional< LArCaliWave > &omegaScan) const |
| |
| StatusCode | RTM_Taur (const LArWave &gCali, LArWFParams &wfParams, const WaveTiming_t &wt) const |
| |
| double | logChi2CosRespShaper (const double omega, const LArWave &gCali, const LArWFParams &wf, const waveRange_t &range) const |
| |
| double | logChi2InjRespRes (const double taur, const LArWave &gCali, const LArWFParams &wf, const waveRange_t &range) const |
| |
| LArWave | cosRespShaper (const LArWave &gCali, const double &fstep, const double &tcal, const double &w, const double &tsh) const |
| |
| double | omega0MinNum (double omegaMin, double omegaMax, const double tol, const LArWave &gCali, const LArWFParams &wf, const waveRange_t &) const |
| |
| double | taurMinNum (const double taurmin, const double taurmax, const double tol, const LArWave &gCali, const LArWFParams &wf, const waveRange_t &) const |
| |
| double | fminbr (double a, double b, const double tol, double(LArWFParamTool::*f)(double, const LArWave &, const LArWFParams &, const waveRange_t &) const, const LArWave &gCali, const LArWFParams &wf, const waveRange_t &range) const |
| |
| unsigned | checkStatus (const LArCaliWave &larCaliWave) const |
| |
| omegaScanParams_t | OmegaScanHelper (const Identifier id, const WaveTiming_t &wt) const |
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
| |
|
| static LArWave | stepResp (const LArWave &gCali, const double fstep, const double Tc) |
| |
| static LArWave | stepCorr (const LArWave &gCali, const double &fstep, const double &Tc) |
| |
| static double | dstepCorrDfstep (const double t, const double &fstep, const double &Tc) |
| |
| static LArWave | dstepCorrDfstep (const LArWave &gCali, const double &fstep, const double &Tcal) |
| |
| static LArWave | cosResp (const LArWave &gCali, const double &fstep, const double &tcal, const double &omega) |
| |
| static LArWave | injRespRes (const LArWave &w, const double omega0, const double taur) |
| |
| static LArWave | injCorr (const unsigned N, const double dt, const double omega0, const double taur) |
| |
| static LArWave | cosCorr (const unsigned N, const double dt, const double fstep, const double tcal, const double omega) |
| |
Definition at line 28 of file LArWFParamTool.h.
◆ StoreGateSvc_t
◆ anonymous enum
| Enumerator |
|---|
| FailExtract | |
| DoExtract | |
| DefaultNotSet | |
Definition at line 33 of file LArWFParamTool.h.
◆ anonymous enum
| Enumerator |
|---|
| OK | |
| TooShort | |
| NotFilled | |
| LowStat | |
| Noisy | |
| Oscillating | |
Definition at line 68 of file LArWFParamTool.h.
◆ LArWFParamTool()
| LArWFParamTool::LArWFParamTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
Definition at line 36 of file LArWFParamTool.cxx.
45 declareInterface<LArWFParamTool>(
this);
53 int default_deltattail[3] = { 100, 50, 0 } ;
54 for (
unsigned i=0;
i<3; ++
i )
60 int default_ttailmin[4] = { 0, 0, 0, 0 };
61 int default_ttailmax[4] = { 0, 0, 0, 0 };
62 for (
unsigned i=0;
i<4; ++
i ) {
71 bool defaults[4] = { false , true , false ,
true } ;
72 for (
unsigned i=0 ;
i<4 ; ++
i )
81 float default_omegamin[4] = { 0.01 , 0.10 , 0.10 , 0.10 };
82 float default_omegamax[4] = { 1.00 , 0.33 , 0.20 , 0.33 };
83 unsigned default_npoints[4] = { 100 , 100 , 100 , 100 };
87 for (
unsigned i=0 ;
i<4 ; ++
i ) {
◆ ~LArWFParamTool()
| LArWFParamTool::~LArWFParamTool |
( |
| ) |
|
|
virtualdefault |
◆ checkStatus()
Definition at line 976 of file LArWFParamTool.cxx.
990 const unsigned range = 2 ;
993 double maxSample = -9.E+10 ;
1004 if ( thisSample > maxSample ) maxSample = thisSample ;
1007 double loc_tremble = 0 ;
1009 double delta = thisSample - larCaliWave.
getSample(
k) ;
1010 loc_tremble += delta*delta;
1011 if ( delta < 0 )
max = false ;
1013 if (
max ) nMax ++ ;
1014 tremble += loc_tremble / (2*
range) ;
1017 if ( sqrt(tremble/
length)/maxSample > 0.1 ) {
◆ cosCorr()
Definition at line 734 of file LArWFParamTool.cxx.
736 const double C1=(fstep*fstep-fstep*fstep*fstep)/Tc;
737 const double C2=(fstep+omega*omega*Tc*Tc);
738 const double C3=(fstep-1.)*omega*Tc;
739 const double C4=( fstep*fstep+omega*omega*Tc*Tc );
740 for (
unsigned i=0 ;
i<
N ;
i++ ) {
743 const double p=(C1*
exp(-fstep*
t/Tc) - omega*(C2*
sin(omega*
t) + C3*
cos(omega*
t))) / C4 ;
◆ cosResp()
◆ cosRespShaper()
◆ 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()
◆ dFstep()
◆ dstepCorrDfstep() [1/2]
| double LArWFParamTool::dstepCorrDfstep |
( |
const double |
t, |
|
|
const double & |
fstep, |
|
|
const double & |
Tc |
|
) |
| |
|
staticprivate |
◆ dstepCorrDfstep() [2/2]
◆ dstepRespDfstep()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ expTail()
Definition at line 311 of file LArWFParamTool.cxx.
319 const unsigned nAfterMin = 150;
320 const unsigned nBeforeEnd = 125;
321 t1 = wt.Tmin + nAfterMin;
328 if (fitPars.size() == 2 ) {
335 const double Tcal = -1./
A ;
◆ 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 LArWFParamTool::finalize |
( |
| ) |
|
|
inlinevirtual |
◆ fminbr()
Definition at line 865 of file LArWFParamTool.cxx.
878 const double r = (3.-sqrt(5.0))/2;
880 assert( tol > 0 &&
b >
a );
882 v =
a +
r*(
b-
a); fv = (this->*
f)(v,gCali,wf,waverange);
890 double middle_range = (
a+
b)/2;
895 if( fabs(
x-middle_range) +
range/2 <= 2*tol_act )
899 new_step =
r * (
x<middle_range ?
b-
x :
a-
x );
903 if( fabs(
x-
w) >= tol_act )
920 if( fabs(
p) < fabs(new_step*
q) &&
921 p >
q*(
a-
x+2*tol_act) &&
922 p <
q*(
b-
x-2*tol_act) )
930 if( fabs(new_step) < tol_act ) {
931 if( new_step > (
double)0 )
939 double t =
x + new_step;
940 double ft = (this->*
f)(t,gCali,wf,waverange);
958 if(
ft <= fw ||
w==
x )
963 else if(
ft<=fv ||
v==
x ||
v==
w )
◆ fstepMin()
| double LArWFParamTool::fstepMin |
( |
const LArWave & |
gCali, |
|
|
double |
fstep, |
|
|
const double |
Tc, |
|
|
const unsigned |
Ttail |
|
) |
| const |
|
private |
Definition at line 356 of file LArWFParamTool.cxx.
361 const double dfstep =
dFstep(gCali,fstep,Tc,Ttail) ;
363 if ( niter > 50 || fstep < 0. ) {
367 if ( fabs( dfstep ) <=
m_TINY )
break;
◆ GetFstep()
Definition at line 344 of file LArWFParamTool.cxx.
349 const double fstep1=0.0;
350 const double Tcal=wfParams.
tcal();
353 return StatusCode::SUCCESS ;
◆ getLArWaveParams()
Definition at line 193 of file LArWFParamTool.cxx.
208 WaveTiming_t waveTiming=
timeExtr(gCali);
212 const double Tcal =
expTail(gCali,waveTiming) ;
215 <<
" gain=" << (
int)
gain ) ;
217 return StatusCode::FAILURE;
228 if (
sc.isFailure() ) {
230 <<
" gain=" << (
int)
gain );
241 if (
sc.isFailure() ) {
243 <<
" gain=" << (
int)
gain );
262 if (
sc.isFailure() ) {
264 <<
" gain=" << (
int)
gain ) ;
278 return( StatusCode::SUCCESS );
◆ initialize()
| StatusCode LArWFParamTool::initialize |
( |
| ) |
|
|
virtual |
Definition at line 112 of file LArWFParamTool.cxx.
114 std::string
layerName[4] = {
"PS" ,
"Strips" ,
"Middle" ,
"Back" } ;
123 ATH_MSG_INFO(
"Cosine response (Omega0) -> Will use OmegaScanHelper() to dynamically select settings" );
136 ATH_MSG_INFO(
"Will use OmegaScanHelper() to dynamically select settings" ) ;
142 return StatusCode::FAILURE ;
176 return StatusCode::FAILURE;
185 return StatusCode::FAILURE;
189 return StatusCode::SUCCESS;
◆ injCorr()
Definition at line 762 of file LArWFParamTool.cxx.
766 const double tau0 = 1./omega0;
767 const double Delta = taur*taur - 4*tau0*tau0;
769 const double sqrtDelta = sqrt(Delta) ;
770 const double taup = 0.5*( taur + sqrtDelta ) ;
771 const double taum = 0.5*( taur - sqrtDelta ) ;
772 for (
unsigned i=0 ;
i<
N ;
i++ ) {
774 w.setSample(
i, (
exp(-
t/taup) -
exp(-
t/taum) ) / (taup - taum));
777 }
else if ( Delta < 0 ) {
778 const double T = sqrt(-Delta) ;
779 const double A = 2 * taur / ( (taur*taur) - Delta ) ;
780 const double B = 2 *
T / ( (taur*taur) - Delta );
781 for (
unsigned i=0 ;
i<
N ;
i++ ) {
787 const double tau = 0.5 * taur ;
789 for (
unsigned i=0 ;
i<
N ;
i++ ) {
791 w.setSample(
i,
exp(-
t/tau) *
t / (tau*tau)) ;
◆ injRespRes()
◆ 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& LArWFParamTool::interfaceID |
( |
| ) |
|
|
inlinestatic |
◆ logChi2CosRespShaper()
◆ logChi2InjRespRes()
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ omega0MinNum()
◆ OmegaScanHelper()
Definition at line 495 of file LArWFParamTool.cxx.
497 omegaScanParams_t ret{};
510 ret.DeltaOmega = 0.02 ;
517 ret.range.min = wt.Tstart;
518 ret.range.max = wt.Tcross;
520 ret.omegamin = 0.240;
521 ret.omegamax = 0.330;
526 ret.range.min = wt.Tstart;
527 ret.range.max = wt.Tcross;
528 ret.cosRespScan =
true;
534 ret.omegamin = 0.220;
535 ret.omegamax = 0.310;
544 ret.range.min = wt.Tstart;
546 ret.cosRespScan =
false;
547 ret.omegamin = 0.060;
548 ret.omegamax = 0.215;
553 ret.range.min = wt.Tstart;
554 ret.range.max = wt.Tcross;
555 ret.cosRespScan =
false;
556 ret.omegamin = 0.100;
557 ret.omegamax = 0.700;
571 ret.DeltaOmega = 0.001 ;
577 if ( IsEMECInnerWheel ) {
582 ret.omegamin = 0.12 ;
585 ret.omegamin = 0.12 ;
587 ret.omegamax = 0.16 ;
592 ret.omegamin = 0.14 ;
593 ret.omegamax = 0.18 ;
605 ret.cosRespScan =
true;
610 ret.cosRespScan =
false;
620 ret.cosRespScan =
false;
627 ret.cosRespScan =
true;
631 ret.omegamax = 0.140 ;
634 ret.omegamax = 0.135 ;
637 ret.omegamax = 0.15 ;
644 ret.omegamin = 0.12 ;
645 ret.omegamax = 0.20 ;
648 ret.omegamin = 0.12 ;
649 ret.omegamax = 0.22 ;
652 ret.omegamin = 0.12 ;
653 ret.omegamax = 0.24 ;
656 ret.omegamin = 0.12 ;
657 ret.omegamax = 0.245 ;
661 ret.omegamin = 0.24 ;
662 ret.omegamax = 0.32 ;
665 ret.cosRespScan =
false;
◆ 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()
◆ renounceArray()
◆ RTM_Omega0()
Definition at line 423 of file LArWFParamTool.cxx.
431 omegaScanParams_t OSParams{};
434 OSParams.cosRespScan = true ;
435 OSParams.omegamin = 0.01 ;
436 OSParams.omegamax = 1. ;
437 OSParams.Npoint = 100 ;
438 OSParams.DeltaOmega = 0.01 ;
448 OSParams.DeltaOmega = 0.02 ;
454 waveRange_t
range=OSParams.range;
461 if ( OSParams.cosRespScan ){
463 const double dOmega = (OSParams.omegamax-OSParams.omegamin)/OSParams.Npoint;
464 const unsigned vectSize = (
unsigned) ceil ( OSParams.omegamax/dOmega );
466 if (omegaScanWave) omegaScanWave->setSize(vectSize);
468 for (
int i=0;
i<OSParams.Npoint;
i++) {
469 const double omega = OSParams.omegamin+dOmega*
i ;
471 if (omegaScanWave) omegaScanWave->setSample(
i+
indexmin,
chi2);
472 if (
chi2 < chi2min ) {
478 OSParams.omegamin = omega0raw - OSParams.DeltaOmega ;
479 OSParams.omegamax = omega0raw + OSParams.DeltaOmega ;
482 if ( OSParams.omegamin == OSParams.omegamax ) {
491 return StatusCode::SUCCESS ;
◆ RTM_Taur()
Definition at line 680 of file LArWFParamTool.cxx.
687 double taurmax = 100.;
689 if ( wf.omega0()==0) {
691 ATH_MSG_VERBOSE(
"*** Injection point skipped\t--> m_Taur = " << wf.taur() ) ;
710 return StatusCode::SUCCESS ;
◆ stepCorr()
◆ 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.
◆ taurMinNum()
◆ timeExtr()
◆ updateVHKA()
◆ m_cosRespScan
| std::vector<bool> LArWFParamTool::m_cosRespScan |
|
private |
◆ m_DEFAULT
| const double LArWFParamTool::m_DEFAULT = -1 |
|
staticprivate |
◆ m_DeltaTtail
| std::vector<int> LArWFParamTool::m_DeltaTtail |
|
private |
◆ m_detStore
◆ m_emId
◆ m_EPSILON
| const double LArWFParamTool::m_EPSILON =2.22045e-16 |
|
staticprivate |
◆ m_evtStore
◆ m_isSC
| bool LArWFParamTool::m_isSC |
|
private |
◆ m_NBaseline
| unsigned int LArWFParamTool::m_NBaseline |
|
private |
◆ m_npoints
| std::vector<unsigned> LArWFParamTool::m_npoints |
|
private |
◆ m_omegamax
| std::vector<double> LArWFParamTool::m_omegamax |
|
private |
◆ m_omegamin
| std::vector<double> LArWFParamTool::m_omegamin |
|
private |
◆ m_onlineHelper
◆ m_ShiftToStart
| bool LArWFParamTool::m_ShiftToStart |
|
private |
◆ m_SQRT_EPSILON
| const double LArWFParamTool::m_SQRT_EPSILON =1.49012e-08 |
|
staticprivate |
◆ m_storeResOscill
| std::vector<bool> LArWFParamTool::m_storeResOscill |
|
private |
◆ m_SubtractBaseline
| bool LArWFParamTool::m_SubtractBaseline |
|
private |
◆ m_TINY
| const double LArWFParamTool::m_TINY =2.22045e-16 |
|
staticprivate |
◆ m_Tshaper
| double LArWFParamTool::m_Tshaper |
|
private |
◆ m_TtailMax
| std::vector<int> LArWFParamTool::m_TtailMax |
|
private |
◆ m_TtailMin
| std::vector<int> LArWFParamTool::m_TtailMin |
|
private |
◆ m_UseOmegaScanHelper
| bool LArWFParamTool::m_UseOmegaScanHelper |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_wHelper
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
double getSumRegion(const LArWave &theWave, unsigned iFirst, unsigned iLast) const
size_t getSize() const
number of time samples
unsigned getStart(const LArWave &theWave) const
void setTcal(double tcal)
void setFstep(double fstep)
Scalar eta() const
pseudorapidity method
const std::vector< double > & getWave() const
Wave parameters.
double getBaseline(const LArWave &theWave, unsigned nBase) const
const LArEM_ID * getEM_ID(void) const
std::vector< ALFA_RawDataCollection_p1 > t1
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
value_type get_compact() const
Get the compact id.
int getDAC() const
DAC value.
int sampling(const Identifier id) const
return sampling according to :
#define ATH_MSG_VERBOSE(x)
unsigned int getMax(const LArWave &theWave) const
return index of maximum sample
int eta(const Identifier id) const
return eta according to :
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
void setTshaper(double tsh)
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const double & getSample(const unsigned int i) const
Amplitude per time bin.
double getSumTail(const LArWave &theWave, unsigned iFirst) const
This class initializes the Calo (LAr and Tile) offline identifiers.
void setFlag(unsigned flag)
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
void setTaur(double taur)
double getSumSquareRegion(const LArWave &theWave, unsigned iFirst, unsigned iLast) const
double chi2(TH1 *h0, TH1 *h1)
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
Helper for the Liquid Argon Calorimeter cell identifiers.
double getSumSquareTail(const LArWave &theWave, unsigned iFirst) const
unsigned getZeroCross(const LArWave &theWave) const
const std::string & layerName(LayerIndex index)
convert LayerIndex into a string
bool is_em_endcap_inner(const Identifier id) const
test if the id belongs to the EM Endcap inner wheel
std::vector< ALFA_RawDataContainer_p1 > t2
unsigned int getMin(const LArWave &theWave) const
return index of minimum sample
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
void setOmega0(double omega0)
#define ATH_MSG_WARNING(x)
double getError(unsigned i) const
error per time bin
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
const LArEM_SuperCell_ID * getEM_SuperCell_ID(void) const
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
constexpr int pow(int base, int exp) noexcept
std::vector< double > expfit(const LArWave &theWave, unsigned iFirst, unsigned iLast, double &rho) const
int getTrigger(unsigned i) const
trigger per time bin