CMS 3D CMS Logo

MTDMapDDDtoID.h
Go to the documentation of this file.
1 #ifndef MTDMapDDDtoID_H
2 #define MTDMapDDDtoID_H
3 
5 
6 #include <map>
7 #include <vector>
8 #include <string>
9 
10 class DDExpandedView;
11 class DDFilteredView;
12 
14 public:
16  typedef std::map<nav_type, uint32_t> MapType;
17  typedef std::map<uint32_t, nav_type> RevMapType;
18 
19  MTDMapDDDtoID(const GeometricTimingDet* iDet);
21 
23  unsigned int id(const nav_type&) const;
24 
25  nav_type const& navType(uint32_t) const;
26 
27  std::vector<nav_type> const& allNavTypes() const;
28  void clear();
29 
30 private:
31  void buildAll(const GeometricTimingDet*);
32  void buildAllStep2(const GeometricTimingDet*);
33 
34  std::vector<nav_type> navVec;
35  MapType path2id_;
36  RevMapType revpath2id_;
37 };
38 
39 //typedef Singleton<MTDMapDDDtoID> TkMapDDDtoID;
40 
41 #endif
RevMapType revpath2id_
Definition: MTDMapDDDtoID.h:36
std::vector< nav_type > navVec
Definition: MTDMapDDDtoID.h:34
std::vector< nav_type > const & allNavTypes() const
MTDMapDDDtoID(const GeometricTimingDet *iDet)
Definition: MTDMapDDDtoID.cc:9
MapType path2id_
Definition: MTDMapDDDtoID.h:35
nav_type const & navType(uint32_t) const
std::map< uint32_t, nav_type > RevMapType
Definition: MTDMapDDDtoID.h:17
DDExpandedView::nav_type nav_type
void buildAllStep2(const GeometricTimingDet *)
GeometricTimingDet::nav_type nav_type
Definition: MTDMapDDDtoID.h:15
unsigned int id(const nav_type &) const
calculate the id of a given node
Provides an exploded view of the detector (tree-view)
void buildAll(const GeometricTimingDet *)
std::map< nav_type, uint32_t > MapType
Definition: MTDMapDDDtoID.h:16