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

ConditionResolver class used by the derived conditions calculation mechanism. More...

#include <ConditionDerived.h>

Inheritance diagram for dd4hep::cond::ConditionResolver:
dd4hep::cond::ConditionsDependencyHandler

Public Member Functions

virtual ~ConditionResolver ()
 Standard destructor. More...
 
virtual Handle< NamedObjectmanager () const =0
 Access to the conditions manager. More...
 
virtual DetectordetectorDescription () const =0
 Access to the detector description instance. More...
 
virtual const IOVrequiredValidity () const =0
 Required IOV value for update cycle. More...
 
virtual ConditionsMapconditionsMap () const =0
 Accessor for the current conditons mapping. More...
 
virtual Condition get (const ConditionKey &key)=0
 Interface to access conditions by conditions key. More...
 
virtual Condition get (const ConditionKey &key, bool throw_if_not)=0
 Interface to access conditions by conditions key. More...
 
virtual Condition get (Condition::key_type key)=0
 Interface to access conditions by hash value. More...
 
virtual Condition get (Condition::key_type key, bool throw_if_not)=0
 Interface to access conditions by hash value. More...
 
virtual Condition get (Condition::key_type key, const ConditionDependency *dependency, bool throw_if_not)=0
 Interface to access conditions by hash value. More...
 
virtual std::vector< Conditionget (DetElement de)=0
 Interface to access conditions by hash value of the DetElement (only valid at resolve!) More...
 
virtual std::vector< Conditionget (Condition::detkey_type key)=0
 Interface to access conditions by hash value of the DetElement (only valid at resolve!) More...
 
virtual std::vector< ConditiongetByItem (Condition::itemkey_type key)=0
 Interface to access conditions by hash value of the item (only valid at resolve!) More...
 
virtual bool registerOne (const IOV &iov, Condition cond)=0
 Interface to handle multi-condition inserts by callbacks: One single insert. More...
 
virtual size_t registerMany (const IOV &iov, const std::vector< Condition > &values)=0
 Handle multi-condition inserts by callbacks: block insertions of conditions with identical IOV. More...
 
template<typename CONT >
size_t registerUnmapped (const IOV &iov, CONT &c)
 Handle multi-condition inserts by callbacks with identical key. Handle unmapped containers. More...
 
template<typename CONT >
size_t registerMapping (const IOV &iov, CONT &c)
 Handle multi-condition inserts by callbacks with identical key. Handle mapped containers. More...
 

Detailed Description

ConditionResolver class used by the derived conditions calculation mechanism.

Author
M.Frank
Version
1.0

Definition at line 61 of file ConditionDerived.h.

Constructor & Destructor Documentation

◆ ~ConditionResolver()

ConditionResolver::~ConditionResolver ( )
virtual

Standard destructor.

Definition at line 115 of file ConditionDerived.cpp.

Member Function Documentation

◆ conditionsMap()

virtual ConditionsMap& dd4hep::cond::ConditionResolver::conditionsMap ( ) const
pure virtual

Accessor for the current conditons mapping.

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ detectorDescription()

virtual Detector& dd4hep::cond::ConditionResolver::detectorDescription ( ) const
pure virtual

Access to the detector description instance.

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ get() [1/7]

virtual std::vector<Condition> dd4hep::cond::ConditionResolver::get ( Condition::detkey_type  key)
pure virtual

Interface to access conditions by hash value of the DetElement (only valid at resolve!)

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ get() [2/7]

virtual Condition dd4hep::cond::ConditionResolver::get ( Condition::key_type  key)
pure virtual

Interface to access conditions by hash value.

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ get() [3/7]

virtual Condition dd4hep::cond::ConditionResolver::get ( Condition::key_type  key,
bool  throw_if_not 
)
pure virtual

Interface to access conditions by hash value.

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ get() [4/7]

virtual Condition dd4hep::cond::ConditionResolver::get ( Condition::key_type  key,
const ConditionDependency dependency,
bool  throw_if_not 
)
pure virtual

Interface to access conditions by hash value.

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ get() [5/7]

virtual Condition dd4hep::cond::ConditionResolver::get ( const ConditionKey key)
pure virtual

Interface to access conditions by conditions key.

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ get() [6/7]

virtual Condition dd4hep::cond::ConditionResolver::get ( const ConditionKey key,
bool  throw_if_not 
)
pure virtual

Interface to access conditions by conditions key.

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ get() [7/7]

virtual std::vector<Condition> dd4hep::cond::ConditionResolver::get ( DetElement  de)
pure virtual

Interface to access conditions by hash value of the DetElement (only valid at resolve!)

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ getByItem()

virtual std::vector<Condition> dd4hep::cond::ConditionResolver::getByItem ( Condition::itemkey_type  key)
pure virtual

Interface to access conditions by hash value of the item (only valid at resolve!)

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ manager()

virtual Handle<NamedObject> dd4hep::cond::ConditionResolver::manager ( ) const
pure virtual

Access to the conditions manager.

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ registerMany()

virtual size_t dd4hep::cond::ConditionResolver::registerMany ( const IOV iov,
const std::vector< Condition > &  values 
)
pure virtual

Handle multi-condition inserts by callbacks: block insertions of conditions with identical IOV.

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ registerMapping()

template<typename CONT >
size_t dd4hep::cond::ConditionResolver::registerMapping ( const IOV iov,
CONT &  c 
)
inline

Handle multi-condition inserts by callbacks with identical key. Handle mapped containers.

Definition at line 106 of file ConditionDerived.h.

◆ registerOne()

virtual bool dd4hep::cond::ConditionResolver::registerOne ( const IOV iov,
Condition  cond 
)
pure virtual

Interface to handle multi-condition inserts by callbacks: One single insert.

Note: block insertions are nearly ALWAYS preferred!!!

Implemented in dd4hep::cond::ConditionsDependencyHandler.

◆ registerUnmapped()

template<typename CONT >
size_t dd4hep::cond::ConditionResolver::registerUnmapped ( const IOV iov,
CONT &  c 
)
inline

Handle multi-condition inserts by callbacks with identical key. Handle unmapped containers.

Definition at line 99 of file ConditionDerived.h.

◆ requiredValidity()

virtual const IOV& dd4hep::cond::ConditionResolver::requiredValidity ( ) const
pure virtual

Required IOV value for update cycle.

Implemented in dd4hep::cond::ConditionsDependencyHandler.


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