DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Interface for conditions pool optimized to host conditions updates. More...
#include <ConditionsPool.h>
Public Types | |
enum | { PRINT_NONE = 0, PRINT_INSERT = 1<<0, PRINT_CLEAR = 1<<1, PRINT_LOAD = 1<<2, PRINT_COMPUTE = 1<<3, PRINT_LAST } |
Printout flags for debugging. More... | |
typedef std::map< Condition::key_type, const ConditionDependency * > | Dependencies |
Forward definition of the key type. More... | |
Public Types inherited from dd4hep::ConditionsMap | |
enum | { FIRST_ITEM = Condition::FIRST_ITEM_KEY, LAST_ITEM = Condition::LAST_ITEM_KEY } |
enum | { FIRST_KEY = Condition::FIRST_KEY, LAST_KEY = Condition::LAST_KEY } |
Public Member Functions | |
virtual bool | insert (Condition condition)=0 |
ConditionsMap overload: Add a condition directly to the slice. More... | |
UserPool (ConditionsManager mgr) | |
Default constructor. More... | |
virtual | ~UserPool () |
Default destructor. More... | |
const IOV & | validity () const |
Access the interval of validity for this user pool. More... | |
const IOV * | validityPtr () const |
Access the interval of validity for this user pool. More... | |
virtual void | print (const std::string &opt) const =0 |
Print pool content. More... | |
virtual size_t | size () const =0 |
Total entry count. More... | |
virtual void | clear ()=0 |
Full cleanup of all managed conditions. More... | |
virtual bool | exists (Condition::key_type key) const =0 |
Check a condition for existence. More... | |
virtual bool | exists (const ConditionKey &key) const =0 |
Check a condition for existence. More... | |
virtual Condition | get (Condition::key_type key) const =0 |
Check if a condition exists in the pool and return it to the caller. More... | |
virtual Condition | get (const ConditionKey &key) const =0 |
Check if a condition exists in the pool and return it to the caller. More... | |
virtual bool | remove (Condition::key_type hash_key)=0 |
Remove condition by key from pool. More... | |
virtual bool | remove (const ConditionKey &key)=0 |
Remove condition by key from pool. More... | |
virtual bool | registerOne (const IOV &iov, Condition cond)=0 |
Do single insertion of condition including registration to the manager. More... | |
virtual size_t | registerMany (const IOV &iov, const std::vector< Condition > &values)=0 |
Do block insertions of conditions with identical IOV. More... | |
template<typename CONT > | |
size_t | registerUnmapped (const IOV &iov, CONT &c) |
Insert multiple conditions. Note: the conditions must already have a hash key. More... | |
template<typename CONT > | |
size_t | registerMapping (const IOV &iov, CONT &c) |
Insert multiple conditions. Note: the conditions must already have a hash key. More... | |
virtual bool | insert (DetElement detector, Condition::itemkey_type key, Condition condition)=0 |
ConditionsMap overload: Add a condition directly to the slice. More... | |
virtual Condition | get (DetElement detector, Condition::itemkey_type key) const =0 |
ConditionsMap overload: Access a single condition. More... | |
virtual std::vector< Condition > | get (Condition::key_type lower, Condition::key_type upper) const =0 |
No ConditionsMap overload: Access all conditions within a key range in the interval [lower,upper]. More... | |
virtual std::vector< Condition > | get (DetElement detector, Condition::itemkey_type lower, Condition::itemkey_type upper) const =0 |
No ConditionsMap overload: Access all conditions within a key range in the interval [lower,upper]. More... | |
virtual void | scan (const Condition::Processor &processor) const =0 |
ConditionsMap overload: Interface to scan data content of the conditions mapping. More... | |
virtual void | scan (Condition::key_type lower, Condition::key_type upper, const Condition::Processor &processor) const =0 |
No ConditionsMap overload: Interface to scan data content of the conditions mapping. More... | |
virtual void | scan (DetElement detector, Condition::itemkey_type lower, Condition::itemkey_type upper, const Condition::Processor &processor) const =0 |
No ConditionsMap overload: Interface to scan data content of the conditions mapping. More... | |
virtual ConditionsManager::Result | prepare (const IOV &required, ConditionsSlice &slice, ConditionUpdateUserContext *user_param=0)=0 |
Prepare user pool for usage (load, fill etc.) according to required IOV. More... | |
virtual ConditionsManager::Result | load (const IOV &required_validity, ConditionsSlice &slice, ConditionUpdateUserContext *ctxt=0)=0 |
Load all updates to the clients with the defined IOV (1rst step of prepare) More... | |
virtual ConditionsManager::Result | compute (const IOV &required_validity, ConditionsSlice &slice, ConditionUpdateUserContext *ctxt=0)=0 |
Compute all derived conditions with the defined IOV (2nd step of prepare) More... | |
virtual size_t | compute (const Dependencies &dependencies, ConditionUpdateUserContext *user_param, bool force)=0 |
Evaluate and register all derived conditions from the dependency list. More... | |
Public Member Functions inherited from dd4hep::ConditionsMap | |
virtual | ~ConditionsMap ()=default |
Standard destructor. More... | |
Public Attributes | |
unsigned int | flags = 0 |
Processing flags (printout etc.) More... | |
Protected Attributes | |
IOV | m_iov |
The pool's interval of validity. More... | |
ConditionsManager | m_manager |
Handle to conditions manager object. More... | |
Interface for conditions pool optimized to host conditions updates.
Definition at line 134 of file ConditionsPool.h.
typedef std::map<Condition::key_type,const ConditionDependency*> dd4hep::cond::UserPool::Dependencies |
Forward definition of the key type.
Definition at line 137 of file ConditionsPool.h.
anonymous enum |
Printout flags for debugging.
Enumerator | |
---|---|
PRINT_NONE | |
PRINT_INSERT | |
PRINT_CLEAR | |
PRINT_LOAD | |
PRINT_COMPUTE | |
PRINT_LAST |
Definition at line 147 of file ConditionsPool.h.
UserPool::UserPool | ( | ConditionsManager | mgr | ) |
Default constructor.
Definition at line 82 of file ConditionsPool.cpp.
|
virtual |
Default destructor.
Definition at line 89 of file ConditionsPool.cpp.
|
pure virtual |
Full cleanup of all managed conditions.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Evaluate and register all derived conditions from the dependency list.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Compute all derived conditions with the defined IOV (2nd step of prepare)
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Check a condition for existence.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Check a condition for existence.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Check if a condition exists in the pool and return it to the caller.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
No ConditionsMap overload: Access all conditions within a key range in the interval [lower,upper].
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >, and dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Check if a condition exists in the pool and return it to the caller.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
ConditionsMap overload: Access a single condition.
Implements dd4hep::ConditionsMap.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
No ConditionsMap overload: Access all conditions within a key range in the interval [lower,upper].
Reimplemented from dd4hep::ConditionsMap.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
ConditionsMap overload: Add a condition directly to the slice.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
ConditionsMap overload: Add a condition directly to the slice.
Implements dd4hep::ConditionsMap.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Load all updates to the clients with the defined IOV (1rst step of prepare)
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Prepare user pool for usage (load, fill etc.) according to required IOV.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Print pool content.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Do block insertions of conditions with identical IOV.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
inline |
Insert multiple conditions. Note: the conditions must already have a hash key.
Definition at line 201 of file ConditionsPool.h.
Do single insertion of condition including registration to the manager.
Note: block insertions are preferred!!!
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
inline |
Insert multiple conditions. Note: the conditions must already have a hash key.
Definition at line 194 of file ConditionsPool.h.
|
pure virtual |
Remove condition by key from pool.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Remove condition by key from pool.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
No ConditionsMap overload: Interface to scan data content of the conditions mapping.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >, and dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
ConditionsMap overload: Interface to scan data content of the conditions mapping.
Implements dd4hep::ConditionsMap.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
No ConditionsMap overload: Interface to scan data content of the conditions mapping.
Reimplemented from dd4hep::ConditionsMap.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
pure virtual |
Total entry count.
Implemented in dd4hep::cond::ConditionsMappedUserPool< MAPPING >.
|
inline |
Access the interval of validity for this user pool.
Definition at line 167 of file ConditionsPool.h.
|
inline |
Access the interval of validity for this user pool.
Definition at line 169 of file ConditionsPool.h.
unsigned int dd4hep::cond::UserPool::flags = 0 |
Processing flags (printout etc.)
Definition at line 156 of file ConditionsPool.h.
|
protected |
The pool's interval of validity.
Definition at line 141 of file ConditionsPool.h.
|
protected |
Handle to conditions manager object.
Definition at line 143 of file ConditionsPool.h.