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

Athena algorithm used for testing LAr conditions data access. More...

#include <LArConditionsTestAlg.h>

Inheritance diagram for LArConditionsTestAlg:
Collaboration diagram for LArConditionsTestAlg:

Public Member Functions

 LArConditionsTestAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~LArConditionsTestAlg ()
 
virtual StatusCode initialize () override
 
virtual StatusCode execute () override
 
virtual StatusCode finalize () override
 
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 createCompareObjects ()
 
StatusCode testCondObjects ()
 
StatusCode testEachCondObject ATLAS_NOT_THREAD_SAFE (const LArRampMC *ramps)
 
StatusCode testChannelSet ()
 
StatusCode testDbObjectRead ()
 
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

std::vector< LArRampPTmpm_rampCache
 
std::vector< LArRampPTmpm_rampCorrections
 
const LArOnlineIDm_onlineID
 
BooleanProperty m_testCondObjs
 
BooleanProperty m_readCondObjs
 
BooleanProperty m_writeCondObjs
 
BooleanProperty m_writeCorrections
 
BooleanProperty m_applyCorrections
 
BooleanProperty m_testReadDB
 
BooleanProperty m_TB
 
int m_tbin
 
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

Athena algorithm used for testing LAr conditions data access.

Definition at line 39 of file LArConditionsTestAlg.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

◆ LArConditionsTestAlg()

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

Definition at line 32 of file LArConditionsTestAlg.cxx.

32  :
33  AthAlgorithm(name,pSvcLocator),
34  m_onlineID(0),
35  m_testCondObjs(false),
36  m_readCondObjs(false),
37  m_writeCondObjs(false),
38  m_writeCorrections(false),
39  m_applyCorrections(false),
40  m_testReadDB(false),
41  m_TB(false),
42  m_tbin(0)
43 {
44  // switch for testing Filling IOV.
45  declareProperty("TestCondObjs", m_testCondObjs);
46  declareProperty("ReadCondObjs", m_readCondObjs);
47  declareProperty("WriteCondObjs", m_writeCondObjs);
48  declareProperty("WriteCorrections", m_writeCorrections);
49  declareProperty("ApplyCorrections", m_applyCorrections);
50  declareProperty("TestReadDBDirect", m_testReadDB) ;
51  declareProperty("Testbeam", m_TB) ;
52  declareProperty("Tbin", m_tbin) ;
53 }

◆ ~LArConditionsTestAlg()

LArConditionsTestAlg::~LArConditionsTestAlg ( )
virtual

Definition at line 59 of file LArConditionsTestAlg.cxx.

60 { }

Member Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode testEachCondObject LArConditionsTestAlg::ATLAS_NOT_THREAD_SAFE ( const LArRampMC ramps)
private

◆ createCompareObjects()

StatusCode LArConditionsTestAlg::createCompareObjects ( )
private

Definition at line 144 of file LArConditionsTestAlg.cxx.

145 {
146  // StatusCode sc;
147  ATH_MSG_INFO ("in createCompareObjects()" );
148 
149  // Create set of ids, LArRampComplete::LArCondObj
150 
151  std::vector<HWIdentifier>::const_iterator chanIt = m_onlineID->channel_begin();
152  std::vector<HWIdentifier>::const_iterator chanEnd = m_onlineID->channel_end();
153  int ichan = -1;
154  int icorr = 0;
155  float vramp = 0;
156  int gain = 0;
157  for (; chanIt != chanEnd; ++chanIt, ++ichan) {
158  // add channels with downscale factor
159  if (ichan % 1000 != 5) continue;
160 
161  // Create ramp with 3 vRamp elements
162  LArRampPTmp ramp((*chanIt), gain);
163  ramp.m_vRamp.push_back(vramp);
164  vramp += 1.0;
165  ramp.m_vRamp.push_back(vramp);
166  vramp += 1.0;
167  ramp.m_vRamp.push_back(vramp);
168  vramp += 1.0;
169  // add to cache
170  m_rampCache.push_back(ramp);
171 
172  // Change gain each time
173  gain = (gain == 2) ? 0 : gain + 1;
174 
176  // Create downscaled corrections
177  ++icorr;
178  if (icorr % 10 != 5) continue;
179  // Just change sign of ramp values
180  for (unsigned int i = 0; i < 3; ++i)ramp.m_vRamp[i] = -ramp.m_vRamp[i];
181  m_rampCorrections.push_back(ramp);
182  }
183  }
184 
185  // Print out cache and corrections
186  for (unsigned int i = 0; i < m_rampCache.size(); ++i) {
187  ATH_MSG_DEBUG ("Cache: chan, gain, ramps "
188  << m_onlineID->show_to_string(m_rampCache[i].m_channelID) << " "
189  << m_rampCache[i].m_gain << " "
190  << m_rampCache[i].m_vRamp[0] << " "
191  << m_rampCache[i].m_vRamp[1] << " "
192  << m_rampCache[i].m_vRamp[2] << " " );
193  }
194  for (unsigned int i = 0; i < m_rampCorrections.size(); ++i) {
195  ATH_MSG_DEBUG ("Corrections: chan, gain, ramps "
196  << m_onlineID->show_to_string(m_rampCorrections[i].m_channelID) << " "
197  << m_rampCorrections[i].m_gain << " "
198  << m_rampCorrections[i].m_vRamp[0] << " "
199  << m_rampCorrections[i].m_vRamp[1] << " "
200  << m_rampCorrections[i].m_vRamp[2] << " " );
201  }
202 
203  ATH_MSG_DEBUG ( "End of create comparison objects " );
204  return StatusCode::SUCCESS;
205 }

◆ 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 LArConditionsTestAlg::execute ( )
overridevirtual

Definition at line 89 of file LArConditionsTestAlg.cxx.

90 {
91  ATH_MSG_DEBUG ( " retrieve DataHandle<ILArRamp> in execute " );
92 
93  if(m_testCondObjs){
94 
95  // create cache
97 // StatusCode sc = testDbObjectRead();
98 // if(sc.isFailure()) {
99 // log << MSG::ERROR << "Failed testDbObjectRead " << endmsg;
100 // return StatusCode::FAILURE;
101 // }
102 
103  }
104 
105 
106 // if(m_testCondObject){
107 // std::string key = "LArRamp";
108 // const ILArRamp* ramp = 0 ;
109 // detStore()->retrieve(ramp, key);
110 // if(!ramp) {
111 // log<< MSG::ERROR<<" Failed to get LArRamp in execute " << endmsg;
112 // return StatusCode::FAILURE ;
113 // }
114 // }
115 
116  if(m_TB){
117  const ILArOFC* ofc = nullptr;
118  ATH_CHECK( detStore()->retrieve(ofc, "LArOFC") );
119 
120  const ILArRamp* ramp = nullptr;
121  ATH_CHECK( detStore()->retrieve(ramp, "LArRamp") );
122  }
123 
124  return StatusCode::SUCCESS;
125 }

◆ 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 LArConditionsTestAlg::finalize ( )
overridevirtual

Definition at line 134 of file LArConditionsTestAlg.cxx.

135 {
137  return StatusCode::SUCCESS;
138 }

◆ initialize()

StatusCode LArConditionsTestAlg::initialize ( )
overridevirtual

Definition at line 66 of file LArConditionsTestAlg.cxx.

67 {
68  ATH_MSG_DEBUG ( " TestCondObjs flag = " << m_testCondObjs );
69  ATH_MSG_DEBUG ( " ReadCondObjs flag = " << m_readCondObjs );
70  ATH_MSG_DEBUG ( " WriteCondObjs flag = " << m_writeCondObjs );
71  ATH_MSG_DEBUG ( " WriteCorrections flag = " << m_writeCorrections );
72  ATH_MSG_DEBUG ( " ApplyCorrections flag = " << m_applyCorrections );
73  ATH_MSG_DEBUG ( " TestReadDBDirect flag = " << m_testReadDB );
74  ATH_MSG_DEBUG ( " Testbeam flag = " << m_TB );
75 
77 
78  const CaloCell_ID* calocell_id = nullptr;
79  ATH_CHECK( detStore()->retrieve(calocell_id) );
80 
81  ATH_MSG_DEBUG ( "initialize done" );
82  return StatusCode::SUCCESS;
83 }

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

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

◆ testChannelSet()

StatusCode LArConditionsTestAlg::testChannelSet ( )
private

Definition at line 1052 of file LArConditionsTestAlg.cxx.

1053 {
1054 
1056  typedef ChanSet::ConstChannelIt ConstChannelIt;
1057 
1058  ATH_MSG_INFO ("in testChannelSet" );
1059 
1060  ChanSet chanSet;
1061 
1062  // corrections not always available:
1064  // add corrections to channel set
1065  for (unsigned int i = 0; i < m_rampCorrections.size(); ++i) {
1066  // Must copy LArRampPTmp into a LArRampComplete::LArCondObj
1068  ramp.m_vRamp = m_rampCorrections[i].m_vRamp;
1069  chanSet.insert(m_rampCorrections[i].m_channelID.get_identifier32().get_compact(), ramp);
1070  }
1071  // Now loop over corrections and check that they agree
1072  bool error = false;
1073  if (m_rampCorrections.size() != chanSet.size()) {
1074  ATH_MSG_ERROR ("Corrections not the same size as channel set: "
1075  << m_rampCorrections.size() << " " << chanSet.size() );
1076  return (StatusCode::FAILURE);
1077  }
1078  else {
1079  ATH_MSG_DEBUG ("Sizes OK: " << chanSet.size() );
1080  }
1081 
1082  ConstChannelIt it = chanSet.begin();
1083  ConstChannelIt itEnd = chanSet.end();
1084 
1085 
1086  unsigned int i = 0;
1087  for (; it != itEnd; ++it, ++i) {
1088 
1089  HWIdentifier id = m_rampCorrections[i].m_channelID;
1090  HWIdentifier id1((*it).first);
1091  LArRampComplete::LArCondObj rampP = (*it).second;
1092  if (id != id1 || rampP != m_rampCorrections[i]) {
1093  ATH_MSG_ERROR ("Correction retrieved with iterator does not match: "
1094  << " i = " << i );
1095  error = true;
1096  }
1097  ATH_MSG_DEBUG ("New : chan id, gain, ramps "
1098  << m_onlineID->show_to_string(id1) << " "
1099  << m_rampCorrections[i].m_gain << " "
1100  << rampP.m_vRamp[0] << " "
1101  << rampP.m_vRamp[1] << " "
1102  << rampP.m_vRamp[2] << " "
1103  );
1104  ATH_MSG_DEBUG ("Corrections: chan id, gain, ramps "
1105  << m_onlineID->show_to_string(m_rampCorrections[i].m_channelID) << " "
1106  << m_rampCorrections[i].m_gain << " "
1107  << m_rampCorrections[i].m_vRamp[0] << " "
1108  << m_rampCorrections[i].m_vRamp[1] << " "
1109  << m_rampCorrections[i].m_vRamp[2] << " "
1110  << " Compare = " << (rampP == m_rampCorrections[i])
1111  );
1112  }
1113  if (!error) {
1114  ATH_MSG_DEBUG ("Iteration check OK " );
1115  }
1116 
1117  i = 0;
1118  for (; i < m_rampCorrections.size(); ++i) {
1119 
1120  unsigned int id = m_rampCorrections[i].m_channelID.get_identifier32().get_compact();
1121  it = chanSet.find(id);
1122  if (it == itEnd) {
1123  ATH_MSG_ERROR ("Could not find correction: "
1124  << " i = " << i );
1125  error = true;
1126  ATH_MSG_DEBUG ("Corrections: cool chan, chan id, gain, ramps "
1127  << m_onlineID->show_to_string(m_rampCorrections[i].m_channelID) << " "
1128  << m_rampCorrections[i].m_gain << " "
1129  << m_rampCorrections[i].m_vRamp[0] << " "
1130  << m_rampCorrections[i].m_vRamp[1] << " "
1131  << m_rampCorrections[i].m_vRamp[2] << " "
1132  );
1133  }
1134  }
1135  if (!error) {
1136  ATH_MSG_DEBUG ("Find check OK " );
1137  }
1138 
1139  if (error) {
1140  ATH_MSG_ERROR ("Failing check of channel set - see above" );
1141  return (StatusCode::FAILURE);
1142  }
1143  }
1144 
1145  return StatusCode::SUCCESS;
1146 
1147 }

◆ testCondObjects()

StatusCode LArConditionsTestAlg::testCondObjects ( )
private

Statistics: total number of conditions

Statistics: total number of conditions

Statistics: total number of conditions

Definition at line 243 of file LArConditionsTestAlg.cxx.

244 {
245  ATH_MSG_INFO ("in testCondObjects()" );
246 
247  static std::atomic<bool> first = true;
248  if (!first) {
249  ATH_MSG_INFO ("Multiple entries - returning" );
250  return StatusCode::SUCCESS;
251  }
252  first = false;
253 
254  typedef LArRampMC::CONTAINER CONTAINER;
255  typedef CONTAINER::chan_const_iterator chan_const_iterator;
256  typedef CONTAINER::iov_const_iterator iov_const_iterator;
257 
260 
261  const LArRampMC* ramps = 0;
262 
263  // Create SingleGroup
264  if (m_readCondObjs) {
265  const ILArRamp* iramps = 0;
266  ATH_CHECK( detStore()->retrieve(iramps, "/LArCalorimeter/LArTests/LArRampsSingleGroup") );
267  ATH_MSG_INFO ( "Retrieved ramps for LArRampsSingleGroup " );
268  ramps = dynamic_cast<const LArRampMC*>(iramps);
269  if (!ramps) {
270  ATH_MSG_ERROR ("Could not dynamic cast ILArRamp to LArRampMC" );
271  return( StatusCode::FAILURE);
272  }
273  }
274  else {
275  LArRampMC* ramps_rw = new LArRampMC;
276  ramps = ramps_rw;
277  ATH_MSG_INFO ( "Created ramps for LArRampsSingleGroup " );
278  ramps_rw->setGroupingType(LArConditionsContainerBase::SingleGroup);
279  ATH_CHECK( ramps_rw->initialize() );
280  }
281 
282  ATH_CHECK( testEachCondObject(ramps) );
283  ATH_MSG_INFO ( "Succeeded SingleGroup test " );
284 
285  if (!m_readCondObjs) {
286  // Save in DetectorStore
287  ATH_CHECK( detStore()->record(ramps, "/LArCalorimeter/LArTests/LArRampsSingleGroup") );
288  const ILArRamp* iramps = 0;
289  ATH_CHECK( detStore()->symLink(ramps, iramps) );
290 
292  if (ramps) {
293  ATH_MSG_DEBUG ( "Total number of conditions objects"
294  << ramps->totalNumberOfConditions() );
295  }
296  if (!m_writeCondObjs) {
297  // Remove conditions objects if not writing out
298  LArRampMC* ramps_rw = const_cast<LArRampMC*>(ramps);
299  if (!ramps_rw) {
300  ATH_MSG_ERROR ( "Could not const cast to LArRampMC " );
301  return StatusCode::FAILURE;
302  }
303  ramps_rw->removeConditions();
304  ATH_MSG_DEBUG ( "Removed conditions objects" );
305  }
306  ATH_MSG_DEBUG ( "Total number of conditions objects "
307  << ramps->totalNumberOfConditions() );
308  ATH_MSG_DEBUG ( "Total number of correction objects"
309  << ramps->totalNumberOfCorrections() );
310  }
311 
312  // Create SubDetectorGrouping
313  if (m_readCondObjs) {
314  const ILArRamp* iramps = 0;
315  ATH_CHECK( detStore()->retrieve(iramps, "/LArCalorimeter/LArTests/LArRampsSubDetectorGrouping") );
316  ATH_MSG_INFO ( "Retrieved ramps for LArRampsSubDetectorGrouping " );
317  ramps = dynamic_cast<const LArRampMC*>(iramps);
318  if (!ramps) {
319  ATH_MSG_ERROR ("Could not dynamic cast ILArRamp to LArRampMC" );
320  return( StatusCode::FAILURE);
321  }
322  }
323  else {
324  LArRampMC* ramps_rw = new LArRampMC;
325  ramps = ramps_rw;
326  //ramps_rw->setGroupingType(LArConditionsContainerBase::SubDetectorGrouping);
327  ATH_CHECK( ramps_rw->initialize() );
328  }
329 
330  ATH_CHECK( testEachCondObject(ramps) );
331  ATH_MSG_INFO ( "Succeeded SubDetectorGrouping test " );
332 
333  if (!m_readCondObjs) {
334  // Save in DetectorStore
335  ATH_CHECK( detStore()->record(ramps, "/LArCalorimeter/LArTests/LArRampsSubDetectorGrouping") );
336  const ILArRamp* iramps = 0;
337  ATH_CHECK( detStore()->symLink(ramps, iramps) );
339  if (ramps) {
340  ATH_MSG_DEBUG ( "Total number of conditions objects"
341  << ramps->totalNumberOfConditions() );
342  }
343  if (!m_writeCondObjs) {
344  // Remove conditions objects if not writing out
345  LArRampMC* ramps_rw = const_cast<LArRampMC*>(ramps);
346  if (!ramps_rw) {
347  ATH_MSG_ERROR ( "Could not const cast to LArRampMC " );
348  return StatusCode::FAILURE;
349  }
350  ramps_rw->removeConditions();
351  ATH_MSG_DEBUG ( "Removed conditions objects" );
352  }
353  ATH_MSG_DEBUG ( "Total number of conditions objects "
354  << ramps->totalNumberOfConditions() );
355  ATH_MSG_DEBUG ( "Total number of correction objects"
356  << ramps->totalNumberOfConditions() );
357  }
358 
359  // Create FeedThroughGrouping
360  if (m_readCondObjs) {
361  const ILArRamp* iramps = 0;
362  ATH_CHECK( detStore()->retrieve(iramps, "/LArCalorimeter/LArTests/LArRampsFeedThroughGrouping") );
363  ATH_MSG_INFO ( "Retrieved ramps for LArRampsFeedThroughGrouping " );
364  ramps = dynamic_cast<const LArRampMC*>(iramps);
365  if (!ramps) {
366  ATH_MSG_ERROR ("Could not dynamic cast ILArRamp to LArRampMC" );
367  return( StatusCode::FAILURE);
368  }
369  }
370  else {
371  LArRampMC* ramps_rw = new LArRampMC;
372  ramps = ramps_rw;
373  ramps_rw->setGroupingType(LArConditionsContainerBase::FeedThroughGrouping);
374  ATH_CHECK( ramps_rw->initialize() );
375  }
376 
377  ATH_CHECK( testEachCondObject(ramps) );
378  ATH_MSG_INFO ( "Succeeded FeedThroughGrouping test " );
379 
380  if (!m_readCondObjs) {
381  // Save in DetectorStore
382  ATH_CHECK( detStore()->record(ramps, "/LArCalorimeter/LArTests/LArRampsFeedThroughGrouping") );
383  const ILArRamp* iramps = 0;
384  ATH_CHECK( detStore()->symLink(ramps, iramps) );
386  if (ramps) {
387  ATH_MSG_DEBUG ( "Total number of conditions objects"
388  << ramps->totalNumberOfConditions() );
389  }
390  if (!m_writeCondObjs) {
391  // Remove conditions objects if not writing out
392  LArRampMC* ramps_rw = const_cast<LArRampMC*>(ramps);
393  if (!ramps_rw) {
394  ATH_MSG_ERROR ( "Could not const cast to LArRampMC " );
395  return StatusCode::FAILURE;
396  }
397  ramps_rw->removeConditions();
398  ATH_MSG_DEBUG ( "Removed conditions objects" );
399  }
400  ATH_MSG_DEBUG ( "Total number of conditions objects "
401  << ramps->totalNumberOfConditions() );
402  ATH_MSG_DEBUG ( "Total number of correction objects"
403  << ramps->totalNumberOfCorrections() );
404  }
405 
406  ATH_MSG_DEBUG ( "Statistics for LArRampsFeedThroughGrouping " );
407  ATH_MSG_DEBUG ( "Number of channels, iovs "
408  << ramps->chan_size() << " " << ramps->iov_size() );
409 
410  iov_const_iterator iovIt = ramps->iov_begin();
411  iov_const_iterator iovEnd = ramps->iov_end ();
412  msg() << MSG::DEBUG << "IOVs found: ";
413  for (; iovIt != iovEnd; ++iovIt) {
414  msg() << MSG::DEBUG << (*iovIt) << ", ";
415  }
416  msg() << MSG::DEBUG << endmsg;
417 
418  chan_const_iterator chIt = ramps->chan_begin();
419  chan_const_iterator chEnd = ramps->chan_end ();
420  for (; chIt != chEnd; ++chIt) {
421  ATH_MSG_DEBUG ( "Channel: " << (*chIt)
422  << " number of conditions: " << ramps->conditionsPerChannel((*chIt)) );
423  }
424 
425  for (unsigned int i = 0; i < ramps->nGroups(); ++i) {
426  ATH_MSG_DEBUG ( "Group: " << i
427  << " number of conditions: " << ramps->conditionsPerGroup(i) );
428  }
429  ATH_MSG_DEBUG ("");
430 
431  for (unsigned int i = 0; i < ramps->nGains(); ++i) {
432  ATH_MSG_DEBUG ( "Gain: " << i
433  << " number of conditions: " << ramps->conditionsPerGain(i) );
434  }
435  ATH_MSG_DEBUG ( "Total number of conditions objects "
436  << ramps->totalNumberOfConditions() );
437  ATH_MSG_DEBUG ( "Total number of correction objects "
438  << ramps->totalNumberOfCorrections() );
439 
440 
441  ATH_MSG_DEBUG ( "End of testCondObjects " );
442 
443  return StatusCode::SUCCESS;
444 }

◆ testDbObjectRead()

StatusCode LArConditionsTestAlg::testDbObjectRead ( )
private

Definition at line 1150 of file LArConditionsTestAlg.cxx.

1151 {
1152 
1153  typedef LArRampMC::CONTAINER CONTAINER;
1154  typedef CONTAINER::Subset Subset;
1155 
1156  const LArRampMC* ramp = 0 ;
1157  ATH_CHECK( detStore()->retrieve(ramp, "LArRamp") );
1158 
1159  ATH_MSG_DEBUG ( " Found LArRampMC, key LArRamp." );
1160 
1161  // Print out channels
1162  ATH_MSG_DEBUG ( " Number of channels " << ramp->chan_size() );
1163 
1164  // Print out first 10 elements of each gain for subset
1165  CONTAINER::chan_const_iterator chanIt = ramp->chan_begin();
1166  CONTAINER::chan_const_iterator endChan = ramp->chan_end ();
1167  for (unsigned int i = 0; chanIt != endChan; ++chanIt, ++i) {
1168  unsigned int coolChan = *chanIt;
1169  const Subset* subset = ramp->at(i);
1170 
1171  ATH_MSG_DEBUG ( " Channel " << coolChan << " "
1172  << " Subset size " << subset->subsetSize()
1173  << " gain, channel, grouping type " << subset->gain() << " "
1174  << MSG::hex << subset->channel() << " " << MSG::dec
1175  << subset->groupingType() << " "
1176  );
1177 
1178  Subset::ConstSubsetIt first = subset->subsetBegin();
1179  Subset::ConstSubsetIt last = subset->subsetEnd();
1180  //for (int i = 0; i < 10 && first != last; ++i, ++first) {
1181  for (; first != last; ++first) {
1182 
1183  // select non-zero subsets
1184  if ((*first).second.size()) {
1185 
1186  ATH_MSG_DEBUG ( " FEB id "
1187  << m_onlineID->show_to_string(HWIdentifier((*first).first)) << " "
1188  );
1189  for (unsigned int k = 0; k < 5; ++k) {
1190  msg() << MSG::DEBUG << " vramp " ;
1191 // << m_onlineID->show_to_string((*first).second[k].m_channelID) << " "
1192 // << (*first).second[k].m_gain << " ";
1193  for (unsigned int j = 0; j < (*first).second[k].m_vRamp.size(); ++j) {
1194  msg() << MSG::DEBUG << (*first).second[k].m_vRamp[j] << " ";
1195  }
1196  msg() << MSG::DEBUG << endmsg;
1197  }
1198 
1199  }
1200 
1201  }
1202  }
1203 
1204 
1205  /*
1206 
1207  // Print out first 10 elements of each gain for corrections
1208  for (unsigned int gain = 0; gain < 3; ++gain) {
1209  log << MSG::DEBUG << " Gain, size "
1210  << gain << " "
1211  << ramp->correctionsSize(gain) << endmsg;
1212  CONTAINER::ConstCorrectionIt first = ramp->correctionsBegin(gain);
1213  CONTAINER::ConstCorrectionIt last = ramp->correctionsEnd(gain);
1214  for (int i = 0; i < 10 && first != last; ++i, ++first) {
1215  log << MSG::DEBUG << " id, vramp "
1216  << m_onlineID->show_to_string(HWIdentifier((*first).first)) << " ";
1217 // << m_onlineID->show_to_string((*first).second.m_channelID) << " "
1218 // << (*first).second.m_gain << " ";
1219  for (unsigned int j = 0; j < (*first).second.m_vRamp.size(); ++j) {
1220  log << MSG::DEBUG << (*first).second.m_vRamp[j] << " ";
1221  }
1222  log << MSG::DEBUG << endmsg;
1223  }
1224  }
1225 
1226  */
1227 
1228  return StatusCode::SUCCESS;
1229 
1230 }

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

BooleanProperty LArConditionsTestAlg::m_applyCorrections
private

Definition at line 68 of file LArConditionsTestAlg.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_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_onlineID

const LArOnlineID* LArConditionsTestAlg::m_onlineID
private

Definition at line 63 of file LArConditionsTestAlg.h.

◆ m_rampCache

std::vector<LArRampPTmp> LArConditionsTestAlg::m_rampCache
private

Definition at line 60 of file LArConditionsTestAlg.h.

◆ m_rampCorrections

std::vector<LArRampPTmp> LArConditionsTestAlg::m_rampCorrections
private

Definition at line 61 of file LArConditionsTestAlg.h.

◆ m_readCondObjs

BooleanProperty LArConditionsTestAlg::m_readCondObjs
private

Definition at line 65 of file LArConditionsTestAlg.h.

◆ m_TB

BooleanProperty LArConditionsTestAlg::m_TB
private

Definition at line 70 of file LArConditionsTestAlg.h.

◆ m_tbin

int LArConditionsTestAlg::m_tbin
private

Definition at line 71 of file LArConditionsTestAlg.h.

◆ m_testCondObjs

BooleanProperty LArConditionsTestAlg::m_testCondObjs
private

Definition at line 64 of file LArConditionsTestAlg.h.

◆ m_testReadDB

BooleanProperty LArConditionsTestAlg::m_testReadDB
private

Definition at line 69 of file LArConditionsTestAlg.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.

◆ m_writeCondObjs

BooleanProperty LArConditionsTestAlg::m_writeCondObjs
private

Definition at line 66 of file LArConditionsTestAlg.h.

◆ m_writeCorrections

BooleanProperty LArConditionsTestAlg::m_writeCorrections
private

Definition at line 67 of file LArConditionsTestAlg.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
LArConditionsTestAlg::m_tbin
int m_tbin
Definition: LArConditionsTestAlg.h:71
LArConditionsContainer::removeConditions
void removeConditions()
Remove conditions leaving the corrections - may be needed to only write out the corrections when both...
LArConditionsContainer::iov_end
iov_const_iterator iov_end() const
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
LArConditionsContainerBase::SingleGroup
@ SingleGroup
Definition: LArConditionsContainerBase.h:46
LArConditionsTestAlg::m_rampCache
std::vector< LArRampPTmp > m_rampCache
Definition: LArConditionsTestAlg.h:60
LArRampMC
Implementation of the interface ILArRamp for MC Derives from LArRampComplete, and implements the phi-...
Definition: LArRampMC.h:22
LArConditionsTestAlg::m_TB
BooleanProperty m_TB
Definition: LArConditionsTestAlg.h:70
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LArConditionsTestAlg::m_writeCorrections
BooleanProperty m_writeCorrections
Definition: LArConditionsTestAlg.h:67
LArConditionsContainer::chan_begin
chan_const_iterator chan_begin() const
Access to Channel numbers via iterators - from MultChanCollection.
LArConditionsTestAlg::testChannelSet
StatusCode testChannelSet()
Definition: LArConditionsTestAlg.cxx:1052
LArRampP1
Persistent data for LArRamp Copied from LAr.
Definition: LArRampP1.h:24
LArConditionsTestAlg::m_testReadDB
BooleanProperty m_testReadDB
Definition: LArConditionsTestAlg.h:69
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
skel.it
it
Definition: skel.GENtoEVGEN.py:396
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
HWIdentifier
Definition: HWIdentifier.h:13
LArOnlineID_Base::channel_end
id_iterator channel_end() const
Definition: LArOnlineID_Base.cxx:1927
LArConditionsContainer::iov_begin
iov_const_iterator iov_begin() const
Access to IOVs via iterators - from MultChanCollection.
LArConditionsContainer::conditionsPerGain
unsigned int conditionsPerGain(unsigned int gain) const
Statistics: number of conditions per gain.
LArConditionsContainer::nGains
unsigned int nGains() const
Number of gain values.
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
LArRampP1::m_vRamp
std::vector< float > m_vRamp
Definition: LArRampP1.h:30
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
LArConditionsContainer< LArRampP1 >
LArConditionsTestAlg::m_rampCorrections
std::vector< LArRampPTmp > m_rampCorrections
Definition: LArConditionsTestAlg.h:61
LArConditionsTestAlg::m_readCondObjs
BooleanProperty m_readCondObjs
Definition: LArConditionsTestAlg.h:65
LArRampMC::initialize
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
Definition: LArRampMC.cxx:10
LArConditionsContainer::totalNumberOfConditions
unsigned int totalNumberOfConditions() const
Statistics: total number of conditions.
LArConditionsTestAlg::createCompareObjects
StatusCode createCompareObjects()
Definition: LArConditionsTestAlg.cxx:144
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
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:85
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
ILArRamp
Definition: ILArRamp.h:12
LArConditionsTestAlg::m_applyCorrections
BooleanProperty m_applyCorrections
Definition: LArConditionsTestAlg.h:68
LArConditionsContainer::iov_size
iov_size_type iov_size() const
number of IOVs - from MultChanCollection
LArConditionsChannelSet
template class for use for I/O of conditions data correction sets
Definition: LArConditionsChannelSet.h:37
LArConditionsContainer::conditionsPerGroup
unsigned int conditionsPerGroup(unsigned int group) const
Statistics: number of conditions per group.
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
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
LArConditionsContainer::chan_end
chan_const_iterator chan_end() const
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
ILArOFC
Definition: ILArOFC.h:14
LArConditionsContainer::totalNumberOfCorrections
unsigned int totalNumberOfCorrections() const
Statistics: total number of corrections.
LArConditionsContainer::chan_size
chan_size_type chan_size() const
number of channels - from MultChanCollection
LArConditionsContainer::nGroups
unsigned int nGroups() const
Number of groups - minimum is 2 (1 correction group, 1 FEB ID group)
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
LArRampPTmp
Persistent data for LArRamp Copied from LAr.
Definition: LArRampPTmp.h:24
defineDB.ichan
int ichan
Definition: JetTagCalibration/share/defineDB.py:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
a
TList * a
Definition: liststreamerinfos.cxx:10
h
AtlasDetectorID::show_to_string
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
Definition: AtlasDetectorID.cxx:574
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
LArConditionsTestAlg::m_onlineID
const LArOnlineID * m_onlineID
Definition: LArConditionsTestAlg.h:63
DeMoScan.first
bool first
Definition: DeMoScan.py:536
DEBUG
#define DEBUG
Definition: page_access.h:11
AthCommonMsg< Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
LArConditionsContainer::conditionsPerChannel
unsigned int conditionsPerChannel(unsigned int coolChannel) const
Statistics: number of conditions per COOL channel.
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
LArConditionsTestAlg::m_writeCondObjs
BooleanProperty m_writeCondObjs
Definition: LArConditionsTestAlg.h:66
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
LArConditionsTestAlg::testCondObjects
StatusCode testCondObjects()
Definition: LArConditionsTestAlg.cxx:243
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
LArConditionsTestAlg::m_testCondObjs
BooleanProperty m_testCondObjs
Definition: LArConditionsTestAlg.h:64
error
Definition: IImpactPoint3dEstimator.h:70
ReadOfcFromCool.ofc
ofc
Definition: ReadOfcFromCool.py:110
LArConditionsContainerBase::FeedThroughGrouping
@ FeedThroughGrouping
Definition: LArConditionsContainerBase.h:48
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
LArOnlineID_Base::channel_begin
id_iterator channel_begin() const
Returns an iterator pointing to a channel identifier collection.
Definition: LArOnlineID_Base.cxx:1922
LArConditionsTestAlg::testDbObjectRead
StatusCode testDbObjectRead()
Definition: LArConditionsTestAlg.cxx:1150
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >