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 
11 class DDExpandedView;
12 class DDFilteredView;
13 
15  public:
16 
18  typedef std::map<nav_type,uint32_t> MapType;
19  typedef std::map<uint32_t,nav_type> RevMapType;
20 
21  MTDMapDDDtoID(const GeometricTimingDet* iDet);
23 
25  unsigned int id(const nav_type &) const;
26 
27  nav_type const & navType(uint32_t) const;
28 
29  std::vector<nav_type> const & allNavTypes() const;
30  void clear();
31  private:
32  void buildAll(const GeometricTimingDet*);
33  void buildAllStep2(const GeometricTimingDet*);
34 
35  std::vector<nav_type> navVec;
36  MapType path2id_;
37  RevMapType revpath2id_;
38 };
39 
40 //typedef Singleton<MTDMapDDDtoID> TkMapDDDtoID;
41 
42 #endif
RevMapType revpath2id_
Definition: MTDMapDDDtoID.h:37
std::vector< nav_type > navVec
Definition: MTDMapDDDtoID.h:35
std::map< nav_type, uint32_t > MapType
Definition: MTDMapDDDtoID.h:18
std::vector< nav_type > const & allNavTypes() const
MTDMapDDDtoID(const GeometricTimingDet *iDet)
Definition: MTDMapDDDtoID.cc:9
MapType path2id_
Definition: MTDMapDDDtoID.h:36
nav_type const & navType(uint32_t) const
DDExpandedView::nav_type nav_type
std::map< uint32_t, nav_type > RevMapType
Definition: MTDMapDDDtoID.h:19
void buildAllStep2(const GeometricTimingDet *)
GeometricTimingDet::nav_type nav_type
Definition: MTDMapDDDtoID.h:17
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 *)