DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
dd4hep::cond::ConditionsMultiLoader Class Reference

Implementation of a stack of conditions assembled before application. More...

Inheritance diagram for dd4hep::cond::ConditionsMultiLoader:
dd4hep::cond::ConditionsDataLoader dd4hep::NamedObject dd4hep::PropertyConfigurable dd4hep::PropertyInterface

Public Member Functions

 ConditionsMultiLoader (Detector &description, ConditionsManager mgr, const std::string &nam)
 Default constructor. More...
 
virtual ~ConditionsMultiLoader ()
 Default destructor. More...
 
virtual size_t load_many (const IOV &, RequiredItems &, LoadedItems &, IOV &)
 Optimized update using conditions slice data. More...
 
- Public Member Functions inherited from dd4hep::cond::ConditionsDataLoader
 ConditionsDataLoader (Detector &description, ConditionsManager mgr, const std::string nam)
 Default constructor. More...
 
virtual ~ConditionsDataLoader ()
 Default destructor. More...
 
virtual void initialize ()
 Optional initialization for sub-classes. More...
 
ConditionsManager manager () const
 Access conditions manager. More...
 
Propertyoperator[] (const std::string &property_name)
 Access to properties. More...
 
const Propertyoperator[] (const std::string &property_name) const
 Access to properties (CONST) More...
 
void addSource (const std::string &source)
 Add data source definition to loader. More...
 
void addSource (const std::string &source, const IOV &iov)
 Add data source definition to loader for data corresponding to a given IOV. More...
 
- Public Member Functions inherited from dd4hep::NamedObject
 NamedObject (const char *nam, const char *typ="")
 Initializing constructor. More...
 
 NamedObject (const std::string &nam)
 Initializing constructor. More...
 
 NamedObject (const std::string &nam, const std::string &typ)
 Initializing constructor. More...
 
 NamedObject ()=default
 Standard constructor. More...
 
 NamedObject (const NamedObject &c)=default
 Copy constructor. More...
 
 NamedObject (NamedObject &&c)=default
 Move constructor. More...
 
virtual ~NamedObject ()=default
 Default destructor. More...
 
NamedObjectoperator= (const NamedObject &c)=default
 Assignment operator. More...
 
NamedObjectoperator= (NamedObject &&c)=default
 Move assignment operator. More...
 
const char * GetName () const
 Access name. More...
 
void SetName (const char *nam)
 Set name (used by Handle) More...
 
void SetTitle (const char *tit)
 Set Title (used by Handle) More...
 
const char * GetTitle () const
 Get name (used by Handle) More...
 
- Public Member Functions inherited from dd4hep::PropertyConfigurable
 PropertyConfigurable ()
 Standard constructor. More...
 
virtual ~PropertyConfigurable ()
 Default destructor. More...
 
virtual PropertyManagerproperties () override
 Access to the properties of the object. More...
 
virtual const PropertyManagerproperties () const override
 Access to the properties of the object. More...
 
virtual bool hasProperty (const std::string &name) const override
 Check property for existence. More...
 
virtual Propertyproperty (const std::string &name) override
 Access single property. More...
 
template<typename T >
void declareProperty (const std::string &nam, T &val)
 Declare property. More...
 
template<typename T >
void declareProperty (const char *nam, T &val)
 Declare property. More...
 
- Public Member Functions inherited from dd4hep::PropertyInterface
virtual ~PropertyInterface ()=default
 Default destructor. More...
 

Private Types

typedef std::map< std::string, ConditionsDataLoader * > Loaders
 
typedef std::map< std::string, ConditionsDataLoader * > OpenSources
 

Private Member Functions

ConditionsDataLoaderload_source (const std::string &nam, const IOV &req_validity)
 

Private Attributes

Loaders m_loaders
 
OpenSources m_openSources
 

Additional Inherited Members

- Public Types inherited from dd4hep::cond::ConditionsDataLoader
typedef std::pair< std::string, IOVSource
 
typedef std::vector< SourceSources
 
typedef ConditionsDataLoader base_t
 
typedef Condition::key_type key_type
 
typedef std::map< key_type, ConditionLoadedItems
 
typedef std::vector< std::pair< key_type, ConditionsLoadInfo * > > RequiredItems
 
- Public Attributes inherited from dd4hep::NamedObject
std::string name
 The object name. More...
 
std::string type
 The object type. More...
 
- Protected Member Functions inherited from dd4hep::cond::ConditionsDataLoader
void pushUpdates ()
 Queue update to manager. More...
 
- Protected Attributes inherited from dd4hep::cond::ConditionsDataLoader
Detectorm_detector
 Reference to main detector description object. More...
 
ConditionsManager m_mgr
 Reference to conditions manager used to queue update requests. More...
 
Sources m_sources
 Property: input data source definitions. More...
 
- Protected Attributes inherited from dd4hep::PropertyConfigurable
PropertyManager m_properties
 Property pool. More...
 

Detailed Description

Implementation of a stack of conditions assembled before application.

Author
M.Frank
Version
1.0

Definition at line 37 of file ConditionsMultiLoader.cpp.

Member Typedef Documentation

◆ Loaders

typedef std::map<std::string, ConditionsDataLoader*> dd4hep::cond::ConditionsMultiLoader::Loaders
private

Definition at line 38 of file ConditionsMultiLoader.cpp.

◆ OpenSources

Definition at line 39 of file ConditionsMultiLoader.cpp.

Constructor & Destructor Documentation

◆ ConditionsMultiLoader()

ConditionsMultiLoader::ConditionsMultiLoader ( Detector description,
ConditionsManager  mgr,
const std::string &  nam 
)

Default constructor.

Standard constructor, initializes variables.

Definition at line 108 of file ConditionsMultiLoader.cpp.

◆ ~ConditionsMultiLoader()

ConditionsMultiLoader::~ConditionsMultiLoader ( )
virtual

Default destructor.

Default Destructor.

Definition at line 114 of file ConditionsMultiLoader.cpp.

Member Function Documentation

◆ load_many()

virtual size_t dd4hep::cond::ConditionsMultiLoader::load_many ( const IOV ,
RequiredItems ,
LoadedItems ,
IOV  
)
inlinevirtual

Optimized update using conditions slice data.

Implements dd4hep::cond::ConditionsDataLoader.

Definition at line 61 of file ConditionsMultiLoader.cpp.

◆ load_source()

ConditionsDataLoader * ConditionsMultiLoader::load_source ( const std::string &  nam,
const IOV req_validity 
)
private

Definition at line 118 of file ConditionsMultiLoader.cpp.

Member Data Documentation

◆ m_loaders

Loaders dd4hep::cond::ConditionsMultiLoader::m_loaders
private

Definition at line 41 of file ConditionsMultiLoader.cpp.

◆ m_openSources

OpenSources dd4hep::cond::ConditionsMultiLoader::m_openSources
private

Definition at line 42 of file ConditionsMultiLoader.cpp.


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