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

#include <LArPhysWaveShifter.h>

Inheritance diagram for LArPhysWaveShifter:
Collaboration diagram for LArPhysWaveShifter:

Public Member Functions

 LArPhysWaveShifter (const std::string &name, ISvcLocator *pSvcLocator)
 
 ~LArPhysWaveShifter ()
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode stop ()
 
StatusCode finalize ()
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
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 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
 

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

StatusCode ComputeTimeShiftByFEB (unsigned mode)
 
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

const LArOnlineID_Basem_onlineHelper
 
std::vector< std::string > m_keylist
 
std::string m_keyout
 
bool m_compTimeShiftByFEB
 
unsigned m_modeTimeShiftByFEB
 
std::string m_fileTimeShiftByFEB
 
bool m_dumpTimeShiftByFEB
 
LArFEBTimeOffsetm_larFEBTstart
 
int m_timeShiftByIndex
 
bool m_timeShiftByHelper
 
std::vector< unsigned int > m_TshiftLayer
 
bool m_timeShiftFromPeak
 
int m_nIndexFromPeak
 
int m_nDelays
 
int m_nSamplings
 
bool m_timeShiftByFEB
 
int m_timeShiftGuardRegion
 
bool m_usePhysCaliTdiff
 
bool m_isSC
 
bool m_timeShiftOffset
 
float m_timeShiftOffsetValue
 
std::string m_groupingType
 
std::string m_totalShiftsKey
 
std::string m_cellByCellShiftsKey
 
DataObjIDColl m_extendedExtraObjects
 
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
 

Detailed Description

Definition at line 22 of file LArPhysWaveShifter.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ LArPhysWaveShifter()

LArPhysWaveShifter::LArPhysWaveShifter ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 21 of file LArPhysWaveShifter.cxx.

22 : AthAlgorithm(name, pSvcLocator),
23  m_onlineHelper(nullptr),
24  m_larFEBTstart(nullptr),
25  m_groupingType("ExtendedSubDetector") // SubDetector, Single, FeedThrough
26 {
27  // Input contaners' keys
28  m_keylist.clear() ;
29  declareProperty("KeyList", m_keylist);
30 
31  // Output container key
32  declareProperty("KeyOutput", m_keyout = "LArPhysWave");
33 
34  //
35  // Steering options to compute time shifts per FEB (whatever the gain)
36  //
37  declareProperty("ComputeTimeShiftByFEB", m_compTimeShiftByFEB = false) ;
38  declareProperty("TimeShiftByFEBMode", m_modeTimeShiftByFEB = 3) ;
39  declareProperty("TimeShiftByFEBDump", m_dumpTimeShiftByFEB = false) ;
40  declareProperty("TimeShiftByFEBDumpFile", m_fileTimeShiftByFEB = "TimeShiftFEB.py") ;
41 
42  //
43  // Time shift modes
44  //
45  declareProperty("TimeShiftByIndex" , m_timeShiftByIndex = 0);
46  declareProperty("TimeShiftByHelper", m_timeShiftByHelper = false);
47 
48  declareProperty("TimeShiftFromPeak" , m_timeShiftFromPeak = false) ;
49  declareProperty("NindexFromPeak" , m_nIndexFromPeak = 0, "Number of data points before the peak") ;
50  declareProperty("Ndelays", m_nDelays = 24, "Number of Delay steps between two ADC samples");
51  declareProperty("Nsamplings", m_nSamplings = 3, "Number of ADC samples before the peak");
52 
53  declareProperty("TimeShiftByFEB" , m_timeShiftByFEB = false) ;
54  declareProperty("TimeShiftGuardRegion" , m_timeShiftGuardRegion = 0 ) ;
55 
56  declareProperty("UsePhysCaliTdiff", m_usePhysCaliTdiff = true);
57 
58  declareProperty("TimeShiftOffset", m_timeShiftOffset = false);
59  declareProperty("TimeShiftOffsetValue", m_timeShiftOffsetValue = 0.);
60 
61  // Grouping type
62  declareProperty("GroupingType", m_groupingType);
63 
64  declareProperty("OutputShiftsKey", m_totalShiftsKey);
65  declareProperty("CellByCellShiftsKey", m_cellByCellShiftsKey);
66 
67  declareProperty("isSC",m_isSC=false);
68 
69 }

◆ ~LArPhysWaveShifter()

LArPhysWaveShifter::~LArPhysWaveShifter ( )
default

Member Function Documentation

◆ ComputeTimeShiftByFEB()

StatusCode LArPhysWaveShifter::ComputeTimeShiftByFEB ( unsigned  mode = 2)
private

Definition at line 321 of file LArPhysWaveShifter.cxx.

322 {
323  StatusCode sc ;
324 
325  LArWaveHelper larWaveHelper;
326 
327  // This is to *compute* the smaller time shifts by FEB
330  if (mode==3) {
331  std::vector<HWIdentifier>::const_iterator it = m_onlineHelper->feb_begin();
332  std::vector<HWIdentifier>::const_iterator it_e = m_onlineHelper->feb_end();
333  for (;it!=it_e;++it)
335  }
336 
337  // This is a counter to compute the average time shift per FEB
338  LArFEBTimeOffset nChanInFEB;
339  nChanInFEB.setDefaultReturnValue(0);
340 
341  // Get the physics waveforms from the detector store
342  const LArPhysWaveContainer* larPhysWaveContainerOld;
343 
344  for (const std::string& key : m_keylist) { // Loop over all containers that are to be processed
345 
346  sc=detStore()->retrieve(larPhysWaveContainerOld,key);
347  if (sc.isFailure()) {
348  ATH_MSG_INFO( "LArPhysWaveContainer (key=" << key << ") not found in StoreGate" );
349  continue ;
350  }
351  if ( larPhysWaveContainerOld == nullptr ) {
352  ATH_MSG_INFO( "LArPhysWaveContainer (key=" << key << ") is empty" );
353  continue ;
354  }
355 
356  ATH_MSG_INFO( "ComputeTimeShiftByFEB(): processing LArPhysWaveContainer from StoreGate, key = " << key );
357 
358  for ( unsigned gain = CaloGain::LARHIGHGAIN ; gain < CaloGain::LARNGAIN; gain++ ) { // Loop over all gains
359 
360  PhysWaveIt wave_it = larPhysWaveContainerOld->begin(gain);
361  PhysWaveIt wave_it_e = larPhysWaveContainerOld->end(gain);
362 
363  if ( wave_it == wave_it_e ) {
364  ATH_MSG_INFO( "ComputeTimeShiftByFEB(): LArPhysWaveContainer (key = " << key << ") has no wave with gain = " << gain );
365  continue; // skip to next gain
366  }
367 
368  for ( ; wave_it!=wave_it_e; wave_it++) {
369 
370  const LArPhysWave* larPhysWave = &(*wave_it);
371  if ( larPhysWave->isEmpty() ) continue;
372 
373  const HWIdentifier chid = wave_it.channelId();
374  const HWIdentifier febid = m_onlineHelper->feb_Id(chid);
375 
376  unsigned oldFEBTstart = (unsigned)m_larFEBTstart->TimeOffset(febid);
377  unsigned newFEBTstart = 999;
378  unsigned theChanInFEB = 0;
379  float bindiff = 0.;
380 
381  switch (mode) {
382  case 1 :
383  newFEBTstart = (unsigned)larWaveHelper.getStart(*larPhysWave);
384  if ( newFEBTstart < oldFEBTstart ) m_larFEBTstart->setTimeOffset(febid,newFEBTstart);
385  break;
386  case 2:
387  newFEBTstart = (unsigned)(larWaveHelper.getMax(*larPhysWave)-m_nIndexFromPeak);
388  if ( newFEBTstart < oldFEBTstart ) m_larFEBTstart->setTimeOffset(febid,newFEBTstart);
389  break;
390  case 3:
391  bindiff = larWaveHelper.getMax(*larPhysWave)-m_nIndexFromPeak;
392  ATH_MSG_VERBOSE(std::hex << chid << std::dec<< " TimeOffset: "<<bindiff);
393  if(bindiff >0.)
394  newFEBTstart = (unsigned)(bindiff);
395  else
396  newFEBTstart = 0;
397  m_larFEBTstart->setTimeOffset(febid,oldFEBTstart+newFEBTstart); // accumulate offsets per FEB
398  theChanInFEB = static_cast<unsigned>(nChanInFEB.TimeOffset(febid)+1);
399  nChanInFEB.setTimeOffset(febid,theChanInFEB); // increment channel counter;
400  break;
401  default:
402  newFEBTstart = 0;
403  break;
404  }
405 
406  } // end loop over cells
407 
408  } // end of loop over gains
409 
410  } // end loop over all PhysWave containers in m_keylist
411 
412  if ( m_larFEBTstart->size()>0) {
413 
414  std::vector<HWIdentifier>::const_iterator it = m_onlineHelper->feb_begin();
415  std::vector<HWIdentifier>::const_iterator it_e = m_onlineHelper->feb_end();
416  unsigned int nFeb=0;
417  for (;it!=it_e;++it) {
418  if ( (int)m_larFEBTstart->TimeOffset(*it) != 999 ) {
419  nFeb++;
420  if ( mode==3 && nChanInFEB.TimeOffset(*it) ) { // average time offset
421  float timeoff = m_larFEBTstart->TimeOffset(*it)/nChanInFEB.TimeOffset(*it);
422  m_larFEBTstart->setTimeOffset(*it,timeoff);
423  }
424  ATH_MSG_INFO( nFeb << ". FEB ID 0x" << std::hex << (*it).get_compact() << std::dec
425  << " - Tstart = " << (int)m_larFEBTstart->TimeOffset(*it) ) ;
426 
427  } else {
429  }
430 
431  }
432 
433  if ( m_dumpTimeShiftByFEB ) {
434  std::fstream outfile ;
435  outfile.open("TimeShiftFEB.py",std::ios::out) ;
436  outfile << "FakeLArTimeOffset.FEBids = [ " ;
438  unsigned i=0;
439  for (;it!=it_e;++it) {
440  outfile << "0x" << std::hex << (*it).get_compact() << std::dec ;
441  i++ ;
442  if ( i<nFeb ) outfile << ", " ;
443  }
444  outfile << " ]" << std::endl ;
445  outfile << "FakeLArTimeOffset.FEbTimeOffsets = [ " ;
447  i = 0 ;
448  for (;it!=it_e;++it) {
450  i++ ;
451  if ( i<nFeb ) outfile << ", " ;
452  }
453  outfile << " ]" << std::endl ;
454  outfile.close() ;
455  ATH_MSG_INFO( "Minimum Tstart per FEB (all gain) saved in " << m_fileTimeShiftByFEB ) ;
456  }
457 
458  } else {
459  return StatusCode::FAILURE;
460  }
461 
462  sc=detStore()->record(m_larFEBTstart,"FebTimeOffset");
463  if(sc.isFailure()) {
464  ATH_MSG_ERROR( "Can't record LArFEBTimeOffset to DetectorStore" );
465  return StatusCode::FAILURE;
466  }
467 
468  const ILArFEBTimeOffset* ilarFEBTimeOffset=nullptr;
469  sc=detStore()->symLink(m_larFEBTstart,ilarFEBTimeOffset);
470  if(sc.isFailure()) {
471  ATH_MSG_ERROR( "Can't symlink LArFEBTimeOffset to abstract interface in DetectorStore" );
472  return StatusCode::FAILURE;
473  }
474 
475  return StatusCode::SUCCESS;
476 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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; }

◆ execute()

StatusCode LArPhysWaveShifter::execute ( )
inline

Definition at line 32 of file LArPhysWaveShifter.h.

32 {return StatusCode::SUCCESS;}

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51 {
52  // If we didn't find any symlinks to add, just return the collection
53  // from the base class. Otherwise, return the extended collection.
54  if (!m_extendedExtraObjects.empty()) {
56  }
57  return Algorithm::extraOutputDeps();
58 }

◆ finalize()

StatusCode LArPhysWaveShifter::finalize ( )
inline

Definition at line 34 of file LArPhysWaveShifter.h.

34 {return StatusCode::SUCCESS;}

◆ initialize()

StatusCode LArPhysWaveShifter::initialize ( )
inline

Definition at line 31 of file LArPhysWaveShifter.h.

31 {return StatusCode::SUCCESS;}

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::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.

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Algorithm >::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< Algorithm >::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< Algorithm > >::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< Algorithm > >::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< Algorithm > >::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  }

◆ stop()

StatusCode LArPhysWaveShifter::stop ( )

Definition at line 74 of file LArPhysWaveShifter.cxx.

74  {
75  ATH_MSG_INFO( "... in stop()" ) ;
76 
77  LArWaveHelper larWaveHelper;
78 
79  // get LArOnlineID helper
80  /*StatusCode sc = detStore()->retrieve(m_onlineHelper, "LArOnlineID");
81  if (sc.isFailure()) {
82  ATH_MSG_ERROR( "Could not get LArOnlineID" );
83  return sc;
84  }*/
85  StatusCode sc;
86  if ( m_isSC ) {
88  sc = detStore()->retrieve(ll, "LArOnline_SuperCellID");
89  if (sc.isFailure()) {
90  msg(MSG::ERROR) << "Could not get LArOnlineID helper !" << endmsg;
91  return StatusCode::FAILURE;
92  }
93  else {
95  ATH_MSG_DEBUG("Found the LArOnlineID helper");
96  }
97  } else { // m_isSC
98  const LArOnlineID* ll;
99  sc = detStore()->retrieve(ll, "LArOnlineID");
100  if (sc.isFailure()) {
101  msg(MSG::ERROR) << "Could not get LArOnlineID helper !" << endmsg;
102  return StatusCode::FAILURE;
103  }
104  else {
106  ATH_MSG_DEBUG(" Found the LArOnlineID helper. ");
107  }
108  }
109 
110  // Retrieve LArPhysWaveTool
111  ToolHandle<LArPhysWaveTool> larPhysWaveTool("LArPhysWaveTool");
112  sc=larPhysWaveTool.retrieve();
113  if (sc!=StatusCode::SUCCESS) {
114  ATH_MSG_ERROR( " Can't get LArPhysWaveTool " );
115  return sc;
116  }
117 
118  // retrieve PhysCaliTdiff
119  const ILArPhysCaliTdiff* larPhysCaliTdiff = nullptr;
120  if (m_usePhysCaliTdiff) {
121  sc = detStore()->retrieve(larPhysCaliTdiff,m_cellByCellShiftsKey);
122  if (sc!=StatusCode::SUCCESS) {
123  ATH_MSG_WARNING( "Cannot retrieve LArPhysCaliTdiff with key " << m_cellByCellShiftsKey
124  << ". Disabling use of PhysCaliTdiff values in wave shift." );
125  m_usePhysCaliTdiff = false;
126  }else {
127  ATH_MSG_INFO( "LArPhysCaliTdiff successfully retrieved" );
128  }
129  }
130 
131  // compute FEB time shifts
132  if ( m_compTimeShiftByFEB ) {
135  if(!sc.isSuccess()) {
136  ATH_MSG_ERROR( "Can't compute time shifts by FEB." );
137  return sc;
138  }
139  }
140 
141  // apply time shifts
142  if ( m_timeShiftByHelper ) {
143  ATH_MSG_INFO( "Will use helper class for start time." );
144  m_timeShiftByIndex = 0 ;
145  m_timeShiftFromPeak = false ;
146  m_timeShiftByFEB = false ;
147  }
148 
149  if ( m_timeShiftByIndex != 0 ) {
150  ATH_MSG_INFO( "Manually shifting pulses by time index " << m_timeShiftByIndex );
151  m_timeShiftFromPeak = false ;
152  m_timeShiftByFEB = false ;
153  }
154 
155  if ( m_timeShiftFromPeak ) {
156  ATH_MSG_INFO( "Manually shifting pulses by a constant index from peak." );
158  m_timeShiftByFEB = false ;
159  }
160 
161  if (m_timeShiftOffset) {
162  m_timeShiftOffsetValue = m_timeShiftOffsetValue>0. ? (float)((long)(m_timeShiftOffsetValue+0.5)) : (float)((long)(m_timeShiftOffsetValue-0.5)); // round to nearest signed integer
163  if (m_timeShiftOffsetValue <= -999. || m_timeShiftOffsetValue >= 999.) m_timeShiftOffsetValue = 0.; // avoid clearly nonsense values
164  }
165 
166  /*
167  Apply FEB time shifts:
168  - can be conputed in the same job...
169  - ...or simply read from DetStore (and leaded either from DB of jobOption using LArEventTest/FakeLArTimeOffset
170  */
171  const ILArFEBTimeOffset* larFebTshift = nullptr;
172  if ( m_timeShiftByFEB ) {
173  ATH_MSG_INFO( "Manually shifting pulses by *FEB* time indexes." );
174  sc = detStore()->retrieve(larFebTshift);
175  if (sc.isFailure()) {
176  ATH_MSG_ERROR( "Cannot find any FEB time offsets. Please check." );
177  return sc;
178  }
179  }
180 
181  //New TPhysCaliTimeDiff Container to store the final shift
182  //LArPhysCaliTdiffComplete* totalShifts=new LArPhysCaliTdiffComplete();
183  auto totalShifts = std::make_unique<LArOFCBinComplete>();
184  if (totalShifts->setGroupingType(m_groupingType,msg()).isFailure()) {
185  ATH_MSG_ERROR( "Failed to set grouping type for LArPhysCaliTdiffComplete object" );
186  return StatusCode::FAILURE;
187  }
188 
189  if(totalShifts->initialize().isFailure()) {
190  ATH_MSG_ERROR( "Failed to initialize LArPhysCaliTdiffComplete object" );
191  return StatusCode::FAILURE;
192  }
193 
194 
195  // Get the physics waveforms from the detector store
196  const LArPhysWaveContainer* larPhysWaveContainerOld;
197 
198  int nchannel = 0 ;
199 
200  for (const std::string& key : m_keylist) { // Loop over all containers that are to be processed
201 
202  sc= detStore()->retrieve(larPhysWaveContainerOld,key);
203  if (sc.isFailure()) {
204  ATH_MSG_INFO( "LArPhysWaveContainer (key=" << key << ") not found in StoreGate" );
205  continue ;
206  }
207  ATH_MSG_INFO( "Processing LArPhysWaveContainer from StoreGate, key = " << key );
208 
209  // loop over physwave in 'old' container
210  for ( unsigned gain = CaloGain::LARHIGHGAIN ; gain < CaloGain::LARNGAIN; gain++ ) { // Loop over all gains
211 
212  // get iterator for all channels for a gain
213  PhysWaveIt wave_it = larPhysWaveContainerOld->begin(gain);
214  PhysWaveIt wave_it_e = larPhysWaveContainerOld->end(gain);
215 
216  if ( wave_it == wave_it_e ) {
217  ATH_MSG_INFO( "LArPhysWaveContainer (key = " << key << ") has no wave with gain = " << gain );
218  continue; // skip to next gain
219  }
220 
221  for ( ; wave_it!=wave_it_e; wave_it++) {
222 
223  if ( nchannel < 100 || ( nchannel < 1000 && nchannel%100==0 ) || nchannel%1000==0 )
224  ATH_MSG_INFO( "Processing physics waveform number " << nchannel );
225  nchannel++ ;
226 
227  const LArPhysWave* larPhysWave = &(*wave_it);
228  const HWIdentifier chid = wave_it.channelId();
229 
230  if ( larPhysWave->isEmpty() ) {
231  ATH_MSG_VERBOSE("Channel 0x" << MSG::hex << chid.get_compact() << MSG::dec << " is empty. Skipping.");
232  continue;
233  }
234 
235  float tstart = 0 ;
236 
237  if ( m_timeShiftByHelper ) {
238  tstart = larWaveHelper.getStart(*larPhysWave) ;
240  }
241 
242  if ( m_timeShiftByIndex != 0 ) {
244  }
245 
246  if ( m_timeShiftFromPeak ) {
247  tstart = larWaveHelper.getMax(*larPhysWave)-m_nIndexFromPeak;
248  }
249 
250  if ( m_timeShiftByFEB ) {
251  const HWIdentifier febid = m_onlineHelper->feb_Id(chid);
252  tstart = (int)larFebTshift->TimeOffset(febid);
254  }
255 
256  if (m_usePhysCaliTdiff && larPhysCaliTdiff) {
257  float tdiff = larPhysCaliTdiff->Tdiff(chid,gain);
258  if (tdiff<=-999.) tdiff = 0.;
259  tdiff /= (25./24.); // in units of delay steps
260  tdiff = tdiff>0. ? (float)((long)(tdiff+0.5)) : (float)((long)(tdiff-0.5)); // round to nearest signed integer
261  ATH_MSG_VERBOSE("Channel 0x" << MSG::hex << chid.get_compact() << MSG::dec << " -> Tdiff = " << tdiff);
262  tstart -= tdiff; // subtract to tstart (should be used on top of timeShiftByFEB)
263  }
264 
265  if (m_timeShiftOffset) {
267  }
268 
269  totalShifts->set(chid,gain,(int)(tstart));
270 
271  ATH_MSG_VERBOSE("PhysWave n. " << nchannel
272  << " --> Time shift for channel 0x" << MSG::hex << chid.get_compact() << MSG::dec
273  << " is " << tstart << " samples (" << tstart*larPhysWave->getDt() << " ns)");
274 
275  /*
276  // apply time shift
277  LArPhysWave newLArPhysWave( (larWaveHelper.translate(*larPhysWave,-tstart,0)).getWave() ,
278  larPhysWave->getDt(),
279  larPhysWave->getFlag() ) ;
280 
281 
282  // save time shift in new LArPhysWave
283  if ( m_timeShiftByFEB ) {
284  // We save the timeShiftGuardRegion so that, when running
285  // the OFC iteration reconstruction, we can use it in
286  // association to the final phase to compute an absolute
287  // time with respect to the FEB "zero" time, defined as
288  // the peak time of the fastest pulse in the FEB
289  // -- Marco Delmastro and Guillaume Unal, June 2009
290  newLArPhysWave.setTimeOffset(-m_timeShiftGuardRegion);
291  } else {
292  newLArPhysWave.setTimeOffset(tstart);
293  }
294 
295  // Add 'new' physics wave to 'new' container
296  larPhysWaveContainerNew->setPdata(chid, newLArPhysWave, gain);
297 
298  // Clean the 'old' physics wave from memory (ok, not that elegant, but still...)
299  //LArPhysWave* oldLArPhysWave = const_cast<LArPhysWave*>(larPhysWave);
300  //oldLArPhysWave->clear(); // clear() method is (still) not implemeted on LArWave...
301  */
302  } // end loop over cells
303  } // end of loop over gains
304 
305  } // End loop over all PhysWave containers in m_keylist
306 
307 
308  if (!m_totalShiftsKey.empty()) {
309  sc=detStore()->record(std::move(totalShifts),m_totalShiftsKey);
310  if (sc.isFailure()) {
311  ATH_MSG_ERROR( "Failed to recrod LArPhysCaliTdiffComplete with key " << m_totalShiftsKey );
312  }
313  }
314 
315  ATH_MSG_INFO( "LArPhysWaveShifter stopped!" );
316 
317  return StatusCode::SUCCESS;
318 }

◆ sysInitialize()

StatusCode AthAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.

Definition at line 66 of file AthAlgorithm.cxx.

66  {
68 
69  if (sc.isFailure()) {
70  return sc;
71  }
72  ServiceHandle<ICondSvc> cs("CondSvc",name());
73  for (auto h : outputHandles()) {
74  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75  // do this inside the loop so we don't create the CondSvc until needed
76  if ( cs.retrieve().isFailure() ) {
77  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78  return StatusCode::SUCCESS;
79  }
80  if (cs->regHandle(this,*h).isFailure()) {
81  sc = StatusCode::FAILURE;
82  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83  << " with CondSvc");
84  }
85  }
86  }
87  return sc;
88 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Algorithm > >::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< Algorithm > >::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

◆ m_cellByCellShiftsKey

std::string LArPhysWaveShifter::m_cellByCellShiftsKey
private

Definition at line 66 of file LArPhysWaveShifter.h.

◆ m_compTimeShiftByFEB

bool LArPhysWaveShifter::m_compTimeShiftByFEB
private

Definition at line 43 of file LArPhysWaveShifter.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dumpTimeShiftByFEB

bool LArPhysWaveShifter::m_dumpTimeShiftByFEB
private

Definition at line 46 of file LArPhysWaveShifter.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_fileTimeShiftByFEB

std::string LArPhysWaveShifter::m_fileTimeShiftByFEB
private

Definition at line 45 of file LArPhysWaveShifter.h.

◆ m_groupingType

std::string LArPhysWaveShifter::m_groupingType
private

Definition at line 64 of file LArPhysWaveShifter.h.

◆ m_isSC

bool LArPhysWaveShifter::m_isSC
private

Definition at line 58 of file LArPhysWaveShifter.h.

◆ m_keylist

std::vector<std::string> LArPhysWaveShifter::m_keylist
private

Definition at line 40 of file LArPhysWaveShifter.h.

◆ m_keyout

std::string LArPhysWaveShifter::m_keyout
private

Definition at line 41 of file LArPhysWaveShifter.h.

◆ m_larFEBTstart

LArFEBTimeOffset* LArPhysWaveShifter::m_larFEBTstart
private

Definition at line 48 of file LArPhysWaveShifter.h.

◆ m_modeTimeShiftByFEB

unsigned LArPhysWaveShifter::m_modeTimeShiftByFEB
private

Definition at line 44 of file LArPhysWaveShifter.h.

◆ m_nDelays

int LArPhysWaveShifter::m_nDelays
private

Definition at line 54 of file LArPhysWaveShifter.h.

◆ m_nIndexFromPeak

int LArPhysWaveShifter::m_nIndexFromPeak
private

Definition at line 54 of file LArPhysWaveShifter.h.

◆ m_nSamplings

int LArPhysWaveShifter::m_nSamplings
private

Definition at line 54 of file LArPhysWaveShifter.h.

◆ m_onlineHelper

const LArOnlineID_Base* LArPhysWaveShifter::m_onlineHelper
private

Definition at line 38 of file LArPhysWaveShifter.h.

◆ m_timeShiftByFEB

bool LArPhysWaveShifter::m_timeShiftByFEB
private

Definition at line 55 of file LArPhysWaveShifter.h.

◆ m_timeShiftByHelper

bool LArPhysWaveShifter::m_timeShiftByHelper
private

Definition at line 51 of file LArPhysWaveShifter.h.

◆ m_timeShiftByIndex

int LArPhysWaveShifter::m_timeShiftByIndex
private

Definition at line 50 of file LArPhysWaveShifter.h.

◆ m_timeShiftFromPeak

bool LArPhysWaveShifter::m_timeShiftFromPeak
private

Definition at line 53 of file LArPhysWaveShifter.h.

◆ m_timeShiftGuardRegion

int LArPhysWaveShifter::m_timeShiftGuardRegion
private

Definition at line 56 of file LArPhysWaveShifter.h.

◆ m_timeShiftOffset

bool LArPhysWaveShifter::m_timeShiftOffset
private

Definition at line 60 of file LArPhysWaveShifter.h.

◆ m_timeShiftOffsetValue

float LArPhysWaveShifter::m_timeShiftOffsetValue
private

Definition at line 61 of file LArPhysWaveShifter.h.

◆ m_totalShiftsKey

std::string LArPhysWaveShifter::m_totalShiftsKey
private

Definition at line 65 of file LArPhysWaveShifter.h.

◆ m_TshiftLayer

std::vector<unsigned int> LArPhysWaveShifter::m_TshiftLayer
private

Definition at line 52 of file LArPhysWaveShifter.h.

◆ m_usePhysCaliTdiff

bool LArPhysWaveShifter::m_usePhysCaliTdiff
private

Definition at line 57 of file LArPhysWaveShifter.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
LArPhysWaveShifter::m_cellByCellShiftsKey
std::string m_cellByCellShiftsKey
Definition: LArPhysWaveShifter.h:66
python.TriggerHandler.tstart
string tstart
Definition: TriggerHandler.py:299
LArPhysWaveShifter::m_groupingType
std::string m_groupingType
Definition: LArPhysWaveShifter.h:64
ILArPhysCaliTdiff::Tdiff
virtual const float & Tdiff(const HWIdentifier &id, int gain) const =0
LArConditionsContainerDB::iteratorT::channelId
HWIdentifier channelId() const
LArPhysWaveShifter::m_timeShiftByHelper
bool m_timeShiftByHelper
Definition: LArPhysWaveShifter.h:51
detail::ll
long long ll
Definition: PrimitiveHelpers.h:46
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
LArWaveHelper::getStart
unsigned getStart(const LArWave &theWave) const
Definition: LArWaveHelper.cxx:409
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
LArPhysWaveShifter::m_timeShiftByFEB
bool m_timeShiftByFEB
Definition: LArPhysWaveShifter.h:55
LArFEBTimeOffset
Definition: LArFEBTimeOffset.h:13
LArPhysWaveShifter::m_nIndexFromPeak
int m_nIndexFromPeak
Definition: LArPhysWaveShifter.h:54
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
ILArFEBTimeOffset::TimeOffset
virtual float TimeOffset(const HWIdentifier fId) const =0
LArPhysWaveShifter::m_isSC
bool m_isSC
Definition: LArPhysWaveShifter.h:58
LArConditionsContainerDB::iteratorT
Declaration of const iterator.
Definition: LArConditionsContainerDB.h:72
LArPhysWaveShifter::m_timeShiftGuardRegion
int m_timeShiftGuardRegion
Definition: LArPhysWaveShifter.h:56
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArPhysWaveShifter::m_keyout
std::string m_keyout
Definition: LArPhysWaveShifter.h:41
skel.it
it
Definition: skel.GENtoEVGEN.py:396
LArPhysWaveShifter::m_totalShiftsKey
std::string m_totalShiftsKey
Definition: LArPhysWaveShifter.h:65
LArWave::getDt
const double & getDt() const
delta time
Definition: LArWave.h:50
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
LArWaveHelper
Definition: LArWaveHelper.h:14
Identifier::get_compact
value_type get_compact() const
Get the compact id.
LArOnlineID_Base::feb_begin
id_iterator feb_begin() const
Returns an iterator pointing to a feb identifier collection.
Definition: LArOnlineID_Base.cxx:1906
LArPhysWaveShifter::m_timeShiftByIndex
int m_timeShiftByIndex
Definition: LArPhysWaveShifter.h:50
LArPhysWaveShifter::m_dumpTimeShiftByFEB
bool m_dumpTimeShiftByFEB
Definition: LArPhysWaveShifter.h:46
LArPhysWaveShifter::ComputeTimeShiftByFEB
StatusCode ComputeTimeShiftByFEB(unsigned mode)
Definition: LArPhysWaveShifter.cxx:321
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
HWIdentifier
Definition: HWIdentifier.h:13
CaloGain::LARNGAIN
@ LARNGAIN
Definition: CaloGain.h:19
LArPhysWaveShifter::m_timeShiftFromPeak
bool m_timeShiftFromPeak
Definition: LArPhysWaveShifter.h:53
LArPhysWaveShifter::m_modeTimeShiftByFEB
unsigned m_modeTimeShiftByFEB
Definition: LArPhysWaveShifter.h:44
LArPhysWave
Definition: LArPhysWave.h:14
LArPhysWaveShifter::m_usePhysCaliTdiff
bool m_usePhysCaliTdiff
Definition: LArPhysWaveShifter.h:57
xAOD::unsigned
unsigned
Definition: RingSetConf_v1.cxx:662
LArPhysWaveContainer
Liquid Argon Physics Wave Container.
Definition: LArPhysWaveContainer.h:23
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
LArPhysWaveShifter::m_onlineHelper
const LArOnlineID_Base * m_onlineHelper
Definition: LArPhysWaveShifter.h:38
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
LArFEBTimeOffset::size
unsigned size() const
Definition: LArFEBTimeOffset.h:22
LArPhysWaveShifter::m_compTimeShiftByFEB
bool m_compTimeShiftByFEB
Definition: LArPhysWaveShifter.h:43
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
LArWave::isEmpty
bool isEmpty() const
is LArWave uninitialized?
Definition: LArWave.h:183
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ILArFEBTimeOffset
Definition: ILArFEBTimeOffset.h:11
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
LArPhysWaveShifter::m_nSamplings
int m_nSamplings
Definition: LArPhysWaveShifter.h:54
LArConditionsContainer::end
ConstConditionsMapIterator end(unsigned int gain) const
end of all channels for this gain
LArPhysWaveShifter::m_timeShiftOffset
bool m_timeShiftOffset
Definition: LArPhysWaveShifter.h:60
lumiFormat.i
int i
Definition: lumiFormat.py:85
LArPhysWaveShifter::m_larFEBTstart
LArFEBTimeOffset * m_larFEBTstart
Definition: LArPhysWaveShifter.h:48
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
LArPhysWaveShifter::m_fileTimeShiftByFEB
std::string m_fileTimeShiftByFEB
Definition: LArPhysWaveShifter.h:45
Preparation.mode
mode
Definition: Preparation.py:94
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
LArPhysWaveShifter::m_keylist
std::vector< std::string > m_keylist
Definition: LArPhysWaveShifter.h:40
LArOnlineID_Base::feb_Id
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
Definition: LArOnlineID_Base.cxx:1479
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
LArOnlineID_Base::feb_end
id_iterator feb_end() const
Definition: LArOnlineID_Base.cxx:1911
LArFEBTimeOffset::TimeOffset
float TimeOffset(const HWIdentifier fId) const
Definition: LArFEBTimeOffset.h:33
LArOnlineID_Base
Helper for the Liquid Argon Calorimeter cell identifiers.
Definition: LArOnlineID_Base.h:105
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArOnlineID
Definition: LArOnlineID.h:20
CaloGain::LARHIGHGAIN
@ LARHIGHGAIN
Definition: CaloGain.h:18
LArOnline_SuperCellID
Definition: LArOnline_SuperCellID.h:20
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
ILArPhysCaliTdiff
Definition: ILArPhysCaliTdiff.h:13
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthCommonMsg< Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
LArConditionsContainer::begin
ConstConditionsMapIterator begin(unsigned int gain) const
get iterator for all channels for a gain
LArFEBTimeOffset::setTimeOffset
void setTimeOffset(const HWIdentifier fId, const float offset)
Definition: LArFEBTimeOffset.h:17
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LArFEBTimeOffset::setDefaultReturnValue
void setDefaultReturnValue(const float value)
Definition: LArFEBTimeOffset.h:25
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
PrepareReferenceFile.outfile
outfile
Definition: PrepareReferenceFile.py:42
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
readCCLHist.float
float
Definition: readCCLHist.py:83
LArPhysWaveShifter::m_nDelays
int m_nDelays
Definition: LArPhysWaveShifter.h:54
LArPhysWaveShifter::m_timeShiftOffsetValue
float m_timeShiftOffsetValue
Definition: LArPhysWaveShifter.h:61
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37