DD4hep  1.28.0
Detector Description Toolkit for High Energy Physics
AlignmentsNominalMap.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 #ifndef DD4HEP_ALIGNMENTSNOMINALMAP_H
14 #define DD4HEP_ALIGNMENTSNOMINALMAP_H
15 
16 // Framework include files
17 #include "DD4hep/ConditionsMap.h"
18 
19 // C/C++ include files
20 
22 namespace dd4hep {
23 
25 
45  public:
49  std::map<Condition::key_type,Condition> data;
50 
51  public:
55  virtual ~AlignmentsNominalMap() = default;
57  virtual bool insert(DetElement detector, Condition::itemkey_type key, Condition condition) override;
59  virtual Condition get(DetElement detector, Condition::itemkey_type key) const override;
61  virtual void scan(const Condition::Processor& processor) const override;
62 
65 
72  virtual std::vector<Condition> get(DetElement detector,
74  Condition::itemkey_type upper) const override
75  { return this->ConditionsMap::get(detector, lower, upper); }
76 
78 
86  virtual void scan(DetElement detector,
89  const Condition::Processor& processor) const override;
90  };
91 } /* End namespace dd4hep */
92 #endif // DD4HEP_ALIGNMENTSNOMINALMAP_H
dd4hep::AlignmentsNominalMap::scan
virtual void scan(const Condition::Processor &processor) const override
Interface to scan data content of the alignments mapping.
Definition: AlignmentNominalMap.cpp:49
dd4hep::AlignmentsNominalMap
An implementation of the ConditionsMap interface to fall back to nominal alignment.
Definition: AlignmentsNominalMap.h:44
dd4hep::AlignmentsNominalMap::get
virtual Condition get(DetElement detector, Condition::itemkey_type key) const override
Interface to access alignments by hash value. The detector element key and the item key make a unique...
Definition: AlignmentNominalMap.cpp:37
dd4hep::AlignmentsNominalMap::world
DetElement world
Reference to the top detector element.
Definition: AlignmentsNominalMap.h:47
dd4hep::AlignmentsNominalMap::get
virtual std::vector< Condition > get(DetElement detector, Condition::itemkey_type lower, Condition::itemkey_type upper) const override
No AlignmentsMap overload: Access all alignments within a key range in the interval [lower,...
Definition: AlignmentsNominalMap.h:72
dd4hep::Condition
Main condition object handle.
Definition: Conditions.h:51
dd4hep::DetElement
Handle class describing a detector element.
Definition: DetElement.h:188
dd4hep::ConditionsMap::get
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...
dd4hep::Condition::itemkey_type
unsigned int itemkey_type
Low part of the key identifies the item identifier.
Definition: Conditions.h:58
dd4hep::AlignmentsNominalMap::insert
virtual bool insert(DetElement detector, Condition::itemkey_type key, Condition condition) override
Insert a new entry to the map. The detector element key and the item key make a unique global alignme...
Definition: AlignmentNominalMap.cpp:29
ConditionsMap.h
key
unsigned char key
Definition: AlignmentsCalculator.cpp:69
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::AlignmentsNominalMap::data
std::map< Condition::key_type, Condition > data
Potential cache of real conditions.
Definition: AlignmentsNominalMap.h:49
dd4hep::Condition::Processor
Abstract base for processing callbacks to conditions objects.
Definition: Conditions.h:115
dd4hep::AlignmentsNominalMap::AlignmentsNominalMap
AlignmentsNominalMap(DetElement wrld)
Standard constructor.
Definition: AlignmentNominalMap.cpp:25
dd4hep::ConditionsMap
ConditionsMap class.
Definition: ConditionsMap.h:59
dd4hep::AlignmentsNominalMap::~AlignmentsNominalMap
virtual ~AlignmentsNominalMap()=default
Standard destructor.