23 using namespace DD4hep;
24 using namespace DD4hep::Conditions;
30 :
NamedObject(), m_manager(mgr), iovType(0), iov(0), age_value(AGE_NONE)
43 printout(
INFO,
"ConditionsPool",
"+++ %s Conditions for pool with IOV: %-32s age:%3d [%4d entries]",
68 : m_iov(0), m_manager(mgr), m_iovPool(pool)
void print(const std::string &opt) const
Print pool basics.
virtual ~UpdatePool()
Default destructor.
ConditionsManager m_manager
Handle to conditions manager object.
DD4HEP_INSTANTIATE_HANDLE_NAMED(ConditionsPool)
UpdatePool(ConditionsManager mgr)
Default constructor.
ConditionsPool(ConditionsManager mgr)
Default constructor.
static void decrement(T *)
Decrement count according to type information.
Main condition object handle.
void onRemove(Condition condition)
Listener invocation when a condition is deregistered from the cache.
int age_value
Aging value.
void onRegister(Condition condition)
Listener invocation when a condition is registered to the cache.
T * ptr() const
Access to the held object.
virtual ~UserPool()
Default destructor.
Implementation of a named object.
Manager class for condition handles.
void onRegister(Condition condition)
Listener invocation when a condition is registered to the cache.
IOV * iov
The IOV of the conditions hosted.
Class implementing the conditions collection for a given IOV type.
static void increment(T *)
Increment count according to type information.
virtual ~ConditionsPool()
Default destructor. Note: pool must be cleared by the subclass!
Pool of conditions satisfying one IOV type (epoch, run, fill, etc)
UserPool(ConditionsManager mgr, ConditionsIOVPool *pool)
Default constructor.
void onRemove(Condition condition)
Listener invocation when a condition is deregistered from the cache.
int printout(PrintLevel severity, const char *src, const char *fmt,...)
Calls the display action with a given severity level.
virtual size_t count() const =0
Total entry count.
std::string str() const
Create string representation of the IOV.