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

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

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

Public Member Functions

 ConditionsSnapshotRootLoader (Detector &description, ConditionsManager mgr, const std::string &nam)
 Default constructor. More...
 
virtual ~ConditionsSnapshotRootLoader ()
 Default destructor. More...
 
virtual size_t load_single (key_type key, const IOV &req_validity, RangeConditions &conditions)
 Load a condition set given a Detector Element and the conditions name according to their validity. More...
 
virtual size_t load_range (key_type key, const IOV &req_validity, RangeConditions &conditions)
 Load a condition set given a Detector Element and the conditions name according to their validity. 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...
 
Property & operator[] (const std::string &property_name)
 Access to properties. More...
 
const Property & operator[] (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...
 
NamedObject & operator= (const NamedObject &c)=default
 Assignment operator. More...
 
NamedObject & operator= (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 PropertyManager & properties () override
 Access to the properties of the object. More...
 
virtual const PropertyManager & properties () 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 Property & property (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 Member Functions

void load_source (const std::string &nam)
 

Private Attributes

std::vector< ConditionsRootPersistency * > buffers
 

Additional Inherited Members

- Public Types inherited from dd4hep::cond::ConditionsDataLoader
typedef std::pair< std::string, IOV > Source
 
typedef std::vector< Source > Sources
 
typedef ConditionsDataLoader base_t
 
typedef Condition::key_type key_type
 
typedef std::map< key_type, Condition > LoadedItems
 
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
Detector & m_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 34 of file ConditionsSnapshotRootLoader.cpp.

Constructor & Destructor Documentation

◆ ConditionsSnapshotRootLoader()

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

Default constructor.

Standard constructor, initializes variables.

Definition at line 88 of file ConditionsSnapshotRootLoader.cpp.

◆ ~ConditionsSnapshotRootLoader()

ConditionsSnapshotRootLoader::~ConditionsSnapshotRootLoader ( )
virtual

Default destructor.

Default Destructor.

Definition at line 94 of file ConditionsSnapshotRootLoader.cpp.

Member Function Documentation

◆ load_many()

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

Optimized update using conditions slice data.

Implements dd4hep::cond::ConditionsDataLoader.

Definition at line 51 of file ConditionsSnapshotRootLoader.cpp.

◆ load_range()

size_t ConditionsSnapshotRootLoader::load_range ( key_type  key,
const IOV &  req_validity,
RangeConditions &  conditions 
)
virtual

Load a condition set given a Detector Element and the conditions name according to their validity.

Definition at line 117 of file ConditionsSnapshotRootLoader.cpp.

◆ load_single()

size_t ConditionsSnapshotRootLoader::load_single ( key_type  key,
const IOV &  req_validity,
RangeConditions &  conditions 
)
virtual

Load a condition set given a Detector Element and the conditions name according to their validity.

Definition at line 105 of file ConditionsSnapshotRootLoader.cpp.

◆ load_source()

void ConditionsSnapshotRootLoader::load_source ( const std::string &  nam)
private

Definition at line 98 of file ConditionsSnapshotRootLoader.cpp.

Member Data Documentation

◆ buffers

std::vector<ConditionsRootPersistency*> dd4hep::cond::ConditionsSnapshotRootLoader::buffers
private

Definition at line 35 of file ConditionsSnapshotRootLoader.cpp.


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