26 using namespace DD4hep;
27 using namespace DD4hep::Conditions;
33 return collectAllConditions(manager, conditions);
38 typedef vector<const IOVType*>
_T;
41 size_t num_conditions = 0;
42 for( _T::const_iterator i = types.begin(); i != types.end(); ++i ) {
48 for (_E::const_iterator j=e.begin(); j != e.end(); ++j) {
52 for(RangeConditions::const_iterator ic=rc.begin(); ic!=rc.end(); ++ic)
53 conditions.push_back(*ic);
54 num_conditions += rc.size();
59 return num_conditions;
63 size_t Operators::collectAllConditions(LCDD& lcdd, std::map<int,Condition>& conditions) {
65 return collectAllConditions(manager, conditions);
69 size_t Operators::collectAllConditions(
ConditionsManager manager, std::map<int,Condition>& conditions) {
70 typedef vector<const IOVType*>
_T;
73 size_t num_conditions = 0;
74 for( _T::const_iterator i = types.begin(); i != types.end(); ++i ) {
80 for (_E::const_iterator j=e.begin(); j != e.end(); ++j) {
84 for(RangeConditions::const_iterator ic=rc.begin(); ic!=rc.end(); ++ic)
85 conditions.insert(make_pair((*ic)->hash,*ic));
86 num_conditions += rc.size();
91 return num_conditions;
virtual void select_all(RangeConditions &result)=0
Select all conditions contained.
Elements elements
Container of IOV dependent conditions pools.
Manager class for condition handles.
std::map< IOV::Key, Element > Elements
Class describing the interval of validty type.
Class implementing the conditions collection for a given IOV type.
Pool of conditions satisfying one IOV type (epoch, run, fill, etc)
std::vector< Condition > RangeConditions
The main interface to the DD4hep detector description package.
ConditionsIOVPool * iovPool(const IOVType &type) const
Access conditions multi IOV pool by iov type.
static const char * _T(const std::string &s)
const std::vector< const IOVType * > iovTypesUsed() const
Access the used/registered IOV types.