CMS 3D CMS Logo

CTPPSLocalTrackLite.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of TOTEM offline software.
4 * Authors:
5 * Jan Kašpar (jan.kaspar@gmail.com)
6 *
7 ****************************************************************************/
8 
9 #ifndef DataFormats_CTPPSReco_CTPPSLocalTrackLite
10 #define DataFormats_CTPPSReco_CTPPSLocalTrackLite
11 
16 {
17  public:
18  CTPPSLocalTrackLite() : rpId(0), x(0.), x_unc(-1.), y(0.), y_unc(-1.), time(0.), time_unc(-1.)
19  {
20  }
21 
22  CTPPSLocalTrackLite(uint32_t pid, float px, float pxu, float py, float pyu, float pt=0., float ptu=-1.)
23  : rpId(pid), x(px), x_unc(pxu), y(py), y_unc(pyu), time(pt), time_unc(ptu)
24  {
25  }
26 
28  uint32_t getRPId() const
29  {
30  return rpId;
31  }
32 
34  float getX() const
35  {
36  return x;
37  }
38 
40  float getXUnc() const
41  {
42  return x_unc;
43  }
44 
46  float getY() const
47  {
48  return y;
49  }
50 
52  float getYUnc() const
53  {
54  return y_unc;
55  }
56 
58  float getTime() const
59  {
60  return time;
61  }
62 
64  float getTimeUnc() const
65  {
66  return time_unc;
67  }
68 
69  protected:
71  uint32_t rpId;
72 
74  float x, x_unc;
75 
77  float y, y_unc;
78 
80  float time, time_unc;
81 };
82 
83 #endif
float y
vertical hit position and uncertainty, mm
float getYUnc() const
returns the vertical track position uncertainty
float getXUnc() const
returns the horizontal track position uncertainty
float time
time information and uncertainty
float x
horizontal hit position and uncertainty, mm
Local (=single RP) track with essential information only.
float getX() const
returns the horizontal track position
uint32_t getRPId() const
returns the RP id
float getY() const
returns the vertical track position
float getTimeUnc() const
returns the track time uncertainty
CTPPSLocalTrackLite(uint32_t pid, float px, float pxu, float py, float pyu, float pt=0., float ptu=-1.)
float getTime() const
returns the track time