ATLAS Offline Software
|
#include <ReadCondHandleKey.h>
Public Types | |
using | PropertyType = SG::VarHandleKeyProperty |
Declare corresponding property type. More... | |
Public Member Functions | |
ReadCondHandleKey (const std::string &key, const std::string &dbKey="") | |
template<class OWNER , typename = typename std::enable_if<std::is_base_of<IProperty, OWNER>::value>::type> | |
ReadCondHandleKey (OWNER *owner, std::string name, const std::string &key={}, std::string doc="") | |
auto-declaring Property Constructor. More... | |
StatusCode | initialize (bool used=true) |
StatusCode | initialize (AllowEmptyEnum) |
const std::string & | dbKey () const |
void | setDbKey (const std::string &dbKey) |
virtual StatusCode | start () override |
Called by the owning algorithm during the START transition. More... | |
virtual StatusCode | assign (const std::string &sgkey) |
Change the key of the object to which we're referring. More... | |
CLID | clid () const |
Return the class ID for the referenced object. More... | |
const std::string & | key () const |
Return the StoreGate ID for the referenced object. More... | |
bool | empty () const |
Test if the key is blank. More... | |
const ServiceHandle< IProxyDict > & | storeHandle () const |
Return handle to the referenced store. More... | |
VarHandleBase * | owningHandle () |
Return the VarHandle that owns this key, if any. More... | |
bool | isEventStore () const |
Does this key reference the primary event store? More... | |
SG::sgkey_t | hashedKey () const |
Return the hashed StoreGate key. More... | |
Protected Member Functions | |
bool | isInit () const |
CondCont< T > *getCC | ATLAS_NOT_CONST_THREAD_SAFE () const |
StoreGateSvc * | getCS () const |
virtual std::string | pythonRepr () const override |
Python representation of Handle. More... | |
Private Member Functions | |
void | setOwningHandle (VarHandleBase *handle) |
virtual void | setKey (DataObjID key) override final |
Don't allow calling these. More... | |
virtual void | updateKey (std::string key) override final |
Prevent this method from being called. More... | |
void | parseKey (const std::string &sgkey, const std::string &storeName) |
Handle assignment/construction from a string key. More... | |
void | updateHandle (const std::string &name) |
Update the name of the store to which we're referring. More... | |
Private Attributes | |
ServiceHandle< StoreGateSvc > | m_cs |
CondCont< T > * | m_cc {0} |
std::string | m_dbKey {""} |
bool | m_isInit {false} |
ServiceHandle< IProxyDict > | m_storeHandle |
Handle to the referenced store. More... | |
std::string | m_sgKey |
StoreGate key, that doesn't include the storename. More... | |
SG::sgkey_t | m_hashedKey = 0 |
The hashed StoreGate key. May be 0 if not yet initialized. More... | |
bool | m_isEventStore = false |
Cache test for whether we're referencing the event store. More... | |
VarHandleBase * | m_owningHandle = nullptr |
Handle that owns this key, or nullptr if it is not owned. More... | |
Friends | |
class | ReadCondHandle< T > |
Definition at line 18 of file ReadCondHandleKey.h.
|
inherited |
Declare corresponding property type.
Definition at line 91 of file StoreGate/StoreGate/VarHandleKey.h.
|
inline |
Definition at line 25 of file ReadCondHandleKey.h.
|
inline |
auto-declaring Property Constructor.
name | name of the Property |
key | The StoreGate key for the object |
doc | documentation string |
will associate the named Property with this RHK via declareProperty
The provided key may actually start with the name of the store, separated by a "+": "MyStore+Obj". If no "+" is present the store named by storeName
is used.
Definition at line 44 of file ReadCondHandleKey.h.
|
virtualinherited |
Change the key of the object to which we're referring.
sgkey | The StoreGate key for the object. |
The provided key may actually start with the name of the store, separated by a "+": "MyStore+Obj". If no "+" is present the store is not changed. A key name that starts with a slash is interpreted as a hierarchical key name, not an empty store name.
Returns failure the key string format is bad.
Reimplemented in SG::WriteDecorHandleKey< T >, SG::WriteDecorHandleKey< xAOD::ElectronContainer >, SG::WriteDecorHandleKey< DMTest::CVecWithData_v1 >, SG::WriteDecorHandleKey< DMTest::JVec_v1 >, SG::WriteDecorHandleKey< DataVector >, SG::WriteDecorHandleKey< xAOD::EventInfo >, SG::WriteDecorHandleKey< C >, SG::WriteDecorHandleKey< DMTest::PLinks_v1 >, SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >, SG::WriteDecorHandleKey< NEW >, SG::WriteDecorHandleKey< xAOD::EventInfo_v1 >, SG::WriteDecorHandleKey< CONTAINER >, SG::WriteDecorHandleKey< MyDataObj >, SG::WriteDecorHandleKey< T_RoIContainer >, SG::WriteDecorHandleKey< DMTest::C_v1 >, SG::WriteDecorHandleKey< container_t >, SG::WriteDecorHandleKey< SG::AuxElement >, SG::ReadDecorHandleKey< T >, SG::ReadDecorHandleKey< DMTest::JVec_v1 >, SG::ReadDecorHandleKey< DataVector >, SG::ReadDecorHandleKey< CONSTITUENTS >, SG::ReadDecorHandleKey< C >, SG::ReadDecorHandleKey< xAOD::TruthParticleContainer >, SG::ReadDecorHandleKey< DMTest::PLinks_v1 >, SG::ReadDecorHandleKey< xAOD::EventInfo_v1 >, SG::ReadDecorHandleKey< xAOD::FlowElement_v1 >, SG::ReadDecorHandleKey< CONTAINER >, SG::ReadDecorHandleKey< JetContainer >, SG::ReadDecorHandleKey< xAOD::PFO_v1 >, SG::ReadDecorHandleKey< MyDataObj >, SG::ReadDecorHandleKey< T_RoIContainer >, SG::ReadDecorHandleKey< DMTest::C_v1 >, SG::ReadDecorHandleKey< T_Cont >, SG::ReadDecorHandleKey< SG::AuxElement >, SG::ReadDecorHandleKey< OLD >, and SG::TypelessWriteHandleKey.
Definition at line 88 of file AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx.
|
inlineprotectedinherited |
Definition at line 52 of file CondHandleKey.h.
|
inherited |
Return the class ID for the referenced object.
Definition at line 177 of file StoreGate/src/VarHandleKey.cxx.
|
inlineinherited |
Definition at line 31 of file CondHandleKey.h.
|
inherited |
Test if the key is blank.
Definition at line 150 of file AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx.
|
protectedinherited |
|
inherited |
Return the hashed StoreGate key.
May be 0 if not yet initialized.
|
inherited |
|
inherited |
|
inherited |
Does this key reference the primary event store?
|
inlineprotectedinherited |
Definition at line 46 of file CondHandleKey.h.
|
inherited |
Return the StoreGate ID for the referenced object.
Definition at line 141 of file AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx.
|
inherited |
Return the VarHandle that owns this key, if any.
This should only be non-null for keys that are created automatically by a VarHandle when it is not created from a VarHandleKey. This should always be null for keys that are created explicitly.
|
privateinherited |
Handle assignment/construction from a string key.
sgkey | The StoreGate key for the referenced object. |
The provided key may actually start with the name of the store, separated by a "+": "MyStore+Obj". If no "+" is present, the store named by storeName
is used. A key name that starts with a slash is interpreted as a hierarchical key name, not an empty store name.
see implementation comments for further details
sgkey | The StoreGate key for the referenced object. |
The provided key may actually start with the name of the store, separated by a "+": "MyStore+Obj". If no "+" is present the store named by storeName
is used. A key name that starts with a slash is interpreted as a hierarchical key name, not an empty store name.
we also have to check that if the key contains the store name, it matches the store name that they Handle was constructed with
blank keys result in blank DataObjIDs
Definition at line 217 of file StoreGate/src/VarHandleKey.cxx.
|
overrideprotectedvirtualinherited |
Python representation of Handle.
Reimplemented in SG::WriteDecorHandleKey< T >, and SG::ReadDecorHandleKey< T >.
Definition at line 309 of file StoreGate/src/VarHandleKey.cxx.
|
inlineinherited |
Definition at line 32 of file CondHandleKey.h.
|
finaloverrideprivatevirtualinherited |
Don't allow calling these.
Prevent this method from being called.
Definition at line 186 of file StoreGate/src/VarHandleKey.cxx.
|
privateinherited |
|
overridevirtualinherited |
Called by the owning algorithm during the START transition.
AthAlgorithm and friends will call this during START. This allows for extra initialization that we can't do during initialize(), such as retrieving a conditions container from the store.
Reimplemented from SG::VarHandleKey.
|
inherited |
Return handle to the referenced store.
|
privateinherited |
Update the name of the store to which we're referring.
name | The new store name. |
Definition at line 294 of file StoreGate/src/VarHandleKey.cxx.
|
finaloverrideprivatevirtualinherited |
Prevent this method from being called.
Definition at line 195 of file StoreGate/src/VarHandleKey.cxx.
|
friend |
Definition at line 1 of file ReadCondHandleKey.h.
|
privateinherited |
Definition at line 59 of file CondHandleKey.h.
|
privateinherited |
Definition at line 58 of file CondHandleKey.h.
|
privateinherited |
Definition at line 61 of file CondHandleKey.h.
|
privateinherited |
The hashed StoreGate key. May be 0 if not yet initialized.
Definition at line 250 of file StoreGate/StoreGate/VarHandleKey.h.
|
privateinherited |
Cache test for whether we're referencing the event store.
Definition at line 253 of file StoreGate/StoreGate/VarHandleKey.h.
|
privateinherited |
Definition at line 63 of file CondHandleKey.h.
|
privateinherited |
Handle that owns this key, or nullptr if it is not owned.
Definition at line 256 of file StoreGate/StoreGate/VarHandleKey.h.
|
privateinherited |
StoreGate key, that doesn't include the storename.
Definition at line 247 of file StoreGate/StoreGate/VarHandleKey.h.
|
privateinherited |
Handle to the referenced store.
Definition at line 244 of file StoreGate/StoreGate/VarHandleKey.h.