CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonSeedDetLayer.h
Go to the documentation of this file.
1 #ifndef TrackingTools_MuonSeedDetLayer_H
2 #define TrackingTools_MuonSeedDetLayer_H
3 
16 #include <functional>
17 
21 
22 // ---------------------
23 // -- Class Interface --
24 // ---------------------
25 
27 
28  public:
29 
33  int id,
35  theLayer(layer), thePoint(point), theID(id), theState(state) {}
36 
38  virtual ~MuonSeedDetLayer() {}
39 
41  const DetLayer* layer() const { return theLayer; }
42 
44  const GlobalPoint& point() const { return thePoint; }
45 
47  int id() const { return theID; }
48 
50  const TrajectoryStateOnSurface& state() const { return theState; }
51 
53  double radius() const { return sqrt(thePoint.x()*thePoint.x()+thePoint.y()*thePoint.y()); }
54 
56  double z() const { return thePoint.z(); }
57 
59  class HigherR : std::binary_function< const MuonSeedDetLayer, const MuonSeedDetLayer, bool>
60 {
61  public :
63  return first.radius() < second.radius();
64  }
65  };
66 
68  class LowerR : std::binary_function< const MuonSeedDetLayer, const MuonSeedDetLayer, bool>
69 {
70  public :
72  return first.radius() > second.radius();
73  }
74  };
75 
76  private:
77 
80  int theID;
82 };
83 #endif
84 
const TrajectoryStateOnSurface & state() const
return trajectory state on layer
const DetLayer * theLayer
GlobalPoint thePoint
double radius() const
return radius of impact point
T y() const
Definition: PV3DBase.h:62
const DetLayer * layer() const
return layer
virtual ~MuonSeedDetLayer()
destructor
U second(std::pair< T, U > const &p)
MuonSeedDetLayer(const DetLayer *layer, GlobalPoint &point, int id, TrajectoryStateOnSurface &state)
constructor
T sqrt(T t)
Definition: SSEVec.h:46
TrajectoryStateOnSurface theState
T z() const
Definition: PV3DBase.h:63
bool first
Definition: L1TdeRCT.cc:94
bool operator()(const MuonSeedDetLayer first, const MuonSeedDetLayer second) const
bool operator()(const MuonSeedDetLayer first, const MuonSeedDetLayer second) const
int id() const
return layer identifyer
double z() const
return z coordinate of impact point
T x() const
Definition: PV3DBase.h:61
const GlobalPoint & point() const
return impact point