|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DDCOND_CONDITIONSTREEPERSISTENCY_H
14 #define DDCOND_CONDITIONSTREEPERSISTENCY_H
98 std::map<std::pair<int,int>,
int>
tags;
150 const std::string&
id,
151 const std::string& iov_type,
173 static TFile*
openFile(
const std::string& fname);
176 size_t add(
const std::string& tag,
const IOV& iov, std::vector<Condition>& conditions);
184 static std::unique_ptr<ConditionsTreePersistency>
load(TFile* file,
const std::string&
object);
187 static std::unique_ptr<ConditionsTreePersistency>
load(
const std::string& file,
const std::string&
object) {
197 const std::string&
id,
198 const std::string& iov_type,
203 int save(TFile* file);
205 int save(
const std::string& file_name);
213 #endif // DDCOND_CONDITIONSTREEPERSISTENCY_H
static TFile * openFile(const std::string &fname)
Open ROOT file in read mode.
AlignmentCondition::Object * cond
persistent_type conditionPools
ConditionsTreePersistency & operator=(const ConditionsTreePersistency ©)=delete
No assignment.
void _clear(persistent_type &pool)
Clear object content and release allocated memory.
std::map< std::pair< int, int >, int > tags
This vector contains all the individual tags contributing to this global tag.
int version
Version number of the condition.
size_t importConditionsPool(const std::string &id, const std::string &iov_type, ConditionsManager mgr)
Load conditions pool and populate conditions manager.
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.
int save(const std::string &file_name)
Save the data content to a root file.
void clear()
Clear object content and release allocated memory.
std::pair< Key_value_type, Key_value_type > Key
ConditionsTag(const ConditionsTag ©)=default
Copy contructor.
IOV iov
The interval of validity for this global tag.
GlobalTag()=default
Default constructor.
ClassDef(ConditionsTreePersistency, 1)
ROOT object ClassDef.
~GlobalTag()=default
Default detructor.
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.
size_t add(const std::string &tag, const IOV &iov, std::vector< Condition > &conditions)
Add conditions content to be saved. Note, that dependent conditions shall not be saved!
int save(TFile *file)
Save the data content to a root file.
Class describing the interval of validty.
static std::unique_ptr< ConditionsTreePersistency > load(TFile *file, const std::string &object)
Load conditions content from file.
std::pair< std::string, pool_type > named_pool_type
IOV iov
Interval of validity.
Class implementing the conditions collection for a given IOV type.
~ConditionsTag()=default
Default destructor.
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
ConditionsTreePersistency(const ConditionsTreePersistency ©)=delete
No copy constructor.
size_t add(const std::string &tag, ConditionsPool &pool)
Add conditions content to be saved. Note, that dependent conditions shall not be saved!
GlobalTag(const GlobalTag ©)=default
Copy contructor.
std::list< std::pair< iov_key_type, pool_type > > persistent_type
GlobalTag & operator=(const GlobalTag ©)=default
Assignment operator.
Helper to save conditions pools to ROOT.
std::string name
Name of the global tag.
ConditionsTreePersistency(const std::string &name, const std::string &title="DD4hep conditions container")
Initializing constructor.
std::vector< Condition > pool_type
Manager class for condition handles.
virtual ~ConditionsTreePersistency()
Default destructor.
static std::unique_ptr< ConditionsTreePersistency > load(const std::string &file, const std::string &object)
Load conditions content from file.
ConditionsTag & operator=(const ConditionsTag ©)=default
Assignment operator.
Namespace for the AIDA detector description toolkit.
int collectionID
The collections contributing to this tag.
std::pair< std::string, std::pair< std::pair< std::string, int >, IOV::Key > > iov_key_type
Pool of conditions satisfying one IOV type (epoch, run, fill, etc)
size_t add(const std::string &tag, const ConditionsIOVPool &pool)
Add conditions content to be saved. Note, that dependent conditions shall not be saved!
ConditionsTreePersistency()
Default constructor.
ConditionsTag()=default
Default constructor.
size_t importIOVPool(const std::string &id, const std::string &iov_type, ConditionsManager mgr)
Load conditions IOV pool and populate conditions manager.
std::string name
Tag name.
Conditions slice object. Defines which conditions should be loaded by the ConditionsManager.