CMS 3D CMS Logo

AlignableIndexer.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignment_Counters_H
2 #define Alignment_CommonAlignment_Counters_H
3 
22 #include <map>
23 #include <functional>
24 
28 
29 class TrackerTopology;
30 namespace align {
31  using Counter = std::function<unsigned int(align::ID)>;
32 }
33 
35 public:
37  AlignableIndexer() = default;
38  AlignableIndexer(const AlignableIndexer&) = default;
39  AlignableIndexer& operator=(const AlignableIndexer&) = default;
42  virtual ~AlignableIndexer() = default;
43 
46 
47 protected:
48  std::map<align::StructureType, align::Counter> theCounters;
49 };
50 
51 #endif
AlignableObjectId
Allows conversion between type and name, and vice-versa.
Definition: AlignableObjectId.h:13
AlignableIndexer::operator=
AlignableIndexer & operator=(const AlignableIndexer &)=default
align::Counter
std::function< unsigned int(align::ID)> Counter
Definition: AlignableIndexer.h:31
align
Definition: AlignableIndexer.h:30
AlignableIndexer::get
virtual align::Counter get(align::StructureType, const AlignableObjectId &) const
Get a counter based on its structure type.
Definition: AlignableIndexer.cc:7
StructureType.h
TrackerTopology
Definition: TrackerTopology.h:16
AlignableIndexer
Definition: AlignableIndexer.h:34
AlignableIndexer::~AlignableIndexer
virtual ~AlignableIndexer()=default
AlignableIndexer::theCounters
std::map< align::StructureType, align::Counter > theCounters
Definition: AlignableIndexer.h:48
align::StructureType
StructureType
Definition: StructureType.h:16
align::ID
uint32_t ID
Definition: Definitions.h:24
Definitions.h
createfilelist.int
int
Definition: createfilelist.py:10
AlignableObjectId.h
AlignableIndexer::AlignableIndexer
AlignableIndexer()=default
Build the counters map.
HiBiasedCentrality_cfi.function
function
Definition: HiBiasedCentrality_cfi.py:4