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,
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 
TrajectoryStateOnSurface.h
MuonSeedDetLayer::id
int id() const
return layer identifyer
Definition: MuonSeedDetLayer.h:43
MuonSeedDetLayer::point
const GlobalPoint & point() const
return impact point
Definition: MuonSeedDetLayer.h:40
MuonSeedDetLayer::theID
int theID
Definition: MuonSeedDetLayer.h:68
DetLayer
Definition: DetLayer.h:21
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
dqmdumpme.first
first
Definition: dqmdumpme.py:55
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
MuonSeedDetLayer
Definition: MuonSeedDetLayer.h:22
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
Point3DBase< float, GlobalTag >
MuonSeedDetLayer::z
double z() const
return z coordinate of impact point
Definition: MuonSeedDetLayer.h:52
MuonSeedDetLayer::thePoint
GlobalPoint thePoint
Definition: MuonSeedDetLayer.h:67
MuonSeedDetLayer::theLayer
const DetLayer * theLayer
Definition: MuonSeedDetLayer.h:66
MuonSeedDetLayer::~MuonSeedDetLayer
virtual ~MuonSeedDetLayer()
destructor
Definition: MuonSeedDetLayer.h:34
MuonSeedDetLayer::getHigherR
static bool getHigherR(const MuonSeedDetLayer first, const MuonSeedDetLayer second)
sort
Definition: MuonSeedDetLayer.h:55
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
MuonSeedDetLayer::layer
const DetLayer * layer() const
return layer
Definition: MuonSeedDetLayer.h:37
MuonSeedDetLayer::theState
TrajectoryStateOnSurface theState
Definition: MuonSeedDetLayer.h:69
DetLayer.h
MuonSeedDetLayer::MuonSeedDetLayer
MuonSeedDetLayer(const DetLayer *layer, GlobalPoint &point, int id, TrajectoryStateOnSurface &state)
constructor
Definition: MuonSeedDetLayer.h:27
MuonSeedDetLayer::radius
double radius() const
return radius of impact point
Definition: MuonSeedDetLayer.h:49
MuonSeedDetLayer::getLowerR
static bool getLowerR(const MuonSeedDetLayer first, const MuonSeedDetLayer second)
sort
Definition: MuonSeedDetLayer.h:60
GlobalPoint.h
MuonSeedDetLayer::state
const TrajectoryStateOnSurface & state() const
return trajectory state on layer
Definition: MuonSeedDetLayer.h:46