|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DDCOND_CONDITIONSROOTPERSISTENCY_H
14 #define DDCOND_CONDITIONSROOTPERSISTENCY_H
36 class ConditionsSlice;
37 class ConditionsIOVPool;
75 const std::string&
id,
76 const std::string& iov_type,
98 static TFile*
openFile(
const std::string& fname);
101 size_t add(
const std::string& identifier,
const IOV& iov, std::vector<Condition>& conditions);
105 size_t add(
const std::string& identifier,
const UserPool& pool);
110 static std::unique_ptr<ConditionsRootPersistency>
load(TFile* file,
const std::string&
object);
113 static std::unique_ptr<ConditionsRootPersistency>
load(
const std::string& file,
const std::string&
object) {
126 const std::string&
id,
127 const std::string& iov_type,
132 int save(TFile* file);
134 int save(
const std::string& file_name);
142 #endif // DDCOND_CONDITIONSROOTPERSISTENCY_H
AlignmentCondition::Object * cond
int save(TFile *file)
Save the data content to a root file.
ClassDef(ConditionsRootPersistency, 1)
ROOT object ClassDef.
ConditionsRootPersistency & operator=(const ConditionsRootPersistency ©)=delete
No assignment.
std::pair< Key_value_type, Key_value_type > Key
static TFile * openFile(const std::string &fname)
Open ROOT file in read mode.
ConditionsRootPersistency(const std::string &name, const std::string &title="DD4hep conditions container")
Initializing constructor.
std::pair< std::string, pool_type > named_pool_type
Class describing the interval of validty.
size_t importUserPool(const std::string &id, const std::string &iov_type, ConditionsManager mgr)
Load conditions user pool and populate conditions manager.
std::pair< std::string, std::pair< std::pair< std::string, int >, IOV::Key > > iov_key_type
ConditionsRootPersistency()
Default constructor.
Class implementing the conditions collection for a given IOV type.
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
int save(const std::string &file_name)
Save the data content to a root file.
void _clear(persistent_type &pool)
Clear object content and release allocated memory.
size_t _import(ImportStrategy strategy, persistent_type &pers, const std::string &id, const std::string &iov_type, const IOV::Key &iov_key, ConditionsManager mgr)
Load ConditionsIOVPool and populate conditions manager.
Manager class for condition handles.
size_t add(const std::string &identifier, const IOV &iov, std::vector< Condition > &conditions)
Add conditions content to be saved. Note, that dependent conditions shall not be saved!
Interface for conditions pool optimized to host conditions updates.
size_t importConditionsPool(const std::string &id, const std::string &iov_type, ConditionsManager mgr)
Load conditions pool and populate conditions manager.
size_t importConditionsPool(ImportStrategy strategy, const std::string &id, const std::string &iov_type, const IOV::Key &key, ConditionsManager mgr)
Load conditions pool and populate conditions manager. Allow tro be selective also for the key.
Helper to save conditions pools to ROOT.
persistent_type conditionPools
Namespace for the AIDA detector description toolkit.
void clear()
Clear object content and release allocated memory.
size_t importIOVPool(const std::string &id, const std::string &iov_type, ConditionsManager mgr)
Load conditions IOV pool and populate conditions manager.
Pool of conditions satisfying one IOV type (epoch, run, fill, etc)
persistent_type userPools
std::list< std::pair< iov_key_type, pool_type > > persistent_type
ConditionsRootPersistency(const ConditionsRootPersistency ©)=delete
No copy constructor.
static std::unique_ptr< ConditionsRootPersistency > load(TFile *file, const std::string &object)
Load conditions content from file.
std::vector< Condition > pool_type
virtual ~ConditionsRootPersistency()
Default destructor.
static std::unique_ptr< ConditionsRootPersistency > load(const std::string &file, const std::string &object)
Load conditions content from file.