CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonNavigationSchool.h
Go to the documentation of this file.
1 #ifndef Navigation_MuonNavigationSchool_H
2 #define Navigation_MuonNavigationSchool_H
3 
25 #include <vector>
26 #include <map>
27 
30 class MuonEtaRange;
31 class BarrelDetLayer;
32 class ForwardDetLayer;
33 
35 
36  public:
38  MuonNavigationSchool(const MuonDetLayerGeometry *, bool enableRPC = true);
42  virtual StateType navigableLayers() const;
43  private:
49  void linkBarrelLayers();
51  void linkEndcapLayers(const MapE&,std::vector<MuonForwardNavigableLayer*>&);
53  void createInverseLinks() const;
54  float calculateEta(const float&, const float& ) const;
55 
56  private:
57 
58  struct delete_layer
59  {
60  template <typename T>
61  void operator()(T*& p)
62  {
63  if( p)
64  {
65  delete p;
66  p = 0;
67  }
68  }
69  };
70 
74 
75  std::vector<MuonBarrelNavigableLayer*> theBarrelNLC;
76  std::vector<MuonForwardNavigableLayer*> theForwardNLC;
77  std::vector<MuonForwardNavigableLayer*> theBackwardNLC;
78 
80 
81 };
82 #endif
std::vector< MuonForwardNavigableLayer * > theForwardNLC
MapE theBackwardLayers
+z endcap
std::map< ForwardDetLayer *, MuonEtaRange, MuonDetLayerComp > MapE
MuonNavigationSchool(const MuonDetLayerGeometry *, bool enableRPC=true)
Constructor.
std::map< BarrelDetLayer *, MuonEtaRange, MuonDetLayerComp > MapB
void createInverseLinks() const
establish inward links
std::vector< MuonForwardNavigableLayer * > theBackwardNLC
float calculateEta(const float &, const float &) const
calculate pseudorapidity from r and z
std::vector< MuonBarrelNavigableLayer * > theBarrelNLC
-z endcap
void linkBarrelLayers()
link barrel layers
std::vector< NavigableLayer * > StateType
void linkEndcapLayers(const MapE &, std::vector< MuonForwardNavigableLayer * > &)
link endcap layers
~MuonNavigationSchool()
Destructor.
const MuonDetLayerGeometry * theMuonDetLayerGeometry
void addEndcapLayer(ForwardDetLayer *)
add endcap layer (backward and forward)
long double T
void addBarrelLayer(BarrelDetLayer *)
add barrel layer
virtual StateType navigableLayers() const
return navigable layers, from base class