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

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

#include <LArCondDataTest.h>

Inheritance diagram for LArCondDataTest:
Collaboration diagram for LArCondDataTest:

Public Member Functions

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

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,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"}
 
SG::ReadCondHandleKey< LArCalibLineMappingm_CLKey {this, "CalibLineKey", "LArCalibLineMap", "SG calib line key"}
 
SG::ReadCondHandleKey< LArFebRodMappingm_RodKey {this, "FebRodKey", "LArFebRodMap", "SG ROD mapping key"}
 
const LArOnlineIDm_onlineID
 
const LArOnlineIDm_emid
 
int m_tbin
 
bool m_fixShape
 
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 35 of file LArCondDataTest.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

◆ LArCondDataTest()

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

Definition at line 45 of file LArCondDataTest.cxx.

45  :
46  AthAlgorithm(name,pSvcLocator),
47  m_onlineID(0),
48  m_emid(0),
49  m_tbin(0),m_fixShape(false)
50 
51 {
52  // switch for testing Filling IOV.
53  declareProperty("Tbin", m_tbin) ;
54  declareProperty("FixShape", m_fixShape) ;
55 }

◆ ~LArCondDataTest()

LArCondDataTest::~LArCondDataTest ( )

Definition at line 61 of file LArCondDataTest.cxx.

62 { }

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 LArCondDataTest::execute ( )

Definition at line 84 of file LArCondDataTest.cxx.

85 {
86  ATH_MSG_DEBUG(" LArCondDataTest::execute() ");
87 
89  const LArOnOffIdMapping* cabling{*cablingHdl};
90  if(!cabling){
91  ATH_MSG_ERROR("Do not have mapping object " << m_cablingKey.key() );
92  return StatusCode::FAILURE;
93  }
95  const LArCalibLineMapping *clCont {*clHdl};
96  if(!clCont){
97  ATH_MSG_ERROR("Do not have calib mapping object " << m_CLKey.key() );
98  return StatusCode::FAILURE;
99  }
101  const LArFebRodMapping *rodCont {*rodHdl};
102  if(!rodCont){
103  ATH_MSG_ERROR("Do not have ROD mapping object " << m_RodKey.key() );
104  return StatusCode::FAILURE;
105  }
106 
107  const std::vector<HWIdentifier>& roms = rodCont->getLArRoModIDvec();
108  ATH_MSG_DEBUG ( " Number of LArReadoutModuleIDs= " << roms.size() );
109 
110  std::vector<HWIdentifier>::const_iterator it = m_onlineID->channel_begin();
111  std::vector<HWIdentifier>::const_iterator it_end = m_onlineID->channel_end();
112 
113  int ntot = it_end-it;
114  ATH_MSG_DEBUG( " Total number of online channels from LArOnlineID "
115  <<ntot );
116 
117  int nch = 0;
118  int nconnected = 0;
119  int nerr=0;
120 
121  int n_err_uA2MeV=0;
122  int n_err_DAC2uA=0;
123 
124 
125  const ILArShape* pShape=0;
126  StatusCode sc = detStore()->retrieve(pShape);
127  if (!sc.isSuccess() ){
128  ATH_MSG_ERROR (" Failed to retrieve ILArShape from DetStore");
129  }
130 
131 
132  const ILArNoise* pNoise=0;
133  sc = detStore()->retrieve(pNoise);
134  if (!sc.isSuccess() ){
135  ATH_MSG_ERROR (" Failed to retrieve ILArNoise from DetStore");
136  }
137 
138 
139  const ILArRamp* pRamp=0;
140  sc = detStore()->retrieve(pRamp);
141  if (!sc.isSuccess() ){
142  ATH_MSG_ERROR (" Failed to retrieve ILArRamp from DetStore");
143  }
144 
145  const ILArDAC2uA* pDAC2uA=0;
146  sc = detStore()->retrieve(pDAC2uA);
147  if (!sc.isSuccess() ){
148  ATH_MSG_ERROR (" Failed to retrieve ILArDAC2uA from DetStore");
149  }
150 
151  const ILAruA2MeV* puA2MeV=0;
152  sc = detStore()->retrieve(puA2MeV);
153  if (!sc.isSuccess() ){
154  ATH_MSG_ERROR (" Failed to retrieve ILAruA2MeV from DetStore");
155  }
156 
157  const ILArAutoCorr* pAutoCorr=0;
158  sc = detStore()->retrieve(pAutoCorr);
159  if (!sc.isSuccess() ){
160  ATH_MSG_ERROR (" Failed to retrieve ILArAutoCorr from DetStore");
161  }
162 
163  const ILArPedestal* pPedestal=0;
164  sc = detStore()->retrieve(pPedestal);
165  if (!sc.isSuccess() ){
166  ATH_MSG_ERROR (" Failed to retrieve ILArPedestal from DetStore");
167  }
168 
169  const ILArfSampl* pfSampl=0;
170  sc = detStore()->retrieve(pfSampl);
171  if (!sc.isSuccess() ){
172  ATH_MSG_ERROR (" Failed to retrieve ILArfSampl from DetStore");
173  }
174 
175 
176  const ILArMinBias* pMinBias=0;
177  sc = detStore()->retrieve(pMinBias);
178  if (!sc.isSuccess() ){
179  ATH_MSG_ERROR (" Failed to retrieve ILArMinBias from DetStore");
180  }
181 
182 
183  for(;it!=it_end;++it) {
184  HWIdentifier sid = *it;
185  try {
186 
187  if(! cabling->isOnlineConnected(sid))
188  continue;
189 
190  if(m_onlineID->barrel_ec(sid)==1)
191  {// endcap
192  if(m_onlineID->feedthrough(sid)==6)
193  { // fcal
194  ATH_MSG_DEBUG( " FCAL sid "<<sid);
195  m_emid->print(sid);
196  }
197  }
198 
199  ++nconnected;
200  Identifier id = cabling->cnvToIdentifier(sid);
201  HWIdentifier sid2 =cabling->createSignalChannelID(id);
202  ++nch ;
203  if( sid !=sid2 ) {
204  ATH_MSG_ERROR( " HWIdentifier mismatch, sid "
205  <<" "<<sid<<" "<<m_onlineID->show_to_string(sid)
206  <<" offline id = "<< id <<" "<<m_onlineID->show_to_string(id)
207  <<" sid2 = "<< sid2 <<" "<<m_onlineID->show_to_string(sid2)
208  );
209  ++nerr;
210  }
211  else { // good identifier, test conditions objects
212 
213  // check Calibration Slot and Channel
214  const std::vector<HWIdentifier>&
215  calib = clCont->calibSlotLine(sid) ;
216  if(calib.size()==0) {
217  ATH_MSG_ERROR( " No calibration for this channel,hdw id="
218  <<sid.get_compact() );
219  }
220  else {
221  ATH_MSG_VERBOSE( " Calib ID ="<<m_onlineID->show_to_string(calib[0]) );
222  }
223 
224  const ILArRamp::RampRef_t v = pRamp->ADC2DAC(sid, 0 );
225 
226  if(v.size()!=3) {
227  ATH_MSG_ERROR( " Failed to find ramp, hdw id = "
228  <<sid.get_compact() <<" "<< id.get_compact() );
229  m_emid->print(id);
230  }
231 
232  float f = puA2MeV->UA2MEV( sid ) ;
233  if(f == ILAruA2MeV::ERRORCODE)
234  {
235  ATH_MSG_ERROR( " Failed to find uA2MeV, hdw id = "
236  <<sid.get_compact() );
237  ++n_err_uA2MeV;
238  }
239  f = pDAC2uA->DAC2UA( sid ) ;
240  if(f == ILArDAC2uA::ERRORCODE)
241  {
242  ATH_MSG_ERROR( " Failed to find DAC2uA, hdw id = "
243  <<sid.get_compact() );
244  ++n_err_DAC2uA;
245  }
246  f = pNoise->noise( sid , 0 ) ;
247  if( f == ILArNoise::ERRORCODE )
248  {
249  ATH_MSG_ERROR( " Failed to find Noise, hdw id = "
250  <<sid.get_compact() );
251  }
252 
253  ILArAutoCorr::AutoCorrRef_t v2 = pAutoCorr->autoCorr(sid, 0 );
254  if(v2.size()!=4) {
255  ATH_MSG_ERROR( " Failed to find AutoCorr, hdw id = "
256  <<sid.get_compact() );
257  }
258 
259 
260  ILArShape::ShapeRef_t vShape=pShape->Shape(sid, 0,m_tbin);
261  ILArShape::ShapeRef_t vShapeDer=pShape->ShapeDer(sid, 0,m_tbin );
262  if(vShape.size() ==0 || vShapeDer.size() == 0 ) {
263  ATH_MSG_ERROR( " Failed to get Shape or ShapeDer, hdw id = "
264  <<sid.get_compact() << " size = " << vShape.size() << " " << vShapeDer.size());
265  } else
266  {
267  if (msgLvl(MSG::VERBOSE)) {
268  msg()<<MSG::VERBOSE<< " hdw id "<<sid.get_compact() <<endmsg;
269  msg()<<MSG::VERBOSE<<" Shape= " ;
270  for (unsigned int i=0; i < vShape.size(); ++i){
271  msg()<<" " << vShape[i] ;
272  }
273  msg()<<endmsg;
274  msg()<<MSG::VERBOSE<<" ShapeDer=" ;
275  for (unsigned int i=0; i < vShapeDer.size(); ++i){
276  msg()<<" " << vShapeDer[i] ;
277  }
278  msg()<<endmsg;
279  }
280  }
281 
282 
283  // pedestal
284  float vPed = pPedestal->pedestal( sid,0 ) ;
285  if(vPed <= (1.0+LArElecCalib::ERRORCODE)) {
286  ATH_MSG_ERROR( " Failed to find pedestal, hdw id = "
287  <<sid.get_compact() );
288  }
289 
290  // fSampl
291  float fs = pfSampl->FSAMPL( sid ) ;
292  ATH_MSG_VERBOSE( " fsample and hdw id ="<<fs<<" " <<sid.get_compact() );
293 
294  if( fs==ILArfSampl::ERRORCODE ) {
295  ATH_MSG_ERROR( " Failed to find fSampl, hdw id = "
296  <<sid.get_compact() );
297  }
298 
299  // MinBias
300  float mbs = pMinBias->minBiasRMS( sid ) ;
301  if( mbs== ILArMinBias::ERRORCODE) {
302  ATH_MSG_ERROR( " Failed to find MinBias, hdw id = "
303  <<sid.get_compact() );
304  }
305 
306  }
307  }
308  catch (LArID_Exception& except) {
309  // this is allowed.
310  std::string err = m_onlineID->print_to_string(sid);
311  ATH_MSG_VERBOSE( (std::string)except << sid.get_identifier32().get_compact());
312  ATH_MSG_VERBOSE( err );
313  }
314  }
315  ATH_MSG_DEBUG (" Number of Connected Channel ID = " <<nconnected );
316  ATH_MSG_DEBUG (" Number of Valid Channel ID = " <<nch );
317  if(nerr>0) ATH_MSG_ERROR (" Number channels with incorrect mapping= " <<nerr );
318 
319  if (n_err_uA2MeV!=0)
320  ATH_MSG_DEBUG (" Number of channels without uA2MeV "<<n_err_uA2MeV);
321  if (n_err_DAC2uA!=0)
322  ATH_MSG_DEBUG (" Number of channels without DAC2uA"<<n_err_DAC2uA);
323 
324  return StatusCode::SUCCESS;
325 }

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

Definition at line 334 of file LArCondDataTest.cxx.

335 {
336  ATH_MSG_DEBUG ( " finalize ");
337 
338  if(!m_fixShape)
339  return StatusCode::SUCCESS;
340 
341  return StatusCode::SUCCESS;
342 
343 }

◆ initialize()

StatusCode LArCondDataTest::initialize ( )

Definition at line 68 of file LArCondDataTest.cxx.

69 {
75 
76  ATH_MSG_DEBUG ( "initialize done" );
77  return StatusCode::SUCCESS;
78 }

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

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

SG::ReadCondHandleKey<LArOnOffIdMapping> LArCondDataTest::m_cablingKey {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"}
private

Definition at line 49 of file LArCondDataTest.h.

◆ m_CLKey

SG::ReadCondHandleKey<LArCalibLineMapping> LArCondDataTest::m_CLKey {this, "CalibLineKey", "LArCalibLineMap", "SG calib line key"}
private

Definition at line 50 of file LArCondDataTest.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 LArOnlineID* LArCondDataTest::m_emid
private

Definition at line 53 of file LArCondDataTest.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_fixShape

bool LArCondDataTest::m_fixShape
private

Definition at line 55 of file LArCondDataTest.h.

◆ m_onlineID

const LArOnlineID* LArCondDataTest::m_onlineID
private

Definition at line 52 of file LArCondDataTest.h.

◆ m_RodKey

SG::ReadCondHandleKey<LArFebRodMapping> LArCondDataTest::m_RodKey {this, "FebRodKey", "LArFebRodMap", "SG ROD mapping key"}
private

Definition at line 51 of file LArCondDataTest.h.

◆ m_tbin

int LArCondDataTest::m_tbin
private

Definition at line 54 of file LArCondDataTest.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:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
LArFebRodMapping
Definition: LArFebRodMapping.h:17
ILArPedestal::pedestal
virtual float pedestal(const HWIdentifier &id, int gain) const =0
ILArDAC2uA::DAC2UA
virtual const float & DAC2UA(const HWIdentifier &id) const =0
access to DAC2UA conversion factor index by Identifier, and gain setting
ILAruA2MeV::UA2MEV
virtual const float & UA2MEV(const HWIdentifier &id) const =0
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
ILAruA2MeV
Definition: ILAruA2MeV.h:13
ILArPedestal
Definition: ILArPedestal.h:12
LArCalibLineMapping
Definition: LArCalibLineMapping.h:17
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
ILArShape::ShapeDer
virtual ShapeRef_t ShapeDer(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0
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
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
Identifier::get_compact
value_type get_compact() const
Get the compact id.
AthCommonMsg< Algorithm >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
LArCondDataTest::m_onlineID
const LArOnlineID * m_onlineID
Definition: LArCondDataTest.h:52
LArCondDataTest::m_CLKey
SG::ReadCondHandleKey< LArCalibLineMapping > m_CLKey
Definition: LArCondDataTest.h:50
ILArDAC2uA
Definition: ILArDAC2uA.h:13
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
LArCondDataTest::m_RodKey
SG::ReadCondHandleKey< LArFebRodMapping > m_RodKey
Definition: LArCondDataTest.h:51
HWIdentifier
Definition: HWIdentifier.h:13
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:1938
LArOnlineID_Base::channel_end
id_iterator channel_end() const
Definition: LArOnlineID_Base.cxx:1927
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition: Identifier32.h:44
ILArAutoCorr::autoCorr
virtual AutoCorrRef_t autoCorr(const HWIdentifier &CellID, int gain) const =0
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
ILArNoise
Definition: ILArNoise.h:12
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
ILArAutoCorr
This class defines the interface for accessing AutoCorrelation parameters for each channel @stereotyp...
Definition: ILArAutoCorr.h:29
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
LArCondDataTest::m_emid
const LArOnlineID * m_emid
Definition: LArCondDataTest.h:53
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
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
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
ILArfSampl::FSAMPL
virtual const float & FSAMPL(const HWIdentifier &id) const =0
ILArNoise::noise
virtual const float & noise(const HWIdentifier &id, int gain) const =0
ILArMinBias::ERRORCODE
@ ERRORCODE
Definition: ILArMinBias.h:30
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
hist_file_dump.f
f
Definition: hist_file_dump.py:135
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
ILArMinBias
Definition: ILArMinBias.h:13
LArCondDataTest::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArCondDataTest.h:49
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
ILArRamp::ADC2DAC
virtual RampRef_t ADC2DAC(const HWIdentifier &id, int gain) const =0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
AtlasDetectorID::print_to_string
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
Definition: AtlasDetectorID.cxx:655
LArCondDataTest::m_tbin
int m_tbin
Definition: LArCondDataTest.h:54
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ILArfSampl::ERRORCODE
@ ERRORCODE
Definition: ILArfSampl.h:39
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
AtlasDetectorID::print
void print(Identifier id, const IdContext *context=0) const
Expanded print out of any identifier.
Definition: AtlasDetectorID.cxx:648
LArCondDataTest::m_fixShape
bool m_fixShape
Definition: LArCondDataTest.h:55
PlotSFuncertainty.calib
calib
Definition: PlotSFuncertainty.py:110
ReadCellNoiseFromCoolCompare.v2
v2
Definition: ReadCellNoiseFromCoolCompare.py:364
python.PyAthena.v
v
Definition: PyAthena.py:154
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:1944
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
ILArNoise::ERRORCODE
@ ERRORCODE
Definition: ILArNoise.h:39
ILArMinBias::minBiasRMS
virtual const float & minBiasRMS(const HWIdentifier &id) const =0
access to RMS of E in minimum bias events index by Identifier
AthCommonMsg< Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
ILArDAC2uA::ERRORCODE
@ ERRORCODE
Definition: ILArDAC2uA.h:37
Herwig7_QED_EvtGen_ll.fs
dictionary fs
Definition: Herwig7_QED_EvtGen_ll.py: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:
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition: LArCalibErrorCode.h:17
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14
ILArShape
Definition: ILArShape.h:13
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
LArID_Exception
Exception class for LAr Identifiers.
Definition: LArID_Exception.h:20
ILAruA2MeV::ERRORCODE
@ ERRORCODE
Definition: ILAruA2MeV.h:35
fitman.k
k
Definition: fitman.py:528
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition: LArVectorProxy.h:38
ILArfSampl
Definition: ILArfSampl.h:14
ServiceHandle< ICondSvc >
LArOnOffIdMapping
Definition: LArOnOffIdMapping.h:20
ILArShape::Shape
virtual ShapeRef_t Shape(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0
Identifier
Definition: IdentifierFieldParser.cxx:14