DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | List of all members
dd4hep::cond::UpdatePool Class Referenceabstract

Interface for conditions pool optimized to host conditions updates. More...

#include <ConditionsPool.h>

Inheritance diagram for dd4hep::cond::UpdatePool:
dd4hep::cond::ConditionsPool dd4hep::NamedObject

Public Types

typedef std::vector< ConditionConditionEntries
 
typedef std::map< const IOV *, ConditionEntriesUpdateEntries
 Update container specification. More...
 
- Public Types inherited from dd4hep::cond::ConditionsPool
enum  { AGE_NONE = 0, AGE_ANY = 9999999, AGE_EXPIRED = 12345678 }
 

Public Member Functions

 UpdatePool (ConditionsManager mgr, IOV *iov)
 Default constructor. More...
 
virtual ~UpdatePool ()
 Default destructor. More...
 
virtual size_t popEntries (UpdateEntries &entries)=0
 Adopt all entries sorted by IOV. Entries will be removed from the pool. More...
 
virtual void select_range (Condition::key_type key, const IOV &req_validity, RangeConditions &result)=0
 Select the conditions matching the key. More...
 
- Public Member Functions inherited from dd4hep::cond::ConditionsPool
void onRegister (Condition condition)
 Listener invocation when a condition is registered to the cache. More...
 
void onRemove (Condition condition)
 Listener invocation when a condition is deregistered from the cache. More...
 
 ConditionsPool (ConditionsManager mgr, IOV *iov)
 Default constructor. More...
 
virtual ~ConditionsPool ()
 Default destructor. Note: pool must be cleared by the subclass! More...
 
void print () const
 Print pool basics. More...
 
void print (const std::string &opt) const
 Print pool basics. More...
 
virtual size_t size () const =0
 Total entry count. More...
 
virtual void clear ()=0
 Full cleanup of all managed conditions. More...
 
virtual bool insert (Condition cond)=0
 Register a new condition to this pool. More...
 
virtual void insert (RangeConditions &cond)=0
 Register a new condition to this pool. May overload for performance reasons. More...
 
virtual Condition exists (Condition::key_type key) const =0
 Check if a condition exists in the pool. More...
 
virtual size_t select (Condition::key_type key, RangeConditions &result)=0
 Select the conditions matching the DetElement and the conditions name. More...
 
virtual size_t select_all (RangeConditions &result)=0
 Select all conditions contained. More...
 
virtual size_t select_all (const ConditionsSelect &predicate)=0
 Select the conditons, passing a predicate. More...
 
virtual size_t select_all (ConditionsPool &selection_pool)=0
 Select all conditions contained. More...
 
- Public Member Functions inherited from dd4hep::NamedObject
 NamedObject (const char *nam, const char *typ="")
 Initializing constructor. More...
 
 NamedObject (const std::string &nam)
 Initializing constructor. More...
 
 NamedObject (const std::string &nam, const std::string &typ)
 Initializing constructor. More...
 
 NamedObject ()=default
 Standard constructor. More...
 
 NamedObject (const NamedObject &c)=default
 Copy constructor. More...
 
 NamedObject (NamedObject &&c)=default
 Move constructor. More...
 
virtual ~NamedObject ()=default
 Default destructor. More...
 
NamedObjectoperator= (const NamedObject &c)=default
 Assignment operator. More...
 
NamedObjectoperator= (NamedObject &&c)=default
 Move assignment operator. More...
 
const char * GetName () const
 Access name. More...
 
void SetName (const char *nam)
 Set name (used by Handle) More...
 
void SetTitle (const char *tit)
 Set Title (used by Handle) More...
 
const char * GetTitle () const
 Get name (used by Handle) More...
 

Additional Inherited Members

- Public Attributes inherited from dd4hep::cond::ConditionsPool
IOViov
 The IOV of the conditions hosted. More...
 
int age_value
 Aging value. More...
 
- Public Attributes inherited from dd4hep::NamedObject
std::string name
 The object name. More...
 
std::string type
 The object type. More...
 
- Protected Attributes inherited from dd4hep::cond::ConditionsPool
ConditionsManager m_manager
 Handle to conditions manager object. More...
 

Detailed Description

Interface for conditions pool optimized to host conditions updates.

Author
M.Frank
Version
1.0

Definition at line 109 of file ConditionsPool.h.

Member Typedef Documentation

◆ ConditionEntries

Definition at line 112 of file ConditionsPool.h.

◆ UpdateEntries

Update container specification.

Definition at line 114 of file ConditionsPool.h.

Constructor & Destructor Documentation

◆ UpdatePool()

UpdatePool::UpdatePool ( ConditionsManager  mgr,
IOV iov 
)

Default constructor.

Definition at line 73 of file ConditionsPool.cpp.

◆ ~UpdatePool()

UpdatePool::~UpdatePool ( )
virtual

Default destructor.

Definition at line 78 of file ConditionsPool.cpp.

Member Function Documentation

◆ popEntries()

virtual size_t dd4hep::cond::UpdatePool::popEntries ( UpdateEntries entries)
pure virtual

Adopt all entries sorted by IOV. Entries will be removed from the pool.

◆ select_range()

virtual void dd4hep::cond::UpdatePool::select_range ( Condition::key_type  key,
const IOV req_validity,
RangeConditions result 
)
pure virtual

Select the conditions matching the key.


The documentation for this class was generated from the following files: