CMS 3D CMS Logo

MuonSeedDetLayer.h
Go to the documentation of this file.
1 #ifndef TrackingTools_MuonSeedDetLayer_H
2 #define TrackingTools_MuonSeedDetLayer_H
3 
17 
18 // ---------------------
19 // -- Class Interface --
20 // ---------------------
21 
23 
24  public:
25 
29  int id,
31  theLayer(layer), thePoint(point), theID(id), theState(state) {}
32 
34  virtual ~MuonSeedDetLayer() {}
35 
37  const DetLayer* layer() const { return theLayer; }
38 
40  const GlobalPoint& point() const { return thePoint; }
41 
43  int id() const { return theID; }
44 
46  const TrajectoryStateOnSurface& state() const { return theState; }
47 
49  double radius() const { return sqrt(thePoint.x()*thePoint.x()+thePoint.y()*thePoint.y()); }
50 
52  double z() const { return thePoint.z(); }
53 
56  return first.radius() < second.radius();
57  }
58 
60  static bool getLowerR( const MuonSeedDetLayer first, const MuonSeedDetLayer second ) {
61  return first.radius() > second.radius();
62  }
63 
64  private:
65 
68  int theID;
70 };
71 #endif
72 
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:63
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:18
TrajectoryStateOnSurface theState
T z() const
Definition: PV3DBase.h:64
static bool getLowerR(const MuonSeedDetLayer first, const MuonSeedDetLayer second)
sort
static bool getHigherR(const MuonSeedDetLayer first, const MuonSeedDetLayer second)
sort
int id() const
return layer identifyer
double z() const
return z coordinate of impact point
T x() const
Definition: PV3DBase.h:62
const GlobalPoint & point() const
return impact point