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

#include <LArCaliWaveAverage.h>

Inheritance diagram for LArCaliWaveAverage:
Collaboration diagram for LArCaliWaveAverage:

Public Member Functions

 LArCaliWaveAverage (const std::string &name, ISvcLocator *pSvcLocator)
 
 ~LArCaliWaveAverage ()
 
StatusCode initialize () override final
 
StatusCode execute () override final
 
StatusCode stop () override final
 
StatusCode finalize () override final
 
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

std::vector< HWIdentifierSymmetricChannels (HWIdentifier ChID, const std::vector< unsigned > &ChannelsNotToUse, const LArOnOffIdMapping *cabling)
 
LArCaliWave WaveAverage (const std::vector< LArCaliWave > &ToBeAveraged)
 
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

SG::ReadCondHandleKey< LArOnOffIdMappingm_cablingKey {this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"}
 
SG::ReadCondHandleKey< LArCaliWaveContainerm_keyInput {this, "KeyInput", "LArCaliWave", "SG key of input cali wave container"}
 
SG::WriteCondHandleKey< LArCaliWaveContainerm_keyOutputCorr {this, "KeyOutputCorr", "LArCaliWaveCorr", "SG key for corrected container"}
 
SG::WriteCondHandleKey< LArCaliWaveContainerm_keyOutputSymm {this, "KeyOutputSymm", "LArCaliWaveSymm", "SG key for symmetrized container"}
 
const LArOnlineIDm_onlineHelper
 
const LArEM_IDm_emId
 
const LArHEC_IDm_hecId
 
const LArFCAL_IDm_fcalId
 
std::string m_groupingType
 
std::vector< unsigned > m_chids
 
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 23 of file LArCaliWaveAverage.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

◆ LArCaliWaveAverage()

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

Definition at line 20 of file LArCaliWaveAverage.cxx.

20  :
21  AthAlgorithm(name, pSvcLocator),
22  m_onlineHelper(nullptr),
23  m_emId(nullptr),
24  m_hecId(nullptr),
25  m_fcalId(nullptr)
26 {
27  m_chids.clear();
28  declareProperty("ChannelIDs", m_chids);
29  declareProperty("GroupingType", m_groupingType = "ExtendedFeedThrough"); // SubDetector, Single, FeedThrough, ExtendedFeedThrough
30 }

◆ ~LArCaliWaveAverage()

LArCaliWaveAverage::~LArCaliWaveAverage ( )
default

Member Function Documentation

◆ 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 LArCaliWaveAverage::execute ( )
finaloverride

Definition at line 70 of file LArCaliWaveAverage.cxx.

70  {
71  ATH_MSG_INFO ( "execute()" );
72  return StatusCode::SUCCESS;
73 }

◆ 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 LArCaliWaveAverage::finalize ( )
inlinefinaloverride

Definition at line 33 of file LArCaliWaveAverage.h.

33 {return StatusCode::SUCCESS;}

◆ initialize()

StatusCode LArCaliWaveAverage::initialize ( )
finaloverride

Definition at line 34 of file LArCaliWaveAverage.cxx.

34  {
35  const CaloCell_ID* idHelper = nullptr;
36  ATH_CHECK( detStore()->retrieve (idHelper, "CaloCell_ID") );
37  m_emId = idHelper->em_idHelper();
38  if (!m_emId) {
39  ATH_MSG_ERROR ( "Could not get lar EM ID helper!" );
40  return StatusCode::FAILURE;
41  }
42  m_fcalId=idHelper->fcal_idHelper();
43  if (!m_fcalId) {
44  ATH_MSG_ERROR ( "Could not get lar FCAL ID helper" );
45  return StatusCode::FAILURE;
46  }
47  m_hecId=idHelper->hec_idHelper();
48  if (!m_hecId) {
49  ATH_MSG_ERROR ( "Could not get lar HEC ID helper" );
50  return StatusCode::FAILURE;
51  }
52 
53  ATH_CHECK( detStore()->retrieve(m_onlineHelper, "LArOnlineID") );
54 
59 
60  if ( !m_chids.empty() ) {
61  ATH_MSG_INFO ( m_chids.size() << " channels selected for averaging." );
62  } else {
63  ATH_MSG_ERROR ( "No channels selected for averaging!" );
64  return StatusCode::FAILURE;
65  }
66 
67  return StatusCode::SUCCESS;
68 }

◆ 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 LArCaliWaveAverage::stop ( )
finaloverride

Definition at line 75 of file LArCaliWaveAverage.cxx.

75  {
76  ATH_MSG_INFO ( "stop()" );
77 
78  // Get input LArCaliWaveContainer
80  const LArCaliWaveContainer* theLArCaliWaveContainer = *inHdl;
81  if (! theLArCaliWaveContainer ) {
82  ATH_MSG_ERROR ( "LArCaliWaveContainer (key = " << m_keyInput << ") is empty" );
83  return StatusCode::FAILURE;
84  }
85 
86  // create correction LArCaliWaveContainer
87  auto larCaliWaveContainerCorr = std::make_unique<LArCaliWaveContainer>();
88  ATH_CHECK( larCaliWaveContainerCorr->setGroupingType(m_groupingType,msg()) );
89  ATH_CHECK( larCaliWaveContainerCorr->initialize() );
90 
91  // create symmetric waves LArCaliWaveContainer
92  auto larCaliWaveContainerSymm = std::make_unique<LArCaliWaveContainer>();
93  ATH_CHECK( larCaliWaveContainerSymm->setGroupingType(m_groupingType,msg()) );
94 
95  if (larCaliWaveContainerSymm->initialize()) {
96  ATH_MSG_ERROR ( "Failed to initialize LArCaliWaveContainer object" );
97  return StatusCode::FAILURE;
98  }
99 
101  const LArOnOffIdMapping* cabling{*cablingHdl};
102  if(!cabling) {
103  ATH_MSG_ERROR("Do not have mapping object " << m_cablingKey.key() );
104  return StatusCode::FAILURE;
105  }
106 
107  for ( unsigned i=0; i<m_chids.size();++i) { // loop over selected channels
108 
109  const HWIdentifier chid(m_chids[i]);
110 
111  std::vector<HWIdentifier> theSymmetricChannels = SymmetricChannels(chid,m_chids,cabling);
112 
113  if ( theSymmetricChannels.empty()) {
114  ATH_MSG_WARNING ( "No symmetric channels found for channel 0x" << MSG::hex << chid << MSG::dec << ". Cannot average." );
115  continue;
116  }
117 
118  ATH_MSG_INFO ( theSymmetricChannels.size() << " symmetric channels indentified for channel 0x" << MSG::hex << chid << MSG::dec );
119 
120  for ( unsigned gain = CaloGain::LARHIGHGAIN ; gain < CaloGain::LARNGAIN ; ++ gain ) { // loop over gains
121 
122  ATH_MSG_VERBOSE ( "Now processing gain = " << gain );
123 
124  // get Wave vector for current ChID/Gain, assuming it exists
125  const LArCaliWaveContainer::LArCaliWaves& theCaliWaves = theLArCaliWaveContainer->get(chid,gain);
126  if ( theCaliWaves.empty() ){
127  ATH_MSG_WARNING ( "No pulses found for channel 0x" << MSG::hex << chid << MSG::dec
128  << " in gain " << gain
129  << ". Are you sure that readout is working? For the time being I'm skipping..." );
130  continue;
131  }
132 
133  LArCaliWaveVec theAverageWaves;
134 
135  LArCaliWaveVec theSymmetricWavesAll; // vector of symmetric waves for the all DAC
136 
137  for (unsigned iDAC=0;iDAC<theCaliWaves.size();++iDAC) { // loop over DAC values
138 
139  int theDAC = theCaliWaves[iDAC].getDAC();
140 
141  LArCaliWaveVec theSymmetricWavesThisDAC; // vector of symmetric waves for the current DAC
142 
143  for (unsigned iSym=0;iSym<theSymmetricChannels.size();++iSym) { // loop over SymmetricChannels and fill LArCaliWave vector corresponding to current DAC
144 
145  const LArCaliWaveContainer::LArCaliWaves& theseCaliWaves = theLArCaliWaveContainer->get(HWIdentifier(theSymmetricChannels[iSym]),gain);
146 
147  for (unsigned kDAC=0;kDAC<theseCaliWaves.size();++kDAC) {
148  if ( theseCaliWaves[kDAC].getDAC() == theDAC ) {
149  LArCaliWave thisWave = theseCaliWaves[kDAC];
150  // store additional information in LArWave flag, e.g. FT
151  unsigned theFlag = m_onlineHelper->feedthrough(HWIdentifier(theSymmetricChannels[iSym]));
152  thisWave.setFlag(theFlag);
153  // save symmetric wave in vetor to be averaged
154  theSymmetricWavesThisDAC.push_back(thisWave);
155  }
156  }
157 
158  }
159 
160  if ( !theSymmetricWavesThisDAC.empty() ) {
161 
162  ATH_MSG_INFO ( theSymmetricWavesThisDAC.size()
163  << " symmetric LArCaliWaves found for channel 0x" << MSG::hex << chid << MSG::dec
164  << " for DAC " << theDAC << " in gain " << gain
165  << ". Now averaging ... " );
166 
167  // Average symmetric waves corresponding to this DAC/gain
168  LArCaliWave theAverageWave = WaveAverage(theSymmetricWavesThisDAC);
169 
170  ATH_MSG_VERBOSE ( "... Done. Saving average to LArCaliWave vector." );
171 
172  theAverageWaves.push_back(theAverageWave);
173 
174  ATH_MSG_VERBOSE ( "Storing symmetric waves for the current DAC..." );
175 
176  for (unsigned kSym=0;kSym<theSymmetricWavesThisDAC.size();++kSym) {
177  theSymmetricWavesAll.push_back(theSymmetricWavesThisDAC[kSym]);
178  }
179 
180 
181  } else {
182  ATH_MSG_WARNING ( "No symmetrich waves found for channel 0x" << MSG::hex << chid << MSG::dec
183  << " for DAC " << theDAC << ": no average will be computed." );
184  }
185 
186  } // end of loop over DAC values
187 
188  // fill new LArCaliWaveContainer with average wave
189  ATH_MSG_VERBOSE ( "Saving LArCaliWave vector to correction container." );
190  larCaliWaveContainerCorr->setPdata(chid,theAverageWaves,gain);
191 
192  // store symmetric waves in other LArCaliWaveContainer (this is working only for a sinle DAC value!)
193  ATH_MSG_VERBOSE ( "Saving LArCaliWave vector to symmetric waves' container (flag contains FT info)" );
194  larCaliWaveContainerSymm->setPdata(chid,theSymmetricWavesAll,gain);
195 
196  } // end of loop over gains
197 
198  } // end of loop over selected channels
199 
200  // Record average LArCaliWaveContainer to DetectorStore
201  // Define validity of the output cond object
202  const EventIDBase start{EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, 0, 0, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
203  const EventIDBase stop{EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, EventIDBase::UNDEFNUM-1, EventIDBase::UNDEFNUM-1, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
204  EventIDRange rangeW{start, stop};
206  const EventIDRange& crangeW(rangeW);
207  if(corrHdl.record(crangeW,larCaliWaveContainerCorr.release()).isFailure()) {
208  ATH_MSG_ERROR("Could not record LArCaliWaveContainer object with " << m_keyOutputCorr.key()
209  << " with EventRange " << crangeW << " into Conditions Store");
210  return StatusCode::FAILURE;
211  }
212  ATH_MSG_INFO("recorded new " << m_keyOutputCorr.key() << " with range " << crangeW << " into Conditions Store");
214  if(symHdl.record(crangeW,larCaliWaveContainerSymm.release()).isFailure()) {
215  ATH_MSG_ERROR("Could not record LArCaliWaveContainer object with " << m_keyOutputSymm.key()
216  << " with EventRange " << crangeW << " into Conditions Store");
217  return StatusCode::FAILURE;
218  }
219  ATH_MSG_INFO("recorded new " << m_keyOutputCorr.key() << " with range " << crangeW << " into Conditions Store");
220  return StatusCode::SUCCESS;
221 }

◆ SymmetricChannels()

std::vector< HWIdentifier > LArCaliWaveAverage::SymmetricChannels ( HWIdentifier  ChID,
const std::vector< unsigned > &  ChannelsNotToUse,
const LArOnOffIdMapping cabling 
)
private

Definition at line 227 of file LArCaliWaveAverage.cxx.

228 {
229  ATH_MSG_VERBOSE ( "Seeking symmetric cells for channel 0x" << MSG::hex << ChID << MSG::dec );
230 
231  std::vector<HWIdentifier> theSymmetricChannels;
232  theSymmetricChannels.resize(0);
233 
234  Identifier id;
235  try {
236  id = cabling->cnvToIdentifier(ChID);
237  } catch (LArID_Exception & execpt) {
238  ATH_MSG_ERROR ( "LArCabling exception caught for channel 0x" << MSG::hex << ChID << MSG::dec );
239  return theSymmetricChannels;
240  }
241 
242  int detector = -999;
243  int pos_neg = m_onlineHelper->pos_neg(ChID);
244  int barrel_ec = m_onlineHelper->barrel_ec(ChID);
245 
246  int FT = m_onlineHelper->feedthrough(ChID);
247  int slot = m_onlineHelper->slot(ChID);
248  int channel = m_onlineHelper->channel(ChID);
249 
250  /*
251  int region = -999;
252  int layer = -999;
253  int eta = -999;
254  int phi = -999;
255  */
256 
257  if ( m_emId->is_em_barrel(id) || m_emId->is_em_endcap(id) ) {
258  detector = 0;
259  /*
260  eta = m_emId->eta(id);
261  phi = m_emId->phi(id);
262  layer = m_emId->sampling(id);
263  region = m_emId->region(id);
264  */
265  }
266  if ( m_hecId->is_lar_hec(id) ) {
267  detector = 1;
268  /*
269  eta = m_hecId->eta(id);
270  phi = m_hecId->phi(id);
271  layer = m_hecId->sampling(id);
272  region = m_hecId->region(id);
273  */
274  }
275  if ( m_fcalId->is_lar_fcal(id) ) {
276  detector = 2;
277  /*
278  eta = m_fcalId->eta(id);
279  phi = m_fcalId->phi(id);
280  layer = m_fcalId->module(id);
281  region = 0;
282  */
283  }
284 
285  ATH_MSG_VERBOSE ( " Detector = " << detector );
286  ATH_MSG_VERBOSE ( " PosNeg = " << pos_neg );
287  ATH_MSG_VERBOSE ( " Barrel/EC = " << barrel_ec );
288 
289  ATH_MSG_VERBOSE ( " FT = " << FT );
290  ATH_MSG_VERBOSE ( " Slot = " << slot );
291  ATH_MSG_VERBOSE ( " Channel = " << channel );
292 
293  /*
294  ATH_MSG_VERBOSE ( " Region = " << region );
295  ATH_MSG_VERBOSE ( " Layer = " << layer );
296  ATH_MSG_VERBOSE ( " Eta = " << eta );
297  ATH_MSG_VERBOSE ( " Phi = " << phi );
298  */
299 
300  unsigned nFT = 0;
301 
302  if ( detector != 0 ) {
303  ATH_MSG_ERROR ( "Sorry, still implemented for EM only :-(" );
304  return theSymmetricChannels;
305  } else {
306  nFT = 32;
307  }
308 
309  for ( unsigned iFT = 0;iFT<nFT;++iFT) { // loop over all FTs
310 
311  // compute ChID fpr channel in iFT in same position
312  bool useThisChannel = true;
313  HWIdentifier thisChID = m_onlineHelper->channel_Id(barrel_ec,pos_neg,iFT,slot,channel);
314 
315  // check if channel is allowed...
316  for ( unsigned i=0;i<ChannelsNotToUse.size();++i) {
317  if ( thisChID == HWIdentifier(ChannelsNotToUse[i]) ) {
318  useThisChannel = false;
319  break;
320  }
321  }
322 
323  if ( useThisChannel )
324  theSymmetricChannels.push_back(thisChID);
325  }
326 
327  return theSymmetricChannels;
328 }

◆ 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  }

◆ WaveAverage()

LArCaliWave LArCaliWaveAverage::WaveAverage ( const std::vector< LArCaliWave > &  ToBeAveraged)
private

Definition at line 331 of file LArCaliWaveAverage.cxx.

332 {
333  if ( !ToBeAveraged.empty() ) {
334 
335  ATH_MSG_VERBOSE ( "... Averaging wave number 1" );
336  LArWave theWaveAverage = (LArWave)ToBeAveraged[0];
337 
338  for (unsigned i=1;i<ToBeAveraged.size();++i) {
339  ATH_MSG_VERBOSE ( "... Averaging wave number " << i+1 );
340  theWaveAverage = theWaveAverage + (LArWave)ToBeAveraged[i];
341  }
342 
343  theWaveAverage = theWaveAverage * (1./float(ToBeAveraged.size()));
344 
345  LArCaliWave theCaliWaveAverage( theWaveAverage.getWave() ,
346  ToBeAveraged[0].getErrors(),
347  ToBeAveraged[0].getTriggers(),
348  ToBeAveraged[0].getDt(),
349  ToBeAveraged[0].getDAC(),
350  ToBeAveraged[0].getIsPulsedInt(),
351  ToBeAveraged[0].getFlag() );
352 
353  return theCaliWaveAverage;
354 
355  } else {
356  LArCaliWave emptyWave = LArCaliWave();
357  return emptyWave;
358  }
359 
360 }

Member Data Documentation

◆ m_cablingKey

SG::ReadCondHandleKey<LArOnOffIdMapping> LArCaliWaveAverage::m_cablingKey {this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"}
private

Definition at line 37 of file LArCaliWaveAverage.h.

◆ m_chids

std::vector<unsigned> LArCaliWaveAverage::m_chids
private

Definition at line 50 of file LArCaliWaveAverage.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_emId

const LArEM_ID* LArCaliWaveAverage::m_emId
private

Definition at line 44 of file LArCaliWaveAverage.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_fcalId

const LArFCAL_ID* LArCaliWaveAverage::m_fcalId
private

Definition at line 46 of file LArCaliWaveAverage.h.

◆ m_groupingType

std::string LArCaliWaveAverage::m_groupingType
private

Definition at line 48 of file LArCaliWaveAverage.h.

◆ m_hecId

const LArHEC_ID* LArCaliWaveAverage::m_hecId
private

Definition at line 45 of file LArCaliWaveAverage.h.

◆ m_keyInput

SG::ReadCondHandleKey<LArCaliWaveContainer> LArCaliWaveAverage::m_keyInput {this, "KeyInput", "LArCaliWave", "SG key of input cali wave container"}
private

Definition at line 38 of file LArCaliWaveAverage.h.

◆ m_keyOutputCorr

SG::WriteCondHandleKey<LArCaliWaveContainer> LArCaliWaveAverage::m_keyOutputCorr {this, "KeyOutputCorr", "LArCaliWaveCorr", "SG key for corrected container"}
private

Definition at line 39 of file LArCaliWaveAverage.h.

◆ m_keyOutputSymm

SG::WriteCondHandleKey<LArCaliWaveContainer> LArCaliWaveAverage::m_keyOutputSymm {this, "KeyOutputSymm", "LArCaliWaveSymm", "SG key for symmetrized container"}
private

Definition at line 40 of file LArCaliWaveAverage.h.

◆ m_onlineHelper

const LArOnlineID* LArCaliWaveAverage::m_onlineHelper
private

Definition at line 42 of file LArCaliWaveAverage.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:
LArWave
Definition: LArWave.h:31
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
LArCaliWaveAverage::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: LArCaliWaveAverage.h:42
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
LArCaliWaveAverage::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArCaliWaveAverage.h:37
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
CaloCell_ID::em_idHelper
const LArEM_ID * em_idHelper() const
access to EM idHelper
Definition: CaloCell_ID.h:63
AtlasDetectorID::is_lar_fcal
bool is_lar_fcal(Identifier id) const
Definition: AtlasDetectorID.h:839
AthCommonDataStore< AthCommonMsg< Algorithm > >::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
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
LArOnlineID_Base::slot
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
Definition: LArOnlineID_Base.cxx:1961
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
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
HWIdentifier
Definition: HWIdentifier.h:13
CaloGain::LARNGAIN
@ LARNGAIN
Definition: CaloGain.h:19
LArOnlineID_Base::barrel_ec
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
Definition: LArOnlineID_Base.cxx:1942
LArCaliWaveAverage::m_emId
const LArEM_ID * m_emId
Definition: LArCaliWaveAverage.h:44
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
CaloCell_ID::hec_idHelper
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
Definition: CaloCell_ID.h:69
LArCaliWaveContainer
Liquid Argon Cumulative Wave Container.
Definition: LArCaliWaveContainer.h:33
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
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
TRT::Hit::detector
@ detector
Definition: HitInfo.h:78
LArOnlineID_Base::channel
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
Definition: LArOnlineID_Base.cxx:1967
LArCaliWave
Definition: LArCaliWave.h:44
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
LArCaliWaveAverage::m_chids
std::vector< unsigned > m_chids
Definition: LArCaliWaveAverage.h:50
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:92
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArConditionsContainer::get
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
LArCaliWaveAverage::m_fcalId
const LArFCAL_ID * m_fcalId
Definition: LArCaliWaveAverage.h:46
LArOnlineID_Base::channel_Id
HWIdentifier channel_Id(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
create channel identifier from fields
Definition: LArOnlineID_Base.cxx:1569
LArOnlineID_Base::pos_neg
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
Definition: LArOnlineID_Base.cxx:1954
LArCaliWaveAverage::m_keyOutputSymm
SG::WriteCondHandleKey< LArCaliWaveContainer > m_keyOutputSymm
Definition: LArCaliWaveAverage.h:40
LArCaliWaveVec
Definition: LArCaliWave.h:91
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AtlasDetectorID::is_lar_hec
bool is_lar_hec(Identifier id) const
Definition: AtlasDetectorID.h:829
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
LArCaliWaveAverage::m_keyInput
SG::ReadCondHandleKey< LArCaliWaveContainer > m_keyInput
Definition: LArCaliWaveAverage.h:38
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
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArCaliWaveAverage::m_hecId
const LArHEC_ID * m_hecId
Definition: LArCaliWaveAverage.h:45
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
CaloGain::LARHIGHGAIN
@ LARHIGHGAIN
Definition: CaloGain.h:18
LArCaliWaveAverage::m_groupingType
std::string m_groupingType
Definition: LArCaliWaveAverage.h:48
LArCaliWaveAverage::stop
StatusCode stop() override final
Definition: LArCaliWaveAverage.cxx:75
LArNewCalib_Delay_OFC_Cali.FT
FT
Definition: LArNewCalib_Delay_OFC_Cali.py:120
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
LArOnlineID_Base::feedthrough
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
Definition: LArOnlineID_Base.cxx:1948
a
TList * a
Definition: liststreamerinfos.cxx:10
LArCaliWaveAverage::m_keyOutputCorr
SG::WriteCondHandleKey< LArCaliWaveContainer > m_keyOutputCorr
Definition: LArCaliWaveAverage.h:39
h
LArEM_Base_ID::is_em_barrel
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
LArCaliWaveAverage::WaveAverage
LArCaliWave WaveAverage(const std::vector< LArCaliWave > &ToBeAveraged)
Definition: LArCaliWaveAverage.cxx:331
AthCommonMsg< Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
LArWave::setFlag
void setFlag(const unsigned flag)
set flag
Definition: LArWave.h:199
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
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
LArID_Exception
Exception class for LAr Identifiers.
Definition: LArID_Exception.h:20
CaloCell_ID::fcal_idHelper
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper
Definition: CaloCell_ID.h:75
LArEM_Base_ID::is_em_endcap
bool is_em_endcap(const Identifier id) const
test if the id belongs to the EM Endcap
fitman.k
k
Definition: fitman.py:528
LArCaliWaveAverage::SymmetricChannels
std::vector< HWIdentifier > SymmetricChannels(HWIdentifier ChID, const std::vector< unsigned > &ChannelsNotToUse, const LArOnOffIdMapping *cabling)
Definition: LArCaliWaveAverage.cxx:227
ServiceHandle< ICondSvc >
LArOnOffIdMapping
Definition: LArOnOffIdMapping.h:20