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 
12 #include <cstdint>
13 
18 {
19  public:
20  CTPPSLocalTrackLite() : rpId(0), x(0.), x_unc(-1.), y(0.), y_unc(-1.), time(0.), time_unc(-1.)
21  {
22  }
23 
24  CTPPSLocalTrackLite(uint32_t pid, float px, float pxu, float py, float pyu, float pt=0., float ptu=-1.)
25  : rpId(pid), x(px), x_unc(pxu), y(py), y_unc(pyu), time(pt), time_unc(ptu)
26  {
27  }
28 
30  uint32_t getRPId() const
31  {
32  return rpId;
33  }
34 
36  float getX() const
37  {
38  return x;
39  }
40 
42  float getXUnc() const
43  {
44  return x_unc;
45  }
46 
48  float getY() const
49  {
50  return y;
51  }
52 
54  float getYUnc() const
55  {
56  return y_unc;
57  }
58 
60  float getTime() const
61  {
62  return time;
63  }
64 
66  float getTimeUnc() const
67  {
68  return time_unc;
69  }
70 
71  protected:
73  uint32_t rpId;
74 
76  float x, x_unc;
77 
79  float y, y_unc;
80 
82  float time, time_unc;
83 };
84 
85 #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