DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Types | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
dd4hep::cond::ConditionsContent Class Reference

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...
 
Conditionsconditions ()
 Access to the real condition entries to be loaded. More...
 
const Conditionsconditions () const
 Access to the real condition entries to be loaded (CONST) More...
 
Dependenciesderived ()
 Access to the derived condition entries to be computed. More...
 
const Dependenciesderived () 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

ConditionsContentoperator= (const ConditionsContent &copy)=delete
 Default assignment operator. More...
 
 ConditionsContent (const ConditionsContent &copy)=delete
 Copy constructor. More...
 

Detailed Description

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.

Author
M.Frank
Version
1.0

Definition at line 74 of file ConditionsContent.h.

Member Typedef Documentation

◆ Conditions

Definition at line 101 of file ConditionsContent.h.

◆ Dependencies

Definition at line 100 of file ConditionsContent.h.

Constructor & Destructor Documentation

◆ ConditionsContent() [1/2]

dd4hep::cond::ConditionsContent::ConditionsContent ( const ConditionsContent copy)
privatedelete

Copy constructor.

◆ ConditionsContent() [2/2]

ConditionsContent::ConditionsContent ( )

Default constructor.

Initializing constructor.

Definition at line 32 of file ConditionsContent.cpp.

◆ ~ConditionsContent()

ConditionsContent::~ConditionsContent ( )
virtual

Default destructor.

Definition at line 38 of file ConditionsContent.cpp.

Member Function Documentation

◆ addDependency() [1/2]

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.

◆ addDependency() [2/2]

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.

◆ addLocation() [1/2]

template<typename T >
std::pair<Condition::key_type, ConditionsLoadInfo*> dd4hep::cond::ConditionsContent::addLocation ( Condition::key_type  hash,
const T &  info 
)
inline

Add a new conditions key. T must inherit from class ConditionsContent::Info.

Definition at line 144 of file ConditionsContent.h.

◆ addLocation() [2/2]

template<typename T >
std::pair<Condition::key_type, ConditionsLoadInfo*> dd4hep::cond::ConditionsContent::addLocation ( DetElement  de,
Condition::itemkey_type  item,
const T &  info 
)
inline

Add a new shared conditions dependency.

Definition at line 149 of file ConditionsContent.h.

◆ addLocationInfo()

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.

◆ clear()

void ConditionsContent::clear ( )

Clear the conditions content definitions.

Clear the container. Destroys the contained stuff.

Definition at line 45 of file ConditionsContent.cpp.

◆ conditions() [1/2]

Conditions& dd4hep::cond::ConditionsContent::conditions ( )
inline

Access to the real condition entries to be loaded.

Definition at line 123 of file ConditionsContent.h.

◆ conditions() [2/2]

const Conditions& dd4hep::cond::ConditionsContent::conditions ( ) const
inline

Access to the real condition entries to be loaded (CONST)

Definition at line 125 of file ConditionsContent.h.

◆ derived() [1/2]

Dependencies& dd4hep::cond::ConditionsContent::derived ( )
inline

Access to the derived condition entries to be computed.

Definition at line 127 of file ConditionsContent.h.

◆ derived() [2/2]

const Dependencies& dd4hep::cond::ConditionsContent::derived ( ) const
inline

Access to the derived condition entries to be computed (CONST)

Definition at line 129 of file ConditionsContent.h.

◆ insertKey()

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.

◆ merge()

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.

◆ operator=()

ConditionsContent& dd4hep::cond::ConditionsContent::operator= ( const ConditionsContent copy)
privatedelete

Default assignment operator.

◆ remove()

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.

Member Data Documentation

◆ m_conditions

Conditions dd4hep::cond::ConditionsContent::m_conditions
protected

Container of conditions required by this content.

Definition at line 107 of file ConditionsContent.h.

◆ m_derived

Dependencies dd4hep::cond::ConditionsContent::m_derived
protected

Container of derived conditions required by this content.

Definition at line 109 of file ConditionsContent.h.


The documentation for this class was generated from the following files: