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

#include <TBCondRunParTool.h>

Inheritance diagram for TBCondRunParTool:
Collaboration diagram for TBCondRunParTool:

Public Member Functions

 TBCondRunParTool (const std::string &type, const std::string &name, const IInterface *parent)
 
 ~TBCondRunParTool ()
 
StatusCode initialize ()
 
StatusCode finalize ()
 
int status ()
 
int run_number ()
 
int trigger_type ()
 
int det_mask ()
 
int beam_type ()
 
int beam_energy ()
 
std::string & file_tag ()
 
std::string & time_SOR ()
 
StatusCode getTable (const std::string &table, const int irow, const void *tblptr, int &ncol, int &nrow, std::vector< std::string > &names, std::vector< std::string > &rows) const
 
StatusCode extractVal (const std::vector< std::string > &names, const std::vector< std::string > &rows, const std::string &name, int &ival) const
 
StatusCode extractVal (const std::vector< std::string > &names, const std::vector< std::string > &rows, const std::string &name, float &fval) const
 
StatusCode extractVal (const std::vector< std::string > &names, const std::vector< std::string > &rows, const std::string &name, std::string &sval) const
 
void printTable (const std::vector< std::string > &names, const std::vector< std::string > &rows) const
 
StatusCode getVal (const std::string &folder, const unsigned int chnum, float &fval)
 
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 sysInitialize () override
 Perform system initialization for an algorithm. 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
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Public Attributes

 IOVDbSvc
 
 ToolSvc
 
 RunParamFolder
 

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

bool checkcache ()
 
bool extractCool (const int run)
 
bool extractCoolTest (const std::string &folder, int run) const
 
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

int m_crun
 
int m_cevent
 
std::string m_runpfolder
 
int m_status
 
int m_run_number
 
int m_trigger_type
 
int m_det_mask
 
int m_beam_type
 
int m_beam_energy
 
std::string m_file_tag
 
std::string m_time_SOR
 
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 19 of file TBCondRunParTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TBCondRunParTool()

TBCondRunParTool::TBCondRunParTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 17 of file TBCondRunParTool.cxx.

20  m_crun(-1),m_cevent(-1),m_runpfolder("")
21 {
22  declareInterface<TBCondRunParTool>(this);
23  declareProperty("RunParamFolder",m_runpfolder);
24 }

◆ ~TBCondRunParTool()

TBCondRunParTool::~TBCondRunParTool ( )

Definition at line 26 of file TBCondRunParTool.cxx.

27 {}

Member Function Documentation

◆ beam_energy()

int TBCondRunParTool::beam_energy ( )
inline

Definition at line 86 of file TBCondRunParTool.h.

87  { checkcache(); return m_beam_energy;}

◆ beam_type()

int TBCondRunParTool::beam_type ( )
inline

Definition at line 84 of file TBCondRunParTool.h.

85  { checkcache(); return m_beam_type;}

◆ checkcache()

bool TBCondRunParTool::checkcache ( )
private

Definition at line 47 of file TBCondRunParTool.cxx.

47  {
48  // find the current run and event - check if data structure may have changed
49  const EventContext& ctx = Gaudi::Hive::currentContext();
50  int run = ctx.eventID().run_number();
51  int event = ctx.eventID().event_number();
52  bool update=false;
53  if (run!=m_crun || event!=m_cevent) {
54  ATH_MSG_DEBUG ( "Retrieve new data for run/event " << run << "/" << event );
55  m_crun=run;
57  // access the database and update cached values
58  update=true;
59  m_run_number=-1;
60  m_trigger_type=-1;
61  m_det_mask=-1;
62  m_beam_type=-1;
63  m_beam_energy=-1;
64  m_file_tag="";
65 
67  }
68  return update;
69 }

◆ declareGaudiProperty() [1/4]

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ det_mask()

int TBCondRunParTool::det_mask ( )
inline

Definition at line 82 of file TBCondRunParTool.h.

83  { checkcache(); return m_det_mask;}

◆ detStore()

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

◆ extractCool()

bool TBCondRunParTool::extractCool ( const int  run)
private

Definition at line 165 of file TBCondRunParTool.cxx.

165  {
166  bool update=true;
167  const AthenaAttributeList* atrlist=0;
168  std::string table=m_runpfolder+"/RunParams.RunParams";
169  if (StatusCode::SUCCESS==detStore()->retrieve(atrlist,table)) {
170  // std::ostringstream atrs;
171  // atrlist->print(atrs);
172  // m_log << "Attribute list contents: " << atrs.str() << endmsg;
173  long ldata;
174  m_run_number=(*atrlist)["run_number"].data<int>();
175  m_trigger_type=(*atrlist)["trigger_type"].data<int>();
176  m_det_mask=(*atrlist)["detector_mask"].data<int>();
177  m_beam_type=(*atrlist)["beam_type"].data<int>();
178  m_beam_energy=(*atrlist)["beam_energy"].data<int>();
179  m_file_tag=(*atrlist)["filename_tag"].data<std::string>();
180  // FIXME should be long
181  ldata=(*atrlist)["timeSOR"].data<int>();
182  std::ostringstream timeSOR;
183  timeSOR << ldata;
184  m_time_SOR=timeSOR.str();
185  ATH_MSG_DEBUG ("run_number: "<<m_run_number<<" m_beam_energy: "<<m_beam_energy);
186  // check consistency
187  m_status=0;
188  if (m_run_number!=run) m_status=1;
189  } else {
190  ATH_MSG_ERROR ( "Cannot retrieve AttributeList for " << table );
191  m_status=1;
192  }
193  return update;
194 }

◆ extractCoolTest()

bool TBCondRunParTool::extractCoolTest ( const std::string &  folder,
int  run 
) const
private

Definition at line 196 of file TBCondRunParTool.cxx.

196  {
197  bool update=true;
198  const CondAttrListCollection* atrlist=0;
199  if (StatusCode::SUCCESS==detStore()->retrieve(atrlist,folder)) {
200 // std::ostringstream atrs;
201  ATH_MSG_DEBUG ( "Attribute list contents: " );
202  atrlist->dump();
203  }
204  return update;
205 }

◆ extractVal() [1/3]

StatusCode TBCondRunParTool::extractVal ( const std::vector< std::string > &  names,
const std::vector< std::string > &  rows,
const std::string &  name,
float &  fval 
) const

Definition at line 105 of file TBCondRunParTool.cxx.

108  {
109  StatusCode found=StatusCode::FAILURE;
110  for (unsigned int icol=0;icol<names.size();++icol) {
111  ATH_MSG_DEBUG ( "Check " << icol << " " << names[icol] << rows[icol] );
112  if (names[icol]==name) {
113  fval=atof(rows[icol].c_str());
114  found=StatusCode::SUCCESS;
115  break;
116  }
117  }
118  return found;
119 }

◆ extractVal() [2/3]

StatusCode TBCondRunParTool::extractVal ( const std::vector< std::string > &  names,
const std::vector< std::string > &  rows,
const std::string &  name,
int &  ival 
) const

Definition at line 89 of file TBCondRunParTool.cxx.

92  {
93  StatusCode found=StatusCode::FAILURE;
94  for (unsigned int icol=0;icol<names.size();++icol) {
95  ATH_MSG_DEBUG ( "Check " << icol << " " << names[icol] << rows[icol] );
96  if (names[icol]==name) {
97  ival=atoi(rows[icol].c_str());
98  found=StatusCode::SUCCESS;
99  break;
100  }
101  }
102  return found;
103 }

◆ extractVal() [3/3]

StatusCode TBCondRunParTool::extractVal ( const std::vector< std::string > &  names,
const std::vector< std::string > &  rows,
const std::string &  name,
std::string &  sval 
) const

Definition at line 121 of file TBCondRunParTool.cxx.

124  {
125  StatusCode found=StatusCode::FAILURE;
126  for (unsigned int icol=0;icol<names.size();++icol) {
127  ATH_MSG_DEBUG ( "Check " << icol << " " << names[icol] << rows[icol] );
128  if (names[icol]==name) {
129  sval=rows[icol];
130  found=StatusCode::SUCCESS;
131  break;
132  }
133  }
134  return found;
135 }

◆ extraDeps_update_handler()

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

◆ file_tag()

std::string & TBCondRunParTool::file_tag ( )
inline

Definition at line 88 of file TBCondRunParTool.h.

89  { checkcache(); return m_file_tag; }

◆ finalize()

StatusCode TBCondRunParTool::finalize ( )

Definition at line 42 of file TBCondRunParTool.cxx.

42  {
43  ATH_MSG_DEBUG ( "Finalize called" );
44  return StatusCode::SUCCESS;
45 }

◆ getTable()

StatusCode TBCondRunParTool::getTable ( const std::string &  table,
const int  irow,
const void *  tblptr,
int &  ncol,
int &  nrow,
std::vector< std::string > &  names,
std::vector< std::string > &  rows 
) const

Definition at line 71 of file TBCondRunParTool.cxx.

74  {
75  // this implementation is dummy - at present it does not return anything
76  //tblptr=0;
77  ncol=0;
78  nrow=0;
79  names.clear();
80  rows.clear();
81  ATH_MSG_DEBUG ( "getTable: " << table );
82  bool iret = extractCoolTest(std::string("/TILE/DCS/TILE_LV_62/BEAM"), 0);
83  // get number of columns and rows
84  if(!iret)
85  ATH_MSG_DEBUG ( "extractCoolTest: /TILE/DCS/TILE_LV_62/BEAM failed !" );
86  return StatusCode::SUCCESS;
87 }

◆ getVal()

StatusCode TBCondRunParTool::getVal ( const std::string &  folder,
const unsigned int  chnum,
float &  fval 
)

Definition at line 143 of file TBCondRunParTool.cxx.

143  {
144  StatusCode found=StatusCode::FAILURE;
145  const CondAttrListCollection* atrlist=0;
146  if (StatusCode::SUCCESS==detStore()->retrieve(atrlist,folder)) {
149  for (; it != last; ++it) {
150  if(chnum == (*it).first) {
151 // std::cout << "chan, attr: " << (*it).first << " / "<<(*it).second.toOutputStream(std::cout)<< std::endl;
152  fval = (*it).second[0].data<float>();
153  found = StatusCode::SUCCESS;
154  ATH_MSG_DEBUG ( "chnum: "<<chnum<<" chan, attr: " << (*it).first <<" fval: "<<fval);
155  break;
156  }
157  }
158  }
159 
160  return found;
161 }

◆ initialize()

StatusCode TBCondRunParTool::initialize ( )

Definition at line 32 of file TBCondRunParTool.cxx.

33 {
34  ATH_MSG_INFO ( "In initialize of TBCondRunParTool" );
35  ATH_MSG_INFO (
36  "RunParams will be read from folder: " << m_runpfolder <<
37  " in COOL database" );
38  // check StoreGate service available
39  return StatusCode::SUCCESS;
40 }

◆ inputHandles()

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

◆ interfaceID()

const InterfaceID & TBCondRunParTool::interfaceID ( )
static

Definition at line 29 of file TBCondRunParTool.cxx.

30 { return IID_TBCONDRUNPAR_TBCondRunParTool; }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::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< AlgTool >::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< AlgTool > >::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.

◆ printTable()

void TBCondRunParTool::printTable ( const std::vector< std::string > &  names,
const std::vector< std::string > &  rows 
) const

Definition at line 137 of file TBCondRunParTool.cxx.

138  {
139  for (unsigned int icol=0;icol<names.size();++icol)
140  ATH_MSG_INFO ( "Column: " << icol << " " << names[icol] << rows[icol] );
141 }

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

◆ run_number()

int TBCondRunParTool::run_number ( )
inline

Definition at line 78 of file TBCondRunParTool.h.

79  { checkcache(); return m_run_number;}

◆ status()

int TBCondRunParTool::status ( )
inline

Definition at line 76 of file TBCondRunParTool.h.

77  { checkcache(); return m_status;}

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

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

◆ time_SOR()

std::string & TBCondRunParTool::time_SOR ( )
inline

Definition at line 90 of file TBCondRunParTool.h.

91  { checkcache(); return m_time_SOR; }

◆ trigger_type()

int TBCondRunParTool::trigger_type ( )
inline

Definition at line 80 of file TBCondRunParTool.h.

81  { checkcache(); return m_trigger_type;}

◆ updateVHKA()

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

◆ IOVDbSvc

TBCondRunParTool.IOVDbSvc

Definition at line 4 of file TBCondRunParTool.py.

◆ m_beam_energy

int TBCondRunParTool::m_beam_energy
private

Definition at line 70 of file TBCondRunParTool.h.

◆ m_beam_type

int TBCondRunParTool::m_beam_type
private

Definition at line 69 of file TBCondRunParTool.h.

◆ m_cevent

int TBCondRunParTool::m_cevent
private

Definition at line 62 of file TBCondRunParTool.h.

◆ m_crun

int TBCondRunParTool::m_crun
private

Definition at line 61 of file TBCondRunParTool.h.

◆ m_det_mask

int TBCondRunParTool::m_det_mask
private

Definition at line 68 of file TBCondRunParTool.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_file_tag

std::string TBCondRunParTool::m_file_tag
private

Definition at line 71 of file TBCondRunParTool.h.

◆ m_run_number

int TBCondRunParTool::m_run_number
private

Definition at line 66 of file TBCondRunParTool.h.

◆ m_runpfolder

std::string TBCondRunParTool::m_runpfolder
private

Definition at line 63 of file TBCondRunParTool.h.

◆ m_status

int TBCondRunParTool::m_status
private

Definition at line 65 of file TBCondRunParTool.h.

◆ m_time_SOR

std::string TBCondRunParTool::m_time_SOR
private

Definition at line 72 of file TBCondRunParTool.h.

◆ m_trigger_type

int TBCondRunParTool::m_trigger_type
private

Definition at line 67 of file TBCondRunParTool.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ RunParamFolder

TBCondRunParTool.RunParamFolder

Definition at line 13 of file TBCondRunParTool.py.

◆ ToolSvc

TBCondRunParTool.ToolSvc

Definition at line 5 of file TBCondRunParTool.py.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
CondAttrListCollection::end
const_iterator end() const
Definition: CondAttrListCollection.h:315
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
TBCondRunParTool::m_beam_type
int m_beam_type
Definition: TBCondRunParTool.h:69
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
skel.it
it
Definition: skel.GENtoEVGEN.py:423
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
CondAttrListCollection::begin
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
Definition: CondAttrListCollection.h:309
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TBCondRunParTool::m_status
int m_status
Definition: TBCondRunParTool.h:65
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
atlasStyleMacro.icol
int icol
Definition: atlasStyleMacro.py:13
AthCommonDataStore< AthCommonMsg< AlgTool > >::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
TBCondRunParTool::checkcache
bool checkcache()
Definition: TBCondRunParTool.cxx:47
WriteCellNoiseToCool.ival
ival
Definition: WriteCellNoiseToCool.py:337
CondAttrListCollection::dump
void dump() const
Dump our contents to std::cout.
Definition: CondAttrListCollection.h:557
TBCondRunParTool::extractCool
bool extractCool(const int run)
Definition: TBCondRunParTool.cxx:165
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TBCondRunParTool::m_file_tag
std::string m_file_tag
Definition: TBCondRunParTool.h:71
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
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
python.subdetectors.mmg.names
names
Definition: mmg.py:8
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TBCondRunParTool::m_crun
int m_crun
Definition: TBCondRunParTool.h:61
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
run
Definition: run.py:1
beamspotnt.rows
list rows
Definition: bin/beamspotnt.py:1112
TBCondRunParTool::m_beam_energy
int m_beam_energy
Definition: TBCondRunParTool.h:70
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
CxxUtils::atof
double atof(std::string_view str)
Converts a string into a double / float.
Definition: Control/CxxUtils/Root/StringUtils.cxx:91
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
TBCondRunParTool::m_runpfolder
std::string m_runpfolder
Definition: TBCondRunParTool.h:63
TBCondRunParTool::m_run_number
int m_run_number
Definition: TBCondRunParTool.h:66
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
python.ext.table_printer.table
list table
Definition: table_printer.py:81
TBCondRunParTool::m_cevent
int m_cevent
Definition: TBCondRunParTool.h:62
dqt_zlumi_pandas.update
update
Definition: dqt_zlumi_pandas.py:42
a
TList * a
Definition: liststreamerinfos.cxx:10
h
TBCondRunParTool::m_time_SOR
std::string m_time_SOR
Definition: TBCondRunParTool.h:72
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
CondAttrListCollection::const_iterator
ChanAttrListMap::const_iterator const_iterator
Definition: CondAttrListCollection.h:63
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TBCondRunParTool::m_det_mask
int m_det_mask
Definition: TBCondRunParTool.h:68
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
CaloCondBlobAlgs_fillNoiseFromASCII.folder
folder
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:56
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
CxxUtils::atoi
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
Definition: Control/CxxUtils/Root/StringUtils.cxx:85
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
TBCondRunParTool::m_trigger_type
int m_trigger_type
Definition: TBCondRunParTool.h:67
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TBCondRunParTool::extractCoolTest
bool extractCoolTest(const std::string &folder, int run) const
Definition: TBCondRunParTool.cxx:196
fitman.k
k
Definition: fitman.py:528