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

#include <TileOFC2DBAlg.h>

Inheritance diagram for TileOFC2DBAlg:
Collaboration diagram for TileOFC2DBAlg:

Public Member Functions

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

StatusCode registerCondObjects ()
 
StatusCode printCondObjects ()
 
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::ReadHandleKey< xAOD::EventInfom_eventInfoKey
 
UnsignedIntegerProperty m_runIOVSince
 
UnsignedIntegerProperty m_runIOVUntil
 
UnsignedIntegerProperty m_lbnIOVSince
 
UnsignedIntegerProperty m_lbnIOVUntil
 
UnsignedIntegerProperty m_maxChan
 
bool m_of2
 
bool m_fixedPhases
 
std::string m_runType
 
IIOVRegistrationSvcm_regSvc
 
ToolHandle< TileCondToolTimingm_tileToolTiming
 
ToolHandle< ITileCondToolOfcm_tileCondToolOfc
 
std::set< std::string > m_folders
 
int m_nFixedPhases
 
double m_phaseStep
 
std::vector< std::string > m_modules
 
std::vector< unsigned int > m_drawerIdxs
 
bool m_creatAllModules
 
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 33 of file TileOFC2DBAlg.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

◆ TileOFC2DBAlg()

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

Definition at line 26 of file TileOFC2DBAlg.cxx.

27  : AthAlgorithm(name, pSvcLocator)
28  , m_regSvc(nullptr)
29 
30 {
31  declareProperty("OF2", m_of2 = true,"true => OF2, false => OF1");
36  declareProperty("FixedPhases", m_fixedPhases = true, "calculate OFCs for fixed phases" );
37  declareProperty("RunType", m_runType = "PHY", "PHY or LAS");
38 
39  declareProperty("FixedPhasesNumber", m_nFixedPhases = 100);
40  declareProperty("PhaseStep", m_phaseStep = 0.5);
41  declareProperty("MaxChan", m_maxChan = 1, "Number of channels for which OFCs will be created with fixed phases");
42  declareProperty("Modules", m_modules = {"AUX01"}, "Modules for which OFC should be stored in DB");
43  declareProperty("CreateAllModules", m_creatAllModules = true, "All missing modules is written to DB with zero size (empty)");
44 }

◆ ~TileOFC2DBAlg()

TileOFC2DBAlg::~TileOFC2DBAlg ( )

Definition at line 46 of file TileOFC2DBAlg.cxx.

46  {
47 }

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

Definition at line 86 of file TileOFC2DBAlg.cxx.

86  {
87  const EventContext &ctx = Gaudi::Hive::currentContext();
88 
89  //=== print run/evt/lbn/time info for each event
91  ATH_CHECK( eventInfo.isValid() );
92 
93  ATH_MSG_DEBUG( "Event: ["
94  << eventInfo->runNumber() << ","
95  << eventInfo->eventNumber() << ":"
96  << eventInfo->timeStamp() << "]" );
97 
98 
99  //=== Create conditions objects only at run == ?, event == ?
100  if (1 != eventInfo->eventNumber()) {
101  ATH_MSG_DEBUG( "Event NOT selected for creating conditions objects " );
102  return StatusCode::SUCCESS;
103  } else {
104  ATH_MSG_DEBUG( "Creating conditions objects " );
105  }
106 
107  //unsigned int objVersion = (m_of2) ? 3 : 1;
108  unsigned int objVersion = 3; // non efficient, but allows to keep dG also for OF1
109 
110  //=== build the IOV range
112 
113  //=== build COOL folder name based on ???????
114  std::string folder("/TILE/ONL01/FILTER/");
115  if (m_of2) folder += "OF2/" + m_runType;
116  else folder += "OF1/" + m_runType;
117  m_folders.insert(folder);
118 
119  //=== create the folder layout
120  coral::AttributeListSpecification* spec = new coral::AttributeListSpecification();
121  spec->extend("TileCalibBlobOfc", "blob");
122 
123  //=== create the collection of attribute lists
124  CondAttrListCollection* attrListColl = new CondAttrListCollection(true);
125 
126  float zeroPhase(0.0);
127  TileOfcWeightsStruct weights;
128  ATH_CHECK( m_tileCondToolOfc->getOfcWeights(0, 0, 0, zeroPhase, true, weights, ctx) );
129  int ndig = weights.n_samples;
130 
131  // ---------- create fixed phases
132  if (m_fixedPhases) {
133  ATH_MSG_DEBUG( "Fixed phases: " << m_fixedPhases
134  << ", number of fixed phases: " << m_nFixedPhases
135  << ", phase step: " << m_phaseStep);
136 
137  std::vector<float> phases;
138  phases.reserve(m_nFixedPhases * 2 + 1);
139 
140  //=== create attribute list
141  coral::AttributeList ofcList(*spec);
142  coral::Blob& blob = ofcList["TileCalibBlobOfc"].data<coral::Blob>();
143 
144  std::vector<bool> coolChannelCreated(TileCalibUtils::MAX_DRAWERIDX, false);
145 
146  for (int iPhase = - m_nFixedPhases; iPhase <= m_nFixedPhases; ++iPhase) {
147  phases.push_back(iPhase * m_phaseStep);
148  }
149 
150  int nPhases = phases.size();
152 
153  for (unsigned int drawerIdx : m_drawerIdxs) {
154  coolChannelCreated[drawerIdx] = true;
155  drawerOfc = TileCalibDrawerOfc::getInstance(blob, objVersion, ndig, -nPhases, m_maxChan, TileCalibUtils::MAX_GAIN); // nPhases, nChann, nGains
156 
157  drawerOfc->setPhases(0, 0, phases);
158 
159  for (unsigned int channel = 0; channel < m_maxChan; ++channel) {
160  for (unsigned int gain = 0; gain < TileCalibUtils::MAX_GAIN; ++gain) {
161 
162  for (float phase : phases) {
163  ATH_CHECK( m_tileCondToolOfc->getOfcWeights(drawerIdx, channel, gain, phase, m_of2, weights, ctx) );
164  for (int isam = 0; isam < ndig; isam++) {
165  drawerOfc->setOfc(TileCalibDrawerOfc::FieldA, channel, gain, phase, isam, weights.w_a[isam]);
166  drawerOfc->setOfc(TileCalibDrawerOfc::FieldB, channel, gain, phase, isam, weights.w_b[isam]);
167  drawerOfc->setOfc(TileCalibDrawerOfc::FieldG, channel, gain, phase, isam, weights.g[isam]);
168  if (objVersion == 3) {
169  drawerOfc->setOfc(TileCalibDrawerOfc::FieldC, channel, gain, phase, isam, weights.w_c[isam]);
170  drawerOfc->setOfc(TileCalibDrawerOfc::FieldDG, channel, gain, phase, isam, weights.dg[isam]);
171  }
172  }
173 
174 
175  if (msgLvl(MSG::DEBUG)) {
176 
177  msg(MSG::DEBUG) << " N Samples " << ndig
178  << " channel " << channel
179  << " drawerIdx " << drawerIdx
180  << " gain " << gain
181  << " phase = " << phase << endmsg;
182 
183  msg(MSG::DEBUG) << "gain " << gain << " w_a, phase " << phase << " ";
184  for (int isam = 0; isam < ndig; ++isam)
185  msg(MSG::DEBUG) << " " << weights.w_a[isam];
186  msg(MSG::DEBUG) << endmsg;
187 
188  msg(MSG::DEBUG) << "gain " << gain << " w_b, phase " << phase << " ";
189  for (int isam = 0; isam < ndig; isam++)
190  msg(MSG::DEBUG) << " " << weights.w_b[isam];
191  msg(MSG::DEBUG) << endmsg;
192 
193  if (m_of2) {
194  msg(MSG::DEBUG) << "gain " << gain << " w_c, phase " << phase << " ";
195  for (int isam = 0; isam < ndig; isam++)
196  msg(MSG::DEBUG) << " " << weights.w_c[isam];
197  msg(MSG::DEBUG) << endmsg;
198  }
199 
200  msg(MSG::DEBUG) << "gain " << gain << " g, phase " << phase << " ";
201  for (int isam = 0; isam < ndig; isam++)
202  msg(MSG::DEBUG) << " " << weights.g[isam];
203  msg(MSG::DEBUG) << endmsg;
204 
205  }
206 
207  }
208  }
209 
210 
211  }
212 
213  //=== use DrawerHash as channel number
214  attrListColl->add(drawerIdx, ofcList);
215 
216  //=== add the IOV range for this collection
217  attrListColl->add(drawerIdx, range);
218  // drawerOfc->dump();
219  delete drawerOfc;
220 
221  }
222 
223  //=== Create empty blobs for all COOL channels (for missing drawers)
224  if (m_creatAllModules) {
225  for (unsigned int coolChannel = 0; coolChannel < TileCalibUtils::MAX_DRAWERIDX; ++coolChannel) {
226  if (coolChannelCreated[coolChannel]) continue;
227  //=== create attribute list for this drawer
228  coral::AttributeList ofcList(*spec);
229  //coral::Blob& blob=ofcList["TileCalibBlobOfc"].data<coral::Blob>();
230  attrListColl->add(coolChannel, ofcList);
231  attrListColl->add(coolChannel, range);
232  }
233  }
234 
235  } else { // take best phase from DB and calculate OFCs for each channel
236 
237  std::vector<float> phases(TileCalibUtils::MAX_CHAN);
238 
239  //=== create attribute list
240  coral::AttributeList ofcList(*spec);
241  coral::Blob& blob = ofcList["TileCalibBlobOfc"].data<coral::Blob>();
242 
243  //=== create an OFC blob interpreter
244  TileCalibDrawerOfc* drawerOfc = TileCalibDrawerOfc::getInstance(blob, objVersion, ndig, -48, 256, 2); // nPhases, nChann, nGains
245 
246  for (unsigned int channel = 0; channel < TileCalibUtils::MAX_CHAN; ++channel)
247  phases[channel] = (float) channel;
248 
249  for (unsigned int ros = 1; ros < TileCalibUtils::MAX_ROS; ++ros) {
250  for (unsigned int drawer = 0; drawer < TileCalibUtils::getMaxDrawer(ros); ++drawer) {
251  unsigned int drawerIdx = TileCalibUtils::getDrawerIdx(ros, drawer);
252  drawerOfc->setPhases(drawerIdx, 0, phases);
253 
254  for (unsigned int channel = 0; channel < TileCalibUtils::MAX_CHAN; ++channel) {
255 
256  for (unsigned int gain = 0; gain < TileCalibUtils::MAX_GAIN; ++gain) {
257 
258  float phase = m_tileToolTiming->getSignalPhase(drawerIdx, channel, gain);
259  ATH_MSG_DEBUG( "m_tileToolTiming:"
260  << " drawerIdx " << drawerIdx
261  << " channel " << channel
262  << " gain " << gain
263  << " phase " << phase );
264 
265  ATH_CHECK( m_tileCondToolOfc->getOfcWeights(drawerIdx, channel, gain, phase, m_of2, weights, ctx) );
266  ATH_MSG_DEBUG( " N Samples " << ndig
267  << " ros " << ros
268  << " drawer " << drawer
269  << " channel " << channel
270  << " drawerIdx " << drawerIdx
271  << " gain " << gain
272  << " phase = " << phase );
273 
274  double w_a_sum = 0, w_b_sum = 0, w_c_sum = 0;
275  for (int isam = 0; isam < ndig; isam++) {
276  if (m_of2) {
277  ATH_MSG_DEBUG( " sampling " << isam
278  << " w_a " << weights.w_a[isam]
279  << " w_b " << weights.w_b[isam]
280  << " w_c " << weights.w_c[isam]
281  << " g " << weights.g[isam] );
282 
283  } else {
284  ATH_MSG_DEBUG( " sampling " << isam
285  << " w_a " << weights.w_a[isam]
286  << " w_b " << weights.w_b[isam]
287  << " g " << weights.g[isam] );
288 
289  }
290 
291  w_a_sum += weights.w_a[isam];
292  w_b_sum += weights.w_b[isam];
293  w_c_sum += weights.w_c[isam];
294 
295  drawerOfc->setOfc(0, drawerIdx, gain, channel, isam, weights.w_a[isam]);
296  drawerOfc->setOfc(1, drawerIdx, gain, channel, isam, weights.w_b[isam]);
297  if (m_of2) {
298  drawerOfc->setOfc(2, drawerIdx, gain, channel, isam, weights.w_c[isam]);
299  drawerOfc->setOfc(3, drawerIdx, gain, channel, isam, weights.g[isam]);
300  } else {
301  drawerOfc->setOfc(2, drawerIdx, gain, channel, isam, weights.g[isam]);
302  }
303  }
304 
305  if (m_of2) ATH_MSG_DEBUG( " *** SUM: a,b,c " << w_a_sum << " " << w_b_sum << " " << w_c_sum );
306 
307  } // for ... gain
308  } // for ... channel
309 
310  //=== use DrawerHash as channel number
311  attrListColl->add(drawerIdx, ofcList);
312 
313  //=== add the IOV range for this collection
314  attrListColl->add(drawerIdx, range);
315  // drawerOfc->dump();
316  } // for ... drawer
317  } // for ... ros
318  delete drawerOfc;
319  }
320 
321  //=== add the comment in the comment channel
322  coral::AttributeList attrList(*spec);
323  coral::Blob& blob = attrList["TileCalibBlobOfc"].data<coral::Blob>();
324  const char* user = getenv("USER");
325  TileCalibDrawerCmt* comment = TileCalibDrawerCmt::getInstance(blob, (user ? user : "tilecomm"), "OFC weights calculated by TileCondToolOfc");
326  delete comment;
327  attrListColl->add(TileCalibUtils::getCommentChannel(), attrList);
328  attrListColl->add(TileCalibUtils::getCommentChannel(), range);
329 
330  spec->release();
331  // cppcheck-suppress memleak
332  spec = nullptr;
333 
334  //=== recored collection in store gate
335  CHECK( detStore()->record(attrListColl, folder) );
336 
337  //=======================================
338  //=== Print conditions data in detector store
339  //=======================================
340  ATH_MSG_DEBUG( "Calling printCondObjects" );
341 
342  CHECK( printCondObjects() );
343 
344  return StatusCode::SUCCESS;
345 }

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

Definition at line 349 of file TileOFC2DBAlg.cxx.

349  {
350 
351  ATH_MSG_INFO( "in finalize()" );
352 
353  //=== Register objects in DB
355 
356  ATH_MSG_DEBUG( "Register OK " );
357 
358  return StatusCode::SUCCESS;
359 }

◆ initialize()

StatusCode TileOFC2DBAlg::initialize ( )

Definition at line 51 of file TileOFC2DBAlg.cxx.

51  {
52 
53  ATH_MSG_INFO( "Initializing for " << m_runType );
54 
55  //=== EventInfo key
57 
58  //=== get TileToolTiming
59  CHECK( m_tileToolTiming.retrieve() );
60 
61  //=== get TileCondToolOfc
62  CHECK( m_tileCondToolOfc.retrieve() );
63 
64  //=== IOVRegistrationSvc
65  CHECK( service("IOVRegistrationSvc", m_regSvc) );
66 
67  ATH_MSG_DEBUG( "Found IOVRegistrationSvc " );
68 
69 
70  std::map<std::string, unsigned int> roses = { {"AUX", 0}, {"LBA", 1}, {"LBC", 2}, {"EBA", 3}, {"EBC", 4} };
71 
72  msg(MSG::INFO) << "OFC will be stored in DB for the following modules:";
73  for (const std::string& module : m_modules) {
74  msg(MSG::INFO) << " " << module;
75  m_drawerIdxs.push_back( TileCalibUtils::getDrawerIdx(roses[module.substr(0, 3)], std::stoi(module.substr(3, 2)) - 1) );
76  }
77  msg(MSG::INFO) << endmsg;
78 
79  if (m_creatAllModules) ATH_MSG_INFO("All other missing modules will be stored in DB with zero size");
80 
81  return StatusCode::SUCCESS;
82 }

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

◆ printCondObjects()

StatusCode TileOFC2DBAlg::printCondObjects ( )
private

Definition at line 394 of file TileOFC2DBAlg.cxx.

394  {
395 
396  ATH_MSG_INFO( "in printCondObjects()" );
397 
398  //=== loop over all folders
399  for (std::set<std::string>::const_iterator iFolder = m_folders.begin();
400  iFolder != m_folders.end(); ++iFolder) {
401 
402  ATH_MSG_DEBUG( "Printing content of folder: " << *iFolder );
403 
404  //=== determine blob name
405  std::string blobName("TileCalibBlob");
406  if (iFolder->find("/TILE/ONL01/FILTER") != std::string::npos) {
407  blobName += "Ofc";
408  }
409 
410  ATH_MSG_DEBUG( "The blob name is: " << blobName );
411 
412  const CondAttrListCollection* attrListColl(nullptr);
413  CHECK( detStore()->retrieve(attrListColl, *iFolder) );
414 
415  if (!attrListColl) {
416  ATH_MSG_ERROR("Has not retrieved AttributeListCollection (ptr is 0) from " << *iFolder );
417  return StatusCode::FAILURE;
418  }
419 
420  //=== find the general comment
421  std::string generalComment("");
422  CondAttrListCollection::const_iterator iComment = attrListColl->chanAttrListPair( TileCalibUtils::getCommentChannel());
423  if (iComment != attrListColl->end()) {
424  const coral::Blob& blob = (iComment->second)[blobName].data<coral::Blob>();
426  generalComment = cmt->getFullComment();
427  delete cmt;
428  }
429 
430  //=== loop over collection
431  CondAttrListCollection::const_iterator iColl = attrListColl->begin();
432  CondAttrListCollection::const_iterator last = attrListColl->end();
433  for (; iColl != last; ++iColl) {
434 
435  //=== do not print comment channel
436  if (iColl == iComment) continue;
437 
438  //=== try to find comment for this drawer
439  const coral::Blob& blob = (iColl->second)[blobName].data<coral::Blob>();
440  //=== do not print empty blobs
441  if (!blob.size()) {
442  continue;
443  }
444 
446  std::ostringstream attrStr1;
447  (*iColl).second.toOutputStream(attrStr1);
448  ATH_MSG_DEBUG( "ChanNum " << (*iColl).first << " Attribute list " << attrStr1.str() );
449 
450  // Print out range if it exits
451  CondAttrListCollection::ChanNum chanNum = (*iColl).first;
452  CondAttrListCollection::iov_const_iterator iovIt = attrListColl->chanIOVPair(chanNum);
453  if (iovIt != attrListColl->iov_end()) {
454  const IOVRange& range = (*iovIt).second;
455  if (range.start().isTimestamp()) {
456  ATH_MSG_DEBUG( "Range timestamp :"
457  << " since " << range.start().timestamp()
458  << " till " << range.stop().timestamp() );
459 
460  } else {
461  ATH_MSG_DEBUG( "Range R/LB :"
462  << " since " << range.start().run() << " " << range.start().event()
463  << " till " << range.stop().run() << " " << range.stop().event() );
464  }
465  } else {
466  ATH_MSG_DEBUG( "No range found " );
467  }
468 
469  //=== print the comment
470  std::string comment = cmt->getFullComment();
471  if (comment.empty()) {
472  comment = generalComment;
473  }
474  ATH_MSG_DEBUG( "Comment: " << comment );
475  delete cmt;
476 
477  }
478  } //end iFolder
479 
480  return StatusCode::SUCCESS;
481 }

◆ registerCondObjects()

StatusCode TileOFC2DBAlg::registerCondObjects ( )
private

Definition at line 364 of file TileOFC2DBAlg.cxx.

364  {
365 
366  ATH_MSG_DEBUG( "entering registerCondObject " );
367 
368  for (std::set<std::string>::const_iterator iFolder = m_folders.begin();
369  iFolder != m_folders.end(); ++iFolder) {
370 
371  const CondAttrListCollection* attrListColl = nullptr;
372  CHECK( detStore()->retrieve(attrListColl, *iFolder) );
373 
374  if (nullptr == attrListColl) {
375  ATH_MSG_ERROR( "Has not retrieved AttributeListCollection (ptr is 0) from " << *iFolder );
376  return (StatusCode::FAILURE);
377  } else {
378  ATH_MSG_DEBUG( "Retrieved AttributeListCollection from " << *iFolder );
379  }
380 
381  //=== register in COOL
382  std::string tag = "";
383  CHECK( m_regSvc->registerIOV("CondAttrListCollection", *iFolder, tag) );
384 
385  ATH_MSG_DEBUG( "Registered folder " << *iFolder << " with tag " << tag );
386 
387  } //end iFolder
388 
389  return StatusCode::SUCCESS;
390 }

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

bool TileOFC2DBAlg::m_creatAllModules
private

Definition at line 76 of file TileOFC2DBAlg.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_drawerIdxs

std::vector<unsigned int> TileOFC2DBAlg::m_drawerIdxs
private

Definition at line 75 of file TileOFC2DBAlg.h.

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> TileOFC2DBAlg::m_eventInfoKey
private
Initial value:
{this,
"EventInfo", "EventInfo", "EventInfo key"}

Definition at line 49 of file TileOFC2DBAlg.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_fixedPhases

bool TileOFC2DBAlg::m_fixedPhases
private

Definition at line 59 of file TileOFC2DBAlg.h.

◆ m_folders

std::set<std::string> TileOFC2DBAlg::m_folders
private

Definition at line 70 of file TileOFC2DBAlg.h.

◆ m_lbnIOVSince

UnsignedIntegerProperty TileOFC2DBAlg::m_lbnIOVSince
private

Definition at line 55 of file TileOFC2DBAlg.h.

◆ m_lbnIOVUntil

UnsignedIntegerProperty TileOFC2DBAlg::m_lbnIOVUntil
private

Definition at line 56 of file TileOFC2DBAlg.h.

◆ m_maxChan

UnsignedIntegerProperty TileOFC2DBAlg::m_maxChan
private

Definition at line 57 of file TileOFC2DBAlg.h.

◆ m_modules

std::vector<std::string> TileOFC2DBAlg::m_modules
private

Definition at line 74 of file TileOFC2DBAlg.h.

◆ m_nFixedPhases

int TileOFC2DBAlg::m_nFixedPhases
private

Definition at line 72 of file TileOFC2DBAlg.h.

◆ m_of2

bool TileOFC2DBAlg::m_of2
private

Definition at line 58 of file TileOFC2DBAlg.h.

◆ m_phaseStep

double TileOFC2DBAlg::m_phaseStep
private

Definition at line 73 of file TileOFC2DBAlg.h.

◆ m_regSvc

IIOVRegistrationSvc* TileOFC2DBAlg::m_regSvc
private

Definition at line 63 of file TileOFC2DBAlg.h.

◆ m_runIOVSince

UnsignedIntegerProperty TileOFC2DBAlg::m_runIOVSince
private

Definition at line 53 of file TileOFC2DBAlg.h.

◆ m_runIOVUntil

UnsignedIntegerProperty TileOFC2DBAlg::m_runIOVUntil
private

Definition at line 54 of file TileOFC2DBAlg.h.

◆ m_runType

std::string TileOFC2DBAlg::m_runType
private

Definition at line 60 of file TileOFC2DBAlg.h.

◆ m_tileCondToolOfc

ToolHandle<ITileCondToolOfc> TileOFC2DBAlg::m_tileCondToolOfc
private
Initial value:
{this,
"TileCondToolOfc", "TileCondToolOfc", "Tile OFC tool"}

Definition at line 66 of file TileOFC2DBAlg.h.

◆ m_tileToolTiming

ToolHandle<TileCondToolTiming> TileOFC2DBAlg::m_tileToolTiming
private
Initial value:
{this,
"TileCondToolTiming", "TileCondToolTiming", "Tile timing tool"}

Definition at line 64 of file TileOFC2DBAlg.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
TileOFC2DBAlg::m_runIOVSince
UnsignedIntegerProperty m_runIOVSince
Definition: TileOFC2DBAlg.h:53
ReadOfcFromCool.phase
phase
Definition: ReadOfcFromCool.py:127
TileOFC2DBAlg::m_runType
std::string m_runType
Definition: TileOFC2DBAlg.h:60
TileOFC2DBAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: TileOFC2DBAlg.h:49
TileOFC2DBAlg::m_creatAllModules
bool m_creatAllModules
Definition: TileOFC2DBAlg.h:76
IOVRange
Validity Range object. Holds two IOVTimes (start and stop)
Definition: IOVRange.h:30
TileCalibUtils::getMaxDrawer
static unsigned int getMaxDrawer(unsigned int ros)
Returns the maximal channel number for a given drawer.
Definition: TileCalibUtils.cxx:136
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
IOVTime::MAXRUN
static constexpr uint32_t MAXRUN
Definition: IOVTime.h:48
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
TileOFC2DBAlg::printCondObjects
StatusCode printCondObjects()
Definition: TileOFC2DBAlg.cxx:394
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
TileCalibBlobPython_writeOfc.phases
phases
Definition: TileCalibBlobPython_writeOfc.py:89
TileOfcWeightsStruct::g
float g[99]
Definition: ITileCondToolOfc.h:14
CaloCondBlobAlgs_fillNoiseFromASCII.spec
spec
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:47
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
TileCalibUtils::MAX_DRAWERIDX
static const unsigned int MAX_DRAWERIDX
Maximal drawer index
Definition: TileCalibUtils.h:143
TileOfcWeightsStruct::w_c
float w_c[99]
Definition: ITileCondToolOfc.h:14
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
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
AthCommonMsg< Algorithm >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
IIOVRegistrationSvc::registerIOV
virtual StatusCode registerIOV(const std::string &typeName) const =0
Register IOV DB for an object given its typeName - run/LB numbers interval or times interval and tag ...
TileCalibBlobPython_writeOfc.cmt
cmt
Definition: TileCalibBlobPython_writeOfc.py:142
TileOFC2DBAlg::m_lbnIOVUntil
UnsignedIntegerProperty m_lbnIOVUntil
Definition: TileOFC2DBAlg.h:56
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
CondAttrListCollection::iov_const_iterator
ChanIOVMap::const_iterator iov_const_iterator
Definition: CondAttrListCollection.h:66
TileOFC2DBAlg::m_lbnIOVSince
UnsignedIntegerProperty m_lbnIOVSince
Definition: TileOFC2DBAlg.h:55
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
TileCalibBlobPython_writeOfc.objVersion
objVersion
Definition: TileCalibBlobPython_writeOfc.py:71
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
IOVTime::MINRUN
static constexpr uint32_t MINRUN
Definition: IOVTime.h:44
TileOfcWeightsStruct::n_samples
int n_samples
Definition: ITileCondToolOfc.h:15
python.PyAthena.module
module
Definition: PyAthena.py:134
IOVTime
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
Definition: IOVTime.h:33
TileOfcWeightsStruct::dg
float dg[99]
Definition: ITileCondToolOfc.h:14
TileOFC2DBAlg::m_runIOVUntil
UnsignedIntegerProperty m_runIOVUntil
Definition: TileOFC2DBAlg.h:54
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
TileOFC2DBAlg::m_drawerIdxs
std::vector< unsigned int > m_drawerIdxs
Definition: TileOFC2DBAlg.h:75
checkCoolLatestUpdate.chanNum
chanNum
Definition: checkCoolLatestUpdate.py:27
TileOFC2DBAlg::m_of2
bool m_of2
Definition: TileOFC2DBAlg.h:58
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
sim_rttUpdate.user
def user
Definition: sim_rttUpdate.py:662
TileOFC2DBAlg::m_tileCondToolOfc
ToolHandle< ITileCondToolOfc > m_tileCondToolOfc
Definition: TileOFC2DBAlg.h:66
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
TileOfcWeightsStruct
Definition: ITileCondToolOfc.h:13
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TileOFC2DBAlg::registerCondObjects
StatusCode registerCondObjects()
Definition: TileOFC2DBAlg.cxx:364
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
TileCalibUtils::MAX_ROS
static const unsigned int MAX_ROS
Number of ROSs
Definition: TileCalibUtils.h:138
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
TileOFC2DBAlg::m_fixedPhases
bool m_fixedPhases
Definition: TileOFC2DBAlg.h:59
CondAttrListCollection::ChanNum
unsigned int ChanNum
Definition: CondAttrListCollection.h:55
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
IOVTime::MAXEVENT
static constexpr uint32_t MAXEVENT
Definition: IOVTime.h:51
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
CaloCondBlobAlgs_fillNoiseFromASCII.comment
string comment
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:27
TileCalibDrawerOfc::FieldC
@ FieldC
Definition: TileCalibDrawerOfc.h:45
TileOFC2DBAlg::m_modules
std::vector< std::string > m_modules
Definition: TileOFC2DBAlg.h:74
TileOFC2DBAlg::m_maxChan
UnsignedIntegerProperty m_maxChan
Definition: TileOFC2DBAlg.h:57
TileCalibBlobPython_writeOfc.drawerOfc
drawerOfc
Definition: TileCalibBlobPython_writeOfc.py:87
TileCalibUtils::getCommentChannel
static unsigned int getCommentChannel()
Returns the COOL channel number for the comment channel.
Definition: TileCalibUtils.h:82
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
IOVTime::MINEVENT
static constexpr uint32_t MINEVENT
Definition: IOVTime.h:50
TileCalibDrawerOfc::FieldB
@ FieldB
Definition: TileCalibDrawerOfc.h:45
TileOFC2DBAlg::m_phaseStep
double m_phaseStep
Definition: TileOFC2DBAlg.h:73
TileCalibDrawerOfc
Definition: TileCalibDrawerOfc.h:40
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
a
TList * a
Definition: liststreamerinfos.cxx:10
TileCalibDrawerOfc::getInstance
static TileCalibDrawerOfc * getInstance(coral::Blob &blob, uint16_t objVersion, uint32_t nSamples, int32_t nPhases, uint16_t nChans, uint16_t nGains, const std::string &author="", const std::string &comment="", uint64_t timeStamp=0)
Returns a pointer to a non-const TileCalibDrawerOfc.
Definition: TileCalibDrawerOfc.cxx:14
SCT_ConditionsAlgorithms::CoveritySafe::getenv
std::string getenv(const std::string &variableName)
get an environment variable
Definition: SCT_ConditionsUtilities.cxx:17
h
TileOFC2DBAlg::m_tileToolTiming
ToolHandle< TileCondToolTiming > m_tileToolTiming
Definition: TileOFC2DBAlg.h:64
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
CondAttrListCollection::const_iterator
ChanAttrListMap::const_iterator const_iterator
Definition: CondAttrListCollection.h:63
TileCalibDrawerCmt::getInstance
static const TileCalibDrawerCmt * getInstance(const coral::Blob &blob)
Returns a pointer to a const TileCalibDrawerCmt.
Definition: TileCalibDrawerCmt.cxx:24
DEBUG
#define DEBUG
Definition: page_access.h:11
TileCalibDrawerOfc::FieldDG
@ FieldDG
Definition: TileCalibDrawerOfc.h:45
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
TileCalibDrawerOfc::FieldA
@ FieldA
Definition: TileCalibDrawerOfc.h:45
CaloCondBlobAlgs_fillNoiseFromASCII.folder
folder
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:56
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
TileOFC2DBAlg::m_folders
std::set< std::string > m_folders
Definition: TileOFC2DBAlg.h:70
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
TileCalibDrawerCmt
Class to store comments in BLOB without any data.
Definition: TileCalibDrawerCmt.h:20
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
TileOfcWeightsStruct::w_a
float w_a[99]
Definition: ITileCondToolOfc.h:14
TileCalibUtils::getDrawerIdx
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
Definition: TileCalibUtils.cxx:60
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
TileCalibUtils::MAX_CHAN
static const unsigned int MAX_CHAN
Number of channels in drawer.
Definition: TileCalibUtils.h:141
CondAttrListCollection::add
bool add(ChanNum chanNum, const AttributeList &attributeList)
Adding in chan/attrList pairs.
Definition: CondAttrListCollection.h:452
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TileCalibDrawerOfc::FieldG
@ FieldG
Definition: TileCalibDrawerOfc.h:45
CaloCondBlobAlgs_fillNoiseFromASCII.blob
blob
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:96
TileOFC2DBAlg::m_regSvc
IIOVRegistrationSvc * m_regSvc
Definition: TileOFC2DBAlg.h:63
TileOfcWeightsStruct::w_b
float w_b[99]
Definition: ITileCondToolOfc.h:14
fitman.k
k
Definition: fitman.py:528
TileOFC2DBAlg::m_nFixedPhases
int m_nFixedPhases
Definition: TileOFC2DBAlg.h:72
ServiceHandle< ICondSvc >
TileCalibUtils::MAX_GAIN
static const unsigned int MAX_GAIN
Number of gains per channel
Definition: TileCalibUtils.h:142