|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DD4HEP_CONDITIONSMAP_H
14 #define DD4HEP_CONDITIONSMAP_H
22 #include <unordered_map>
124 template <
typename T>
164 #endif // DD4HEP_CONDITIONSMAP_H
Concrete ConditionsMap implementation class using externally defined containers.
virtual ~ConditionsMapping()=default
Standard destructor.
virtual ~ConditionsMap()=default
Standard destructor.
virtual void scan(const Condition::Processor &processor) const =0
Interface to scan data content of the conditions mapping.
ConditionsMapping()=default
Standard constructor to construct an empty object.
ConditionsMapping< std::multimap< Condition::key_type, Condition > > ConditionsMultiMap
Concrete implementation of the conditions map using a multimap.
virtual bool insert(DetElement detector, Condition::itemkey_type key, Condition condition)=0
Insert a new entry to the map. The detector element key and the item key make a unique global conditi...
virtual bool insert(DetElement detector, Condition::itemkey_type key, Condition condition) override
Insert a new entry to the map.
T data
The actual data container.
Main condition object handle.
Handle class describing a detector element.
virtual void scan(const Condition::Processor &processor) const override
Interface to scan data content of the conditions mapping.
virtual Condition get(DetElement detector, Condition::itemkey_type key) const =0
Interface to access conditions by hash value. The detector element key and the item key make a unique...
ConditionsMapping< std::map< Condition::key_type, Condition > > ConditionsTreeMap
Concrete implementation of the conditions map using a left-right map.
static constexpr unsigned long long int FIRST_KEY
Flags to indicate global conditions ranges.
virtual std::vector< Condition > get(DetElement detector, Condition::itemkey_type lower, Condition::itemkey_type upper) const override
No ConditionsMap overload: Access all conditions within a key range in the interval [lower,...
unsigned int itemkey_type
Low part of the key identifies the item identifier.
Namespace for the AIDA detector description toolkit.
static constexpr unsigned long long int LAST_KEY
Abstract base for processing callbacks to conditions objects.
ConditionsMapping(const ConditionsMapping ©)=delete
No copy constructor.
ConditionsMapping< std::unordered_map< Condition::key_type, Condition > > ConditionsHashMap
Concrete implementation of the conditions map using a hashmap.
ConditionsMapping & operator=(const ConditionsMapping ©)=delete
No assignment.
virtual Condition get(DetElement detector, Condition::itemkey_type key) const override
Interface to access conditions by hash value.