ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
LArDeltaRespTool Class Reference

#include <LArDeltaRespTool.h>

Inheritance diagram for LArDeltaRespTool:
Collaboration diagram for LArDeltaRespTool:

Public Member Functions

 LArDeltaRespTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~LArDeltaRespTool ()
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
LArCaliWave makeLArDeltaResp (const LArWFParams &, const LArCaliWave &)
 
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
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

void compute_deltaresp ()
 
LArWave deltaResp (const LArWave &) const
 
LArWave deltaCorr () const
 
double deltaCorr (double t) const
 
LArWave injResp (const LArWave &w) const
 
LArWave injCorr () const
 
double injCorr (double t) 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...
 

Private Attributes

LArCaliWave m_gCali
 
LArCaliWave m_gDelta
 
bool m_injPointCorr
 
bool m_normalizeCali
 
bool m_timeOriginShift
 
bool m_subtractBaseline
 
double m_Tdrift
 
double m_Fstep
 
double m_Tcal
 
double m_Omega0
 
double m_Taur
 
unsigned m_Tstart
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Static Private Attributes

static const int DEFAULT =-1
 

Detailed Description

Definition at line 19 of file LArDeltaRespTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ LArDeltaRespTool()

LArDeltaRespTool::LArDeltaRespTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 11 of file LArDeltaRespTool.cxx.

13  m_Tdrift(0),
14  m_Fstep(0),
15  m_Tcal(0),
16  m_Omega0(0),
17  m_Taur(0),
18  m_Tstart(0)
19 {
20  declareProperty("InjPointCorr",m_injPointCorr=true) ;
21  declareProperty("NormalizeCali",m_normalizeCali=true) ;
22  declareProperty("TimeOriginShift",m_timeOriginShift=false) ;
23  declareProperty("SubtractBaseline",m_subtractBaseline=true) ;
24 }

◆ ~LArDeltaRespTool()

LArDeltaRespTool::~LArDeltaRespTool ( )
virtualdefault

Member Function Documentation

◆ compute_deltaresp()

void LArDeltaRespTool::compute_deltaresp ( )
private

Definition at line 47 of file LArDeltaRespTool.cxx.

48 {
49  LArWaveHelper wHelper;
50 
51  // calib. signal at Mother Board :
52  LArWave gCaliMB(m_gCali), gDelta;
53 
54  // shift gCaliMB to start point and remove baseline
55  m_Tstart = wHelper.getStart(gCaliMB) ;
56  double baseline = wHelper.getBaseline(gCaliMB,m_Tstart) ;
57  if ( m_subtractBaseline ) gCaliMB = gCaliMB + (-baseline) ;
58  if ( m_timeOriginShift ) gCaliMB = wHelper.translate(gCaliMB,-m_Tstart,baseline) ;
59 
60  // normalization of calibration pulse
61  if ( m_normalizeCali ) {
62  ATH_MSG_VERBOSE ( "*** Normalisation \t|-> YES" );
63  double peak = gCaliMB.getSample( wHelper.getMax(gCaliMB) ) ;
64  ATH_MSG_VERBOSE ( "peak = " << peak );
65  if ( peak <=0 ) {
66  ATH_MSG_WARNING ( "Peak value <=0 , cannot normalize!" );
67  } else {
68  gCaliMB = gCaliMB * (1./peak) ;
69  }
70  } else {
71  ATH_MSG_VERBOSE ( "*** Normalisation \t|-> NO" );
72  }
73 
74  // delta responde waveform prediction
75  ATH_MSG_VERBOSE ( "*** Delta response \t|-> m_Fstep = " << m_Fstep << " ns " );
76  ATH_MSG_VERBOSE ( "*** Delta response \t|-> m_Tcal = " << m_Tcal << " ns " );
77  ATH_MSG_VERBOSE ( "*** Delta response \t|-> m_Omega0 = " << m_Omega0 << " GHz" );
78  ATH_MSG_VERBOSE ( "*** Delta response \t|-> m_Taur = " << m_Taur << " ns " );
79 
80  if ( ! m_injPointCorr ) {
81  // perform only exp->triangle correction
82  ATH_MSG_VERBOSE ( "*** Inj.Point Corr. \t|-> NO" );
83  gDelta = deltaResp ( gCaliMB ) ;
84  } else {
85  // perform exp->triangle and then injection point correction
86  ATH_MSG_VERBOSE ( "*** Inj.Point Corr. \t|-> YES" );
87  //gDelta = deltaResp ( gCaliMB ) ;
88  //gDelta = LArPhysWaveTool::injResp( gDelta ); // HOW TO MAKE THIS WORKING???
89  gDelta = injResp( deltaResp ( gCaliMB ) ) ;
90  }
91 
92  //int deltaRespDAC = m_gCali.getDAC() ;
93  int deltaRespDAC = -3 ;
94 
95  m_gDelta = LArCaliWave( gDelta.getWave() ,
96  m_gCali.getDt() ,
97  deltaRespDAC ,
99  m_gCali.getFlag() );
100 
101 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ deltaCorr() [1/2]

LArWave LArDeltaRespTool::deltaCorr ( ) const
private

Definition at line 112 of file LArDeltaRespTool.cxx.

113 {
114  unsigned N = m_gCali.getSize() ;
115  double dt = m_gCali.getDt() ;
116  LArWave w(N,dt) ;
117  for ( unsigned i=0 ; i<N ; i++ ) w.setSample(i,deltaCorr(i*dt)) ;
118  return w ;
119 }

◆ deltaCorr() [2/2]

double LArDeltaRespTool::deltaCorr ( double  t) const
private

Definition at line 121 of file LArDeltaRespTool.cxx.

122 {
123  double fstep = m_Fstep ;
124  double Tc = m_Tcal ;
125  return ((fstep*fstep-fstep)/(Tc*Tc)) * exp( -fstep*t/Tc );
126 }

◆ deltaResp()

LArWave LArDeltaRespTool::deltaResp ( const LArWave w) const
private

Definition at line 104 of file LArDeltaRespTool.cxx.

105 {
106  double fstep = m_Fstep;
107  double Tc = m_Tcal;
108  LArWaveHelper wHelper;
109  return ( w % deltaCorr() ) + w*((1.-fstep)/Tc) + wHelper.derive_smooth(w);
110 }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

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

Definition at line 33 of file LArDeltaRespTool.h.

33 {return StatusCode::SUCCESS;}

◆ initialize()

virtual StatusCode LArDeltaRespTool::initialize ( )
inlinevirtual

Definition at line 32 of file LArDeltaRespTool.h.

32 {return StatusCode::SUCCESS;}

◆ injCorr() [1/2]

LArWave LArDeltaRespTool::injCorr ( ) const
private

Definition at line 132 of file LArDeltaRespTool.cxx.

132  {
133  unsigned N = m_gCali.getSize() ;
134  double dt = m_gCali.getDt() ;
135  LArWave w(N,dt) ;
136  for ( unsigned i=0 ; i<N ; i++ ) w.setSample(i,injCorr(i*dt)) ;
137  return w ;
138 }

◆ injCorr() [2/2]

double LArDeltaRespTool::injCorr ( double  t) const
private

Definition at line 140 of file LArDeltaRespTool.cxx.

140  {
141  double tau0 = 1./m_Omega0;
142  double taur = m_Taur;
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 ) ;
148  return ( exp(-t/taup) - exp(-t/taum) ) / ( taup - taum ) ;
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 }

◆ injResp()

LArWave LArDeltaRespTool::injResp ( const LArWave w) const
private

Definition at line 128 of file LArDeltaRespTool.cxx.

128  {
129  return w % injCorr() ;
130 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

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& LArDeltaRespTool::interfaceID ( )
inlinestatic

Definition at line 24 of file LArDeltaRespTool.h.

24 { return IID_LArDeltaRespTool; }

◆ makeLArDeltaResp()

LArCaliWave LArDeltaRespTool::makeLArDeltaResp ( const LArWFParams larWFParam,
const LArCaliWave larCaliWave 
)

Definition at line 29 of file LArDeltaRespTool.cxx.

31 {
32 
33  m_gCali = larCaliWave;
34 
35  m_Tdrift = larWFParam.tdrift();
36  m_Tcal = larWFParam.tcal();
37  m_Fstep = larWFParam.fstep();
38  m_Taur = larWFParam.taur();
39  m_Omega0 = larWFParam.omega0();
40 
42 
43  return m_gDelta;
44 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

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()

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> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ DEFAULT

const int LArDeltaRespTool::DEFAULT =-1
staticprivate

Definition at line 39 of file LArDeltaRespTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_Fstep

double LArDeltaRespTool::m_Fstep
private

Definition at line 45 of file LArDeltaRespTool.h.

◆ m_gCali

LArCaliWave LArDeltaRespTool::m_gCali
private

Definition at line 41 of file LArDeltaRespTool.h.

◆ m_gDelta

LArCaliWave LArDeltaRespTool::m_gDelta
private

Definition at line 41 of file LArDeltaRespTool.h.

◆ m_injPointCorr

bool LArDeltaRespTool::m_injPointCorr
private

Definition at line 43 of file LArDeltaRespTool.h.

◆ m_normalizeCali

bool LArDeltaRespTool::m_normalizeCali
private

Definition at line 43 of file LArDeltaRespTool.h.

◆ m_Omega0

double LArDeltaRespTool::m_Omega0
private

Definition at line 45 of file LArDeltaRespTool.h.

◆ m_subtractBaseline

bool LArDeltaRespTool::m_subtractBaseline
private

Definition at line 43 of file LArDeltaRespTool.h.

◆ m_Taur

double LArDeltaRespTool::m_Taur
private

Definition at line 45 of file LArDeltaRespTool.h.

◆ m_Tcal

double LArDeltaRespTool::m_Tcal
private

Definition at line 45 of file LArDeltaRespTool.h.

◆ m_Tdrift

double LArDeltaRespTool::m_Tdrift
private

Definition at line 45 of file LArDeltaRespTool.h.

◆ m_timeOriginShift

bool LArDeltaRespTool::m_timeOriginShift
private

Definition at line 43 of file LArDeltaRespTool.h.

◆ m_Tstart

unsigned LArDeltaRespTool::m_Tstart
private

Definition at line 46 of file LArDeltaRespTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
LArWave
Definition: LArWave.h:31
LArDeltaRespTool::injCorr
LArWave injCorr() const
Definition: LArDeltaRespTool.cxx:132
LArWFParams::taur
double taur() const
Definition: LArWFParams.h:271
LArDeltaRespTool::m_subtractBaseline
bool m_subtractBaseline
Definition: LArDeltaRespTool.h:43
LArDeltaRespTool::deltaResp
LArWave deltaResp(const LArWave &) const
Definition: LArDeltaRespTool.cxx:104
LArDeltaRespTool::m_Tcal
double m_Tcal
Definition: LArDeltaRespTool.h:45
LArDeltaRespTool::m_gCali
LArCaliWave m_gCali
Definition: LArDeltaRespTool.h:41
LArDeltaRespTool::m_injPointCorr
bool m_injPointCorr
Definition: LArDeltaRespTool.h:43
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
LArWave::getSize
size_t getSize() const
number of time samples
Definition: LArWave.h:62
LArWaveHelper::getStart
unsigned getStart(const LArWave &theWave) const
Definition: LArWaveHelper.cxx:409
LArWave::getFlag
unsigned getFlag() const
flag: ...
Definition: LArWave.h:178
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LArWave::getWave
const std::vector< double > & getWave() const
Wave parameters.
Definition: LArWave.h:167
LArWaveHelper::getBaseline
double getBaseline(const LArWave &theWave, unsigned nBase) const
Definition: LArWaveHelper.cxx:347
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
LArWave::getDt
const double & getDt() const
delta time
Definition: LArWave.h:50
LArWaveHelper::translate
LArWave translate(const LArWave &theWave, int nShift, double baseline=0.) const
Definition: LArWaveHelper.cxx:11
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
LArWaveHelper
Definition: LArWaveHelper.h:14
JetTiledMap::N
@ N
Definition: TiledEtaPhiMap.h:44
LArDeltaRespTool::m_gDelta
LArCaliWave m_gDelta
Definition: LArDeltaRespTool.h:41
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
LArWaveHelper::getMax
unsigned int getMax(const LArWave &theWave) const
return index of maximum sample
Definition: LArWaveHelper.cxx:89
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
LArDeltaRespTool::m_Tdrift
double m_Tdrift
Definition: LArDeltaRespTool.h:45
LArDeltaRespTool::injResp
LArWave injResp(const LArWave &w) const
Definition: LArDeltaRespTool.cxx:128
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
LArCaliWave::getIsPulsedInt
int getIsPulsedInt() const
isPulsed value
Definition: LArCaliWave.h:163
dqt_zlumi_alleff_HIST.A
A
Definition: dqt_zlumi_alleff_HIST.py:110
LArDeltaRespTool::deltaCorr
LArWave deltaCorr() const
Definition: LArDeltaRespTool.cxx:112
LArWFParams::tcal
double tcal() const
Definition: LArWFParams.h:267
LArWFParams::fstep
double fstep() const
Definition: LArWFParams.h:268
LArCaliWave
Definition: LArCaliWave.h:44
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
lumiFormat.i
int i
Definition: lumiFormat.py:92
CaloNoise_fillDB.dt
dt
Definition: CaloNoise_fillDB.py:58
baseline
@ baseline
Definition: SUSYToolsTester.cxx:94
LArDeltaRespTool::m_Tstart
unsigned m_Tstart
Definition: LArDeltaRespTool.h:46
test_pyathena.parent
parent
Definition: test_pyathena.py:15
LArDeltaRespTool::m_Fstep
double m_Fstep
Definition: LArDeltaRespTool.h:45
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
LArDeltaRespTool::m_Omega0
double m_Omega0
Definition: LArDeltaRespTool.h:45
LArWFParams::omega0
double omega0() const
Definition: LArWFParams.h:270
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
dqt_zlumi_alleff_HIST.B
B
Definition: dqt_zlumi_alleff_HIST.py:110
LArWFParams::tdrift
double tdrift() const
Definition: LArWFParams.h:269
LArDeltaRespTool::m_timeOriginShift
bool m_timeOriginShift
Definition: LArDeltaRespTool.h:43
LArDeltaRespTool::m_normalizeCali
bool m_normalizeCali
Definition: LArDeltaRespTool.h:43
LArDeltaRespTool::m_Taur
double m_Taur
Definition: LArDeltaRespTool.h:45
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LArWaveHelper::derive_smooth
LArWave derive_smooth(const LArWave &theWave) const
smoothed derivative
Definition: LArWaveHelper.cxx:270
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
LArDeltaRespTool::compute_deltaresp
void compute_deltaresp()
Definition: LArDeltaRespTool.cxx:47
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
fitman.k
k
Definition: fitman.py:528