DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Conditions content object. Defines which conditions should be loaded by the ConditionsManager. More...
#include <ConditionsContent.h>
Classes | |
class | LoadInfo |
Concrete class for data loading information. More... | |
Public Types | |
typedef std::map< Condition::key_type, ConditionDependency * > | Dependencies |
typedef std::map< Condition::key_type, ConditionsLoadInfo * > | Conditions |
Public Member Functions | |
ConditionsContent () | |
Default constructor. More... | |
virtual | ~ConditionsContent () |
Default destructor. More... | |
Conditions & | conditions () |
Access to the real condition entries to be loaded. More... | |
const Conditions & | conditions () const |
Access to the real condition entries to be loaded (CONST) More... | |
Dependencies & | derived () |
Access to the derived condition entries to be computed. More... | |
const Dependencies & | derived () const |
Access to the derived condition entries to be computed (CONST) More... | |
void | clear () |
Clear the conditions content definitions. More... | |
void | merge (const ConditionsContent &to_add) |
Merge the content of "to_add" into the this content. More... | |
bool | remove (Condition::key_type condition) |
Remove a condition from the content. More... | |
std::pair< Condition::key_type, ConditionsLoadInfo * > | insertKey (Condition::key_type hash) |
Add a new conditions key representing a real (not derived) condition. More... | |
std::pair< Condition::key_type, ConditionsLoadInfo * > | addLocationInfo (Condition::key_type hash, ConditionsLoadInfo *info) |
Add a new conditions key. T must inherit from class ConditionsContent::Info. More... | |
template<typename T > | |
std::pair< Condition::key_type, ConditionsLoadInfo * > | addLocation (Condition::key_type hash, const T &info) |
Add a new conditions key. T must inherit from class ConditionsContent::Info. More... | |
template<typename T > | |
std::pair< Condition::key_type, ConditionsLoadInfo * > | addLocation (DetElement de, Condition::itemkey_type item, const T &info) |
Add a new shared conditions dependency. More... | |
std::pair< Condition::key_type, ConditionDependency * > | addDependency (ConditionDependency *dep) |
Add a new shared conditions dependency. More... | |
std::pair< Condition::key_type, ConditionDependency * > | addDependency (DetElement de, Condition::itemkey_type item, std::shared_ptr< ConditionUpdateCall > callback) |
Add a new conditions dependency (Built internally from arguments) More... | |
Protected Attributes | |
Conditions | m_conditions |
Container of conditions required by this content. More... | |
Dependencies | m_derived |
Container of derived conditions required by this content. More... | |
Private Member Functions | |
ConditionsContent & | operator= (const ConditionsContent ©)=delete |
Default assignment operator. More... | |
ConditionsContent (const ConditionsContent ©)=delete | |
Copy constructor. More... | |
Conditions content object. Defines which conditions should be loaded by the ConditionsManager.
Object contains set of required conditions keys to be loaded to the user pool. It also contains the load information for the required conditions (conditions addresses). The address objects depend on the actual loader mechanism and must be specified the user. The information is then chained through the calls and made availible to the loader object.
Definition at line 74 of file ConditionsContent.h.
typedef std::map<Condition::key_type,ConditionsLoadInfo* > dd4hep::cond::ConditionsContent::Conditions |
Definition at line 101 of file ConditionsContent.h.
typedef std::map<Condition::key_type,ConditionDependency* > dd4hep::cond::ConditionsContent::Dependencies |
Definition at line 100 of file ConditionsContent.h.
|
privatedelete |
Copy constructor.
ConditionsContent::ConditionsContent | ( | ) |
|
virtual |
Default destructor.
Definition at line 38 of file ConditionsContent.cpp.
std::pair< dd4hep::Condition::key_type, ConditionDependency * > ConditionsContent::addDependency | ( | ConditionDependency * | dep | ) |
Add a new shared conditions dependency.
Definition at line 121 of file ConditionsContent.cpp.
std::pair< dd4hep::Condition::key_type, ConditionDependency * > ConditionsContent::addDependency | ( | DetElement | de, |
Condition::itemkey_type | item, | ||
std::shared_ptr< ConditionUpdateCall > | callback | ||
) |
Add a new conditions dependency (Built internally from arguments)
Definition at line 145 of file ConditionsContent.cpp.
|
inline |
Add a new conditions key. T must inherit from class ConditionsContent::Info.
Definition at line 144 of file ConditionsContent.h.
|
inline |
Add a new shared conditions dependency.
Definition at line 149 of file ConditionsContent.h.
std::pair< dd4hep::Condition::key_type, ConditionsLoadInfo * > ConditionsContent::addLocationInfo | ( | Condition::key_type | hash, |
ConditionsLoadInfo * | info | ||
) |
Add a new conditions key. T must inherit from class ConditionsContent::Info.
Definition at line 106 of file ConditionsContent.cpp.
void ConditionsContent::clear | ( | ) |
Clear the conditions content definitions.
Clear the container. Destroys the contained stuff.
Definition at line 45 of file ConditionsContent.cpp.
|
inline |
Access to the real condition entries to be loaded.
Definition at line 123 of file ConditionsContent.h.
|
inline |
Access to the real condition entries to be loaded (CONST)
Definition at line 125 of file ConditionsContent.h.
|
inline |
Access to the derived condition entries to be computed.
Definition at line 127 of file ConditionsContent.h.
|
inline |
Access to the derived condition entries to be computed (CONST)
Definition at line 129 of file ConditionsContent.h.
std::pair< dd4hep::Condition::key_type, ConditionsLoadInfo * > ConditionsContent::insertKey | ( | Condition::key_type | hash | ) |
Add a new conditions key representing a real (not derived) condition.
Definition at line 97 of file ConditionsContent.cpp.
void ConditionsContent::merge | ( | const ConditionsContent & | to_add | ) |
Merge the content of "to_add" into the this content.
Definition at line 51 of file ConditionsContent.cpp.
|
privatedelete |
Default assignment operator.
bool ConditionsContent::remove | ( | Condition::key_type | condition | ) |
Remove a condition from the content.
Remove a new shared condition.
Definition at line 80 of file ConditionsContent.cpp.
|
protected |
Container of conditions required by this content.
Definition at line 107 of file ConditionsContent.h.
|
protected |
Container of derived conditions required by this content.
Definition at line 109 of file ConditionsContent.h.