|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
14 #ifndef DD4HEP_CONDITIONS_CONDIITONSSNAPSHOTROOTLOADER_H
15 #define DD4HEP_CONDITIONS_CONDIITONSSNAPSHOTROOTLOADER_H
35 std::vector<ConditionsRootPersistency*>
buffers;
44 const IOV& req_validity,
48 const IOV& req_validity,
56 except(
"ConditionsLoader",
"+++ update: Invalid call!");
80 const char* name = argc>0 ? argv[0] :
"XMLLoader";
99 TFile* f = TFile::Open(nam.c_str());
100 std::unique_ptr<ConditionsRootPersistency> p =
102 buffers.emplace_back(p.release());
109 size_t len = conditions.size();
114 return conditions.size()-len;
121 size_t len = conditions.size();
125 return conditions.size()-len;
Condition::key_type key_type
std::vector< Condition > RangeConditions
Implementation of a stack of conditions assembled before application.
AlignmentCondition::Object * cond
virtual size_t load_many(const IOV &, RequiredItems &, LoadedItems &, IOV &)
Optimized update using conditions slice data.
Sources m_sources
Property: input data source definitions.
virtual ~ConditionsSnapshotRootLoader()
Default destructor.
void load_source(const std::string &nam)
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.
Basic conditions manager implementation.
Namespace for implementation details of the AIDA detector description toolkit.
Class describing the interval of validty.
std::vector< std::pair< key_type, ConditionsLoadInfo * > > RequiredItems
#define DECLARE_DD4HEP_CONSTRUCTOR(name, func)
std::vector< ConditionsRootPersistency * > buffers
Manager class for condition handles.
ConditionsSnapshotRootLoader(Detector &description, ConditionsManager mgr, const std::string &nam)
Default constructor.
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.
Interface for a generic conditions loader.
Namespace for the AIDA detector description toolkit.
The main interface to the dd4hep detector description package.
std::map< key_type, Condition > LoadedItems
static std::unique_ptr< ConditionsRootPersistency > load(TFile *file, const std::string &object)
Load conditions content from file.