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 
15 
20 {
21  public:
22 
23  CTPPSLocalTrackLite() : rpId(0), x(0.), x_unc(-1.), y(0.), y_unc(-1.), tx(999.), tx_unc(-1.), ty(999.), ty_unc(-1.),
25  {
26  }
27 
28  CTPPSLocalTrackLite(uint32_t pid, float px, float pxu, float py, float pyu, float ptx, float ptxu,
29  float pty, float ptyu, float pchiSquaredOverNDF, CTPPSpixelLocalTrackReconstructionInfo ppixelTrack_reco_info,
30  unsigned short pNumberOfPointsUsedForFit, float pt, float ptu)
31  : rpId(pid), x(px), x_unc(pxu), y(py), y_unc(pyu), tx(ptx), tx_unc(ptxu), ty(pty), ty_unc(ptyu), chiSquaredOverNDF(pchiSquaredOverNDF),
32  pixelTrack_reco_info(ppixelTrack_reco_info), numberOfPointsUsedForFit(pNumberOfPointsUsedForFit), time(pt), time_unc(ptu)
33  {
34  }
35 
37  inline uint32_t getRPId() const
38  {
39  return rpId;
40  }
41 
43  inline float getX() const
44  {
45  return x;
46  }
47 
49  inline float getXUnc() const
50  {
51  return x_unc;
52  }
53 
55  inline float getY() const
56  {
57  return y;
58  }
59 
61  inline float getYUnc() const
62  {
63  return y_unc;
64  }
65 
67  inline float getTime() const
68  {
69  return time;
70  }
71 
73  inline float getTimeUnc() const
74  {
75  return time_unc;
76  }
77 
79  inline float getTx() const
80  {
81  return tx;
82  }
83 
85  inline float getTxUnc() const
86  {
87  return tx_unc;
88  }
89 
91  inline float getTy() const
92  {
93  return ty;
94  }
95 
97  inline float getTyUnc() const
98  {
99  return ty_unc;
100  }
101 
103  inline float getChiSquaredOverNDF() const
104  {
105  return chiSquaredOverNDF;
106  }
107 
110  {
111  return pixelTrack_reco_info;
112  }
113 
115  inline unsigned short getNumberOfPointsUsedForFit() const
116  {
118  }
119 
120  protected:
122  uint32_t rpId;
123 
128 
130  float x, x_unc;
131 
133  float y, y_unc;
134 
136  float tx, tx_unc;
137 
139  float ty, ty_unc;
140 
143 
151 
153  unsigned short numberOfPointsUsedForFit;
154 
156  float time, time_unc;
157 };
158 
159 #endif
float getTxUnc() const
returns the track horizontal angle uncertainty
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, ns
float x
horizontal hit position and uncertainty, mm
Local (=single RP) track with essential information only.
float getTx() const
returns the track horizontal angle
CTPPSpixelLocalTrackReconstructionInfo pixelTrack_reco_info
CTPPSpixelLocalTrackReconstructionInfo
CTPPSLocalTrackLite(uint32_t pid, float px, float pxu, float py, float pyu, float ptx, float ptxu, float pty, float ptyu, float pchiSquaredOverNDF, CTPPSpixelLocalTrackReconstructionInfo ppixelTrack_reco_info, unsigned short pNumberOfPointsUsedForFit, float pt, float ptu)
float getX() const
returns the horizontal track position
CTPPSpixelLocalTrackReconstructionInfo getPixelTrackRecoInfo() const
returns the track reconstruction info byte
uint32_t getRPId() const
returns the RP id
float getChiSquaredOverNDF() const
returns the track fit chi Squared over NDF
float tx
horizontal angle and uncertainty, x = x0 + tx*(z-z0)
unsigned short numberOfPointsUsedForFit
number of points used for fit
float getTyUnc() const
returns the track vertical angle uncertainty
float getY() const
returns the vertical track position
float getTimeUnc() const
returns the track time uncertainty
float chiSquaredOverNDF
fit chi^2 over NDF
unsigned short getNumberOfPointsUsedForFit() const
returns the number of points used for fit
float getTy() const
returns the track vertical angle
float ty
vertical angle and uncertainty, y = y0 + ty*(z-z0)
float getTime() const
returns the track time