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

#include <TGCTriggerDbTool.h>

Inheritance diagram for TGCTriggerDbTool:
Collaboration diagram for TGCTriggerDbTool:

Public Types

enum  { CW_BW = 0, CW_EIFI = 1, CW_TILE = 2, CW_NUM = 3 }
 
typedef std::list< SG::TransientAddress * > tadList
 
typedef tadList::iterator tadListIterator
 

Public Member Functions

 TGCTriggerDbTool (const std::string &type, const std::string &name, const IInterface *parent)
 Constructor. More...
 
virtual StatusCode updateAddress (StoreID::type storeID, SG::TransientAddress *tad, const EventContext &ctx)
 Required by the IAddressProvider interface. More...
 
virtual StatusCode initialize ()
 Initilize. More...
 
virtual StatusCode finalize ()
 Finalize. More...
 
virtual std::string getFolderName (int cwtype) const
 Get the folder name. More...
 
virtual std::string getData (int cwtype, std::string file) const
 
virtual std::string getData (int cwtype, int channel) const
 
virtual std::string getFile (int cwtype, int channel) const
 
virtual std::string getVersion (int cwtype, int channel=0) const
 
virtual std::string getType (int cwtype, int channel=0) const
 
virtual bool isActive (int cwtype, int channel=0) const
 
virtual StatusCode loadParameters (IOVSVC_CALLBACK_ARGS)
 Load parameters using IOV keys. 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 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
 
 DeclareInterfaceID (IAddressProvider, 1, 0)
 
virtual StatusCode preLoadAddresses (StoreID::type, tadList &)
 get all addresses from Provider : Called before Begin Event More...
 
virtual StatusCode loadAddresses (StoreID::type, tadList &)
 get all new addresses from Provider for this Event. More...
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

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

std::string m_DataLocation
 Data location. More...
 
std::string m_bwFolder
 Folder name. More...
 
std::string m_eifiFolder
 
std::string m_tileFolder
 
std::string m_folders [CW_NUM]
 
std::map< std::string, std::string > m_datamap [CW_NUM]
 
std::vector< std::string > m_data [CW_NUM]
 
std::vector< std::string > m_file [CW_NUM]
 
std::vector< std::string > m_version [CW_NUM]
 
std::vector< std::string > m_type [CW_NUM]
 
std::vector< bool > m_active [CW_NUM]
 
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 16 of file TGCTriggerDbTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

◆ tadList

typedef std::list<SG::TransientAddress*> IAddressProvider::tadList
inherited

Definition at line 32 of file IAddressProvider.h.

◆ tadListIterator

typedef tadList::iterator IAddressProvider::tadListIterator
inherited

Definition at line 33 of file IAddressProvider.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
CW_BW 
CW_EIFI 
CW_TILE 
CW_NUM 

Definition at line 22 of file ITGCTriggerDbTool.h.

22 { CW_BW = 0, CW_EIFI = 1, CW_TILE = 2, CW_NUM = 3 };

Constructor & Destructor Documentation

◆ TGCTriggerDbTool()

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

Constructor.

Definition at line 9 of file TGCTriggerDbTool.cxx.

13  m_DataLocation ("keyTGC")
14 {
15  declareInterface<ITGCTriggerDbTool>(this);
16 
17  declareProperty("BwFolder", m_bwFolder="/TGC/TRIGGER/CW_BW");
18  declareProperty("EifiFolder", m_eifiFolder="/TGC/TRIGGER/CW_EIFI");
19  declareProperty("TileFolder", m_tileFolder="/TGC/TRIGGER/CW_TILE");
20 }

Member Function Documentation

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

◆ DeclareInterfaceID()

IAddressProvider::DeclareInterfaceID ( IAddressProvider  ,
,
 
)
inherited

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

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

◆ 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

◆ finalize()

StatusCode TGCTriggerDbTool::finalize ( )
virtual

Finalize.

Definition at line 59 of file TGCTriggerDbTool.cxx.

59  {
60  ATH_MSG_INFO("finalize");
61 
62  return StatusCode::SUCCESS;
63 }

◆ getData() [1/2]

std::string TGCTriggerDbTool::getData ( int  cwtype,
int  channel 
) const
virtual

Implements ITGCTriggerDbTool.

Definition at line 82 of file TGCTriggerDbTool.cxx.

82  {
83  return m_data[cwtype][channel];
84 }

◆ getData() [2/2]

std::string TGCTriggerDbTool::getData ( int  cwtype,
std::string  file 
) const
virtual

Implements ITGCTriggerDbTool.

Definition at line 71 of file TGCTriggerDbTool.cxx.

71  {
72  auto itr = m_datamap[cwtype].find(file);
73  if (itr == m_datamap[cwtype].end()) {
74  ATH_MSG_WARNING("File " << file << " is not found in m_datamap");
75  return "";
76  }
77 
78  return itr->second;
79 }

◆ getFile()

std::string TGCTriggerDbTool::getFile ( int  cwtype,
int  channel 
) const
virtual

Implements ITGCTriggerDbTool.

Definition at line 87 of file TGCTriggerDbTool.cxx.

87  {
88  return m_file[cwtype][channel];
89 }

◆ getFolderName()

std::string TGCTriggerDbTool::getFolderName ( int  cwtype) const
virtual

Get the folder name.

Implements ITGCTriggerDbTool.

Definition at line 66 of file TGCTriggerDbTool.cxx.

66  {
67  return m_folders[cwtype];
68 }

◆ getType()

std::string TGCTriggerDbTool::getType ( int  cwtype,
int  channel = 0 
) const
virtual

Implements ITGCTriggerDbTool.

Definition at line 95 of file TGCTriggerDbTool.cxx.

95  {
96  return m_type[cwtype][channel];
97 }

◆ getVersion()

std::string TGCTriggerDbTool::getVersion ( int  cwtype,
int  channel = 0 
) const
virtual

Implements ITGCTriggerDbTool.

Definition at line 91 of file TGCTriggerDbTool.cxx.

91  {
92  return m_version[cwtype][channel];
93 }

◆ initialize()

StatusCode TGCTriggerDbTool::initialize ( )
virtual

Initilize.

Definition at line 40 of file TGCTriggerDbTool.cxx.

40  {
41  ATH_MSG_INFO("initialize");
42 
46 
47  for (int ii = 0; ii < CW_NUM; ++ii) {
48 
49  if ( !detStore()->contains<CondAttrListCollection>(m_folders[ii])) {
50  ATH_MSG_FATAL("Could not found " << m_folders[ii] << " in DetectorStore.");
51  return StatusCode::FAILURE;
52  }
53  }
54 
55  return StatusCode::SUCCESS;
56 }

◆ 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()

static const InterfaceID& ITGCTriggerDbTool::interfaceID ( )
inlinestaticinherited

Definition at line 33 of file ITGCTriggerDbTool.h.

33 { return IID_ITGCTriggerDbTool; };

◆ isActive()

bool TGCTriggerDbTool::isActive ( int  cwtype,
int  channel = 0 
) const
virtual

Implements ITGCTriggerDbTool.

Definition at line 100 of file TGCTriggerDbTool.cxx.

100  {
101  return m_active[cwtype][channel];
102 }

◆ loadAddresses()

virtual StatusCode IAddressProvider::loadAddresses ( StoreID::type  ,
tadList  
)
inlinevirtualinherited

get all new addresses from Provider for this Event.

Reimplemented in LArFlatConditionSvc, Athena::xAODEventSelector, IOVDbSvc, MixingEventSelector, AddressRemappingSvc, AthenaPoolAddressProviderSvc, and CondProxyProvider.

Definition at line 42 of file IAddressProvider.h.

43  {
44  return StatusCode::SUCCESS;
45  }

◆ loadParameters()

StatusCode TGCTriggerDbTool::loadParameters ( IOVSVC_CALLBACK_ARGS  )
virtual

Load parameters using IOV keys.

Implements ITGCTriggerDbTool.

Definition at line 105 of file TGCTriggerDbTool.cxx.

105  {
106  ATH_MSG_INFO("loadParameters from DB");
107 
108  for (int ii = 0; ii < CW_NUM; ++ii) {
109 
110  m_datamap[ii].clear();
111  m_data[ii].clear();
112  m_file[ii].clear();
113  m_type[ii].clear();
114  m_active[ii].clear();
115 
116  bool found = false;
117  for(const std::string& key: keys) {
118  ATH_MSG_INFO("loadParameters " << key << " I=" << I << " ");
119  if (key == m_folders[ii]) {
120  found = true;
121  break;
122  }
123  }
124  if (!found) continue;
125 
127  StatusCode sc = detStore()->retrieve(calc, m_folders[ii]);
128  if(sc.isFailure()) {
129  ATH_MSG_FATAL("could not retreive the CondAttrListCollection from DB folder " << m_folders[ii]);
130  return sc;
131 
132  } else {
133  ATH_MSG_INFO("CondAttrListCollection from DB folder have been obtained with size " << calc->size());
134  }
135 
138 
139  for(; itr!=itr_e; ++itr) {
140  const unsigned int channel = (*itr).first;
141  const coral::AttributeList& atr = (*itr).second;
142 
143  ATH_MSG_DEBUG("channel: " << channel);
144 
145  std::string file = atr["file"].data<cool::String255>();
146  std::string data = atr["data"].data<cool::String16M>();
147  std::string version = atr["version"].data<cool::String255>();
148  std::string type = atr["type"].data<cool::String255>();
149  bool active = atr["active"].data<cool::Bool>();
150 
151  m_datamap[ii][file] = data;
152  m_data[ii].push_back(data);
153  m_file[ii].push_back(file);
154  m_version[ii].push_back(version);
155  m_type[ii].push_back(type);
156  m_active[ii].push_back(active);
157 
158  ATH_MSG_INFO("active: " << active << " file: " << file);
159  ATH_MSG_DEBUG("data: " << data);
160  }
161  }
162 
163  return StatusCode::SUCCESS;
164 }

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

◆ preLoadAddresses()

virtual StatusCode IAddressProvider::preLoadAddresses ( StoreID::type  ,
tadList  
)
inlinevirtualinherited

get all addresses from Provider : Called before Begin Event

Reimplemented in LArFlatConditionSvc, Athena::xAODEventSelector, IOVDbSvc, MixingEventSelector, AddressRemappingSvc, CondProxyProvider, AthenaPoolAddressProviderSvc, ByteStreamAddressProviderSvc, and MuonCalibStreamAddressProviderSvc.

Definition at line 36 of file IAddressProvider.h.

37  {
38  return StatusCode::SUCCESS;
39  }

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

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

◆ updateAddress()

StatusCode TGCTriggerDbTool::updateAddress ( StoreID::type  storeID,
SG::TransientAddress tad,
const EventContext &  ctx 
)
virtual

Required by the IAddressProvider interface.

Implements IAddressProvider.

Definition at line 24 of file TGCTriggerDbTool.cxx.

26  {
27  CLID clid = tad->clID();
28  const std::string& key = tad->name();
29  // Need to add the CLID comparison
30  if(/* ==clid && */m_DataLocation==key) {
31  ATH_MSG_DEBUG("updateAddress OK, clid = " << clid << " key = " << key);
32  return StatusCode::SUCCESS;
33  }
34 
35  ATH_MSG_FATAL("updateAddress failed, clid = " << clid << " key = " << key);
36  return StatusCode::FAILURE;
37 }

◆ 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

◆ m_active

std::vector<bool> TGCTriggerDbTool::m_active[CW_NUM]
private

Definition at line 64 of file TGCTriggerDbTool.h.

◆ m_bwFolder

std::string TGCTriggerDbTool::m_bwFolder
private

Folder name.

Definition at line 53 of file TGCTriggerDbTool.h.

◆ m_data

std::vector<std::string> TGCTriggerDbTool::m_data[CW_NUM]
private

Definition at line 60 of file TGCTriggerDbTool.h.

◆ m_DataLocation

std::string TGCTriggerDbTool::m_DataLocation
private

Data location.

Definition at line 51 of file TGCTriggerDbTool.h.

◆ m_datamap

std::map<std::string, std::string> TGCTriggerDbTool::m_datamap[CW_NUM]
private

Definition at line 59 of file TGCTriggerDbTool.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_eifiFolder

std::string TGCTriggerDbTool::m_eifiFolder
private

Definition at line 54 of file TGCTriggerDbTool.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

std::vector<std::string> TGCTriggerDbTool::m_file[CW_NUM]
private

Definition at line 61 of file TGCTriggerDbTool.h.

◆ m_folders

std::string TGCTriggerDbTool::m_folders[CW_NUM]
private

Definition at line 57 of file TGCTriggerDbTool.h.

◆ m_tileFolder

std::string TGCTriggerDbTool::m_tileFolder
private

Definition at line 55 of file TGCTriggerDbTool.h.

◆ m_type

std::vector<std::string> TGCTriggerDbTool::m_type[CW_NUM]
private

Definition at line 63 of file TGCTriggerDbTool.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_version

std::vector<std::string> TGCTriggerDbTool::m_version[CW_NUM]
private

Definition at line 62 of file TGCTriggerDbTool.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
TGCTriggerDbTool::m_tileFolder
std::string m_tileFolder
Definition: TGCTriggerDbTool.h:55
TGCTriggerDbTool::m_data
std::vector< std::string > m_data[CW_NUM]
Definition: TGCTriggerDbTool.h:60
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
TGCTriggerDbTool::m_active
std::vector< bool > m_active[CW_NUM]
Definition: TGCTriggerDbTool.h:64
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
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
TGCTriggerDbTool::m_type
std::vector< std::string > m_type[CW_NUM]
Definition: TGCTriggerDbTool.h:63
TGCTriggerDbTool::m_file
std::vector< std::string > m_file[CW_NUM]
Definition: TGCTriggerDbTool.h:61
ITGCTriggerDbTool::CW_BW
@ CW_BW
Definition: ITGCTriggerDbTool.h:22
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
ITGCTriggerDbTool::CW_TILE
@ CW_TILE
Definition: ITGCTriggerDbTool.h:22
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
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
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
SG::TransientAddress::name
const std::string & name() const
Get the primary (hashed) SG key.
Definition: TransientAddress.h:208
TGCTriggerDbTool::m_folders
std::string m_folders[CW_NUM]
Definition: TGCTriggerDbTool.h:57
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
Trk::active
@ active
Definition: Layer.h:48
TGCTriggerDbTool::m_version
std::vector< std::string > m_version[CW_NUM]
Definition: TGCTriggerDbTool.h:62
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
SG::TransientAddress::clID
CLID clID() const
Retrieve string key:
Definition: TransientAddress.h:201
ITGCTriggerDbTool::CW_NUM
@ CW_NUM
Definition: ITGCTriggerDbTool.h:22
ITGCTriggerDbTool::CW_EIFI
@ CW_EIFI
Definition: ITGCTriggerDbTool.h:22
file
TFile * file
Definition: tile_monitor.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TGCTriggerDbTool::m_bwFolder
std::string m_bwFolder
Folder name.
Definition: TGCTriggerDbTool.h:53
TGCTriggerDbTool::m_eifiFolder
std::string m_eifiFolder
Definition: TGCTriggerDbTool.h:54
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
get_generator_info.version
version
Definition: get_generator_info.py:33
a
TList * a
Definition: liststreamerinfos.cxx:10
h
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
CondAttrListCollection::const_iterator
ChanAttrListMap::const_iterator const_iterator
Definition: CondAttrListCollection.h:63
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
I
#define I(x, y, z)
Definition: MD5.cxx:116
TGCTriggerDbTool::m_datamap
std::map< std::string, std::string > m_datamap[CW_NUM]
Definition: TGCTriggerDbTool.h:59
beamspotnt.calc
calc
Definition: bin/beamspotnt.py:1252
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TGCTriggerDbTool::m_DataLocation
std::string m_DataLocation
Data location.
Definition: TGCTriggerDbTool.h:51
fitman.k
k
Definition: fitman.py:528
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37