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

Pool of conditions satisfying one IOV type (epoch, run, fill, etc) More...

#include <ConditionsIOVPool.h>

Public Types

typedef std::shared_ptr< ConditionsPoolElement
 Shortcut name for the actual container elements. More...
 
typedef std::map< IOV::Key, ElementElements
 Shortcut name for the actual conditions container. More...
 

Public Member Functions

 ConditionsIOVPool (const IOVType *type)
 Not ROOT persistent. More...
 
virtual ~ConditionsIOVPool ()
 Default destructor. More...
 
size_t select (Condition::key_type key, const IOV &req_validity, RangeConditions &result)
 Retrieve a condition set given the key according to their validity. More...
 
size_t selectRange (Condition::key_type key, const IOV &req_validity, RangeConditions &result)
 Retrieve a condition set given the key according to their validity. More...
 
size_t select (const IOV &req_validity, RangeConditions &valid, IOV &cond_validity)
 Select all ACTIVE conditions, which do match the IOV requirement. More...
 
size_t select (const IOV &req_validity, const ConditionsSelect &valid, IOV &cond_validity)
 Select all ACTIVE conditions, which do match the IOV requirement. More...
 
size_t select (const IOV &req_validity, Elements &valid, IOV &cond_validity)
 Select all ACTIVE conditions pools, which do match the IOV requirement. More...
 
size_t select (const IOV &req_validity, Elements &valid)
 Select all ACTIVE conditions pools, which do match the IOV requirement (faster) More...
 
size_t select (const IOV &req_validity, std::vector< Element > &valid, IOV &cond_validity)
 Select all ACTIVE conditions pools, which do match the IOV requirement. More...
 
size_t select (const IOV &req_validity, std::vector< Element > &valid)
 Select all ACTIVE conditions pools, which do match the IOV requirement (faster) More...
 
int clean (int max_age)
 Remove all key based pools with an age beyon the minimum age. More...
 
int clean (const ConditionsCleanup &cleaner)
 Invoke cache cleanup with user defined policy. More...
 

Public Attributes

Elements elements
 Container of IOV dependent conditions pools. More...
 
const IOVTypetype
 Reference to the IOV container. More...
 

Detailed Description

Pool of conditions satisfying one IOV type (epoch, run, fill, etc)

Purely internal class to the conditions manager implementation. Not at all to be accessed by clients!

Author
M.Frank
Version
1.0

Definition at line 38 of file ConditionsIOVPool.h.

Member Typedef Documentation

◆ Element

Shortcut name for the actual container elements.

Definition at line 41 of file ConditionsIOVPool.h.

◆ Elements

Shortcut name for the actual conditions container.

Definition at line 43 of file ConditionsIOVPool.h.

Constructor & Destructor Documentation

◆ ConditionsIOVPool()

ConditionsIOVPool::ConditionsIOVPool ( const IOVType type)

Not ROOT persistent.

Default constructor.

Default constructor

Definition at line 26 of file ConditionsIOVPool.cpp.

◆ ~ConditionsIOVPool()

ConditionsIOVPool::~ConditionsIOVPool ( )
virtual

Default destructor.

Definition at line 31 of file ConditionsIOVPool.cpp.

Member Function Documentation

◆ clean() [1/2]

int ConditionsIOVPool::clean ( const ConditionsCleanup cleaner)

Invoke cache cleanup with user defined policy.

Returns
pair<Number of pools cleared, Number of conditions cleaned up and removed>

Definition at line 76 of file ConditionsIOVPool.cpp.

◆ clean() [2/2]

int ConditionsIOVPool::clean ( int  max_age)

Remove all key based pools with an age beyon the minimum age.

Returns
Number of conditions cleaned up and removed.

Definition at line 93 of file ConditionsIOVPool.cpp.

◆ select() [1/7]

size_t ConditionsIOVPool::select ( Condition::key_type  key,
const IOV req_validity,
RangeConditions result 
)

Retrieve a condition set given the key according to their validity.

Definition at line 41 of file ConditionsIOVPool.cpp.

◆ select() [2/7]

size_t ConditionsIOVPool::select ( const IOV req_validity,
const ConditionsSelect valid,
IOV cond_validity 
)

Select all ACTIVE conditions, which do match the IOV requirement.

Definition at line 131 of file ConditionsIOVPool.cpp.

◆ select() [3/7]

size_t ConditionsIOVPool::select ( const IOV req_validity,
Elements valid 
)

Select all ACTIVE conditions pools, which do match the IOV requirement (faster)

Select all ACTIVE conditions, which do match the IOV requirement.

Definition at line 165 of file ConditionsIOVPool.cpp.

◆ select() [4/7]

size_t ConditionsIOVPool::select ( const IOV req_validity,
Elements valid,
IOV cond_validity 
)

Select all ACTIVE conditions pools, which do match the IOV requirement.

Select all ACTIVE conditions, which do match the IOV requirement.

Definition at line 153 of file ConditionsIOVPool.cpp.

◆ select() [5/7]

size_t ConditionsIOVPool::select ( const IOV req_validity,
RangeConditions valid,
IOV cond_validity 
)

Select all ACTIVE conditions, which do match the IOV requirement.

Definition at line 110 of file ConditionsIOVPool.cpp.

◆ select() [6/7]

size_t ConditionsIOVPool::select ( const IOV req_validity,
std::vector< Element > &  valid 
)

Select all ACTIVE conditions pools, which do match the IOV requirement (faster)

Select all ACTIVE conditions, which do match the IOV requirement.

Definition at line 194 of file ConditionsIOVPool.cpp.

◆ select() [7/7]

size_t ConditionsIOVPool::select ( const IOV req_validity,
std::vector< Element > &  valid,
IOV cond_validity 
)

Select all ACTIVE conditions pools, which do match the IOV requirement.

Select all ACTIVE conditions, which do match the IOV requirement.

Definition at line 182 of file ConditionsIOVPool.cpp.

◆ selectRange()

size_t ConditionsIOVPool::selectRange ( Condition::key_type  key,
const IOV req_validity,
RangeConditions result 
)

Retrieve a condition set given the key according to their validity.

Definition at line 56 of file ConditionsIOVPool.cpp.

Member Data Documentation

◆ elements

Elements dd4hep::cond::ConditionsIOVPool::elements

Container of IOV dependent conditions pools.

Definition at line 46 of file ConditionsIOVPool.h.

◆ type

const IOVType* dd4hep::cond::ConditionsIOVPool::type

Reference to the IOV container.

Not ROOT persistent

Definition at line 48 of file ConditionsIOVPool.h.


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