test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackerMapDDDtoID.h
Go to the documentation of this file.
1 #ifndef TrackerMapDDDtoID_H
2 #define TrackerMapDDDtoID_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  TrackerMapDDDtoID(const GeometricDet* iDet);
23 
24  /*
25  unsigned int id(const DDExpandedView &) const;
27  unsigned int id(const DDFilteredView &) const;
28  */
29 
31  unsigned int id(const nav_type &) const;
32 
33  nav_type const & navType(uint32_t) const;
34 
35  std::vector<nav_type> const & allNavTypes() const;
36  void clear();
37  private:
38  void buildAll(const GeometricDet*);
39  void buildAllStep2(const GeometricDet*);
40 
41  std::vector<nav_type> navVec;
44 };
45 
46 //typedef Singleton<TrackerMapDDDtoID> TkMapDDDtoID;
47 
48 #endif
unsigned int id(const nav_type &) const
calculate the id of a given node
std::map< uint32_t, nav_type > RevMapType
void buildAllStep2(const GeometricDet *)
TrackerMapDDDtoID(const GeometricDet *iDet)
GeometricDet::nav_type nav_type
void buildAll(const GeometricDet *)
std::vector< nav_type > navVec
std::map< nav_type, uint32_t > MapType
nav_type const & navType(uint32_t) const
DDExpandedView::nav_type nav_type
Definition: GeometricDet.h:44
Provides an exploded view of the detector (tree-view)
std::vector< nav_type > const & allNavTypes() const