CMS 3D CMS Logo

CTPPSFastTrack.h
Go to the documentation of this file.
1 #ifndef FastSimDataFormats_CTPPSFastSim_CTPPSFastTrack_H
2 #define FastSimDataFormats_CTPPSFastSim_CTPPSFastTrack_H
3 
7 
8 #include <vector>
10 public:
13  // ~CTPPSFastTrack() {}
15  : thet(0.),
16  thexi(0.),
17  thecellid(0),
18  thetof(0.),
19  thex1(0.),
20  they1(0.),
21  thex2(0.),
22  they2(0.),
23  momentum_(0, 0, 0),
24  vertex_(0, 0, 0) {}
25  // constructor
27  float xi,
28  unsigned int cellid,
29  float tof,
30  float x1,
31  float y1,
32  float x2,
33  float y2,
34  const Vector &momentum,
35  const Point &vertex)
36  : thet(t),
37  thexi(xi),
39  thetof(tof),
40  thex1(x1),
41  they1(y1),
42  thex2(x2),
43  they2(y2),
45  vertex_(vertex) {}
46 
48  //
50  const Vector &momentum() const;
52  const Point &referencePoint() const;
53  // reference point on the track. This method is DEPRECATED, please use referencePoint() instead
54  const Point &vertex() const;
55  /* Time of flight in nanoseconds from the primary interaction
56  * to the entry point. Always positive in a PSimHit,
57  * but may become negative in a SimHit due to bunch assignment.
58  */
59  float timeOfFlight() const { return tof(); }
60 
61  float t() const { return thet; }
62 
63  float xi() const { return thexi; }
64 
65  float tof() const { return thetof; }
66 
67  float x1() const { return thex1; }
68 
69  float y1() const { return they1; }
70 
71  float x2() const { return thex2; }
72 
73  float y2() const { return they2; }
74  float px() const { return momentum_.x(); }
75  float py() const { return momentum_.Y(); }
76  float pz() const { return momentum_.Z(); }
77  float x0() const { return vertex_.x(); }
78  float y0() const { return vertex_.Y(); }
79  float z0() const { return vertex_.Z(); }
80 
81  unsigned int cellid() const { return thecellid; }
82 
83  void setp(const Vector &momentum) { momentum_ = momentum; }
84 
85  void setvertex(const Point &vertex) { vertex_ = vertex; }
86 
87  void settof(float tof) { thetof = tof; }
88 
89  void sett(float t) { thet = t; }
90 
91  void setxi(float xi) { thexi = xi; }
92 
93  void setx1(float x1) { thex1 = x1; }
94 
95  void sety1(float y1) { they1 = y1; }
96 
97  void setx2(float x2) { thex2 = x2; }
98 
99  void sety2(float y2) { they2 = y2; }
100 
101  void setcellid(unsigned int cellid) { thecellid = cellid; }
102 
103 private:
104  float thet;
105  float thexi;
106  unsigned int thecellid;
107  float thetof;
108  float thex1;
109  float they1;
110  float thex2;
111  float they2;
114 };
115 
116 #endif //CTPPSFastTrack_H
CTPPSFastTrack::pz
float pz() const
Definition: CTPPSFastTrack.h:76
CTPPSFastTrack::CTPPSFastTrack
CTPPSFastTrack(float t, float xi, unsigned int cellid, float tof, float x1, float y1, float x2, float y2, const Vector &momentum, const Point &vertex)
Definition: CTPPSFastTrack.h:26
CTPPSFastTrack::xi
float xi() const
Definition: CTPPSFastTrack.h:63
CTPPSFastTrack::tof
float tof() const
Definition: CTPPSFastTrack.h:65
CTPPSFastTrack::setx1
void setx1(float x1)
Definition: CTPPSFastTrack.h:93
Vector.h
CTPPSFastTrack::thex2
float thex2
Definition: CTPPSFastTrack.h:110
CTPPSFastTrack::x2
float x2() const
Definition: CTPPSFastTrack.h:71
CTPPSFastTrack::py
float py() const
Definition: CTPPSFastTrack.h:75
CTPPSFastTrack::setvertex
void setvertex(const Point &vertex)
Definition: CTPPSFastTrack.h:85
CTPPSFastTrack::thex1
float thex1
Definition: CTPPSFastTrack.h:108
CTPPSFastTrack::setp
void setp(const Vector &momentum)
Definition: CTPPSFastTrack.h:83
CTPPSFastTrack::sety2
void sety2(float y2)
Definition: CTPPSFastTrack.h:99
CTPPSFastTrack
Definition: CTPPSFastTrack.h:9
CTPPSFastTrack::setx2
void setx2(float x2)
Definition: CTPPSFastTrack.h:97
CTPPSFastTrack::px
float px() const
Definition: CTPPSFastTrack.h:74
CTPPSFastTrack::momentum
const Vector & momentum() const
track momentum vector
Vector
ROOT::Math::Plane3D::Vector Vector
Definition: EcalHitMaker.cc:29
CTPPSFastTrack::setxi
void setxi(float xi)
Definition: CTPPSFastTrack.h:91
CTPPSFastTrack::thexi
float thexi
Definition: CTPPSFastTrack.h:105
CTPPSFastTrack::momentum_
Vector momentum_
Definition: CTPPSFastTrack.h:112
CTPPSFastTrack::y1
float y1() const
Definition: CTPPSFastTrack.h:69
CTPPSFastTrack::thet
float thet
Definition: CTPPSFastTrack.h:104
CTPPSFastTrack::CTPPSFastTrack
CTPPSFastTrack()
Definition: CTPPSFastTrack.h:14
CTPPSFastTrack::t
float t() const
Definition: CTPPSFastTrack.h:61
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
CTPPSFastTrack::Vector
math::XYZVector Vector
Definition: CTPPSFastTrack.h:11
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
CTPPSFastTrack::vertex
const Point & vertex() const
CTPPSFastTrack::z0
float z0() const
Definition: CTPPSFastTrack.h:79
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
CTPPSFastTrack::settof
void settof(float tof)
Definition: CTPPSFastTrack.h:87
CTPPSFastTrack::sety1
void sety1(float y1)
Definition: CTPPSFastTrack.h:95
CTPPSFastTrack::referencePoint
const Point & referencePoint() const
Reference point on the track.
CTPPSFastTrack::thetof
float thetof
Definition: CTPPSFastTrack.h:107
CTPPSFastTrack::timeOfFlight
float timeOfFlight() const
Definition: CTPPSFastTrack.h:59
CTPPSFastTrack::sett
void sett(float t)
Definition: CTPPSFastTrack.h:89
CTPPSFastTrack::Point
math::XYZPoint Point
Definition: CTPPSFastTrack.h:12
CTPPSFastTrack::thecellid
unsigned int thecellid
Definition: CTPPSFastTrack.h:106
CTPPSFastTrack::cellid
unsigned int cellid() const
Definition: CTPPSFastTrack.h:81
CTPPSFastTrack::y0
float y0() const
Definition: CTPPSFastTrack.h:78
CTPPSFastTrack::they2
float they2
Definition: CTPPSFastTrack.h:111
Point3D.h
CTPPSFastTrack::setcellid
void setcellid(unsigned int cellid)
Definition: CTPPSFastTrack.h:101
CTPPSFastTrack::vertex_
Point vertex_
Definition: CTPPSFastTrack.h:113
CTPPSFastTrack::y2
float y2() const
Definition: CTPPSFastTrack.h:73
CTPPSFastTrack::they1
float they1
Definition: CTPPSFastTrack.h:109
Vector3D.h
CTPPSFastTrack::x1
float x1() const
Definition: CTPPSFastTrack.h:67
CTPPSFastTrack::x0
float x0() const
Definition: CTPPSFastTrack.h:77