CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
22  : rp_id_(0),
23  x_(0.),
24  x_unc_(-1.),
25  y_(0.),
26  y_unc_(-1.),
27  tx_(999.),
28  tx_unc_(-1.),
29  ty_(999.),
30  ty_unc_(-1.),
31  chi2_norm_(-1.),
33  num_points_fit_(0),
34  time_(0.),
35  time_unc_(-1.) {}
36 
37  CTPPSLocalTrackLite(uint32_t pid,
38  float px,
39  float pxu,
40  float py,
41  float pyu,
42  float ptx,
43  float ptxu,
44  float pty,
45  float ptyu,
46  float pchiSquaredOverNDF,
47  CTPPSpixelLocalTrackReconstructionInfo ppixelTrack_reco_info,
48  unsigned short pNumberOfPointsUsedForFit,
49  float pt,
50  float ptu)
51  : rp_id_(pid),
52  x_(px),
53  x_unc_(pxu),
54  y_(py),
55  y_unc_(pyu),
56  tx_(ptx),
57  tx_unc_(ptxu),
58  ty_(pty),
59  ty_unc_(ptyu),
60  chi2_norm_(pchiSquaredOverNDF),
61  pixel_track_reco_info_(ppixelTrack_reco_info),
62  num_points_fit_(pNumberOfPointsUsedForFit),
63  time_(pt),
64  time_unc_(ptu) {}
65 
67  inline uint32_t rpId() const { return rp_id_; }
68 
70  inline float x() const { return x_; }
71 
73  inline float xUnc() const { return x_unc_; }
74 
76  inline float y() const { return y_; }
77 
79  inline float yUnc() const { return y_unc_; }
80 
82  inline float time() const { return time_; }
83 
85  inline float timeUnc() const { return time_unc_; }
86 
88  inline float tx() const { return tx_; }
89 
91  inline float txUnc() const { return tx_unc_; }
92 
94  inline float ty() const { return ty_; }
95 
97  inline float tyUnc() const { return ty_unc_; }
98 
100  inline float chiSquaredOverNDF() const { return chi2_norm_; }
101 
104 
106  inline unsigned short numberOfPointsUsedForFit() const { return num_points_fit_; }
107 
108 protected:
110  uint32_t rp_id_;
111 
116 
118  float x_;
120  float x_unc_;
122  float y_;
124  float y_unc_;
126  float tx_;
128  float tx_unc_;
130  float ty_;
132  float ty_unc_;
134  float chi2_norm_;
135 
143 
145  unsigned short num_points_fit_;
146 
148  float time_;
150  float time_unc_;
151 };
152 
153 #endif
float tx_unc_
uncertainty on horizontal angle
float ty_unc_
uncertainty on vertical angle
float ty_
vertical angle, y = y0 + ty*(z-z0)
Local (=single RP) track with essential information only.
float time_unc_
uncertainty on time information, ns
float timeUnc() const
returns the track time uncertainty
float tx() const
returns the track horizontal angle
float yUnc() const
returns the vertical track position uncertainty
float time_
time information, ns
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 x_
horizontal hit position, mm
float chiSquaredOverNDF() const
returns the track fit chi Squared over NDF
unsigned short num_points_fit_
number of points used for fit
uint32_t rpId() const
returns the RP id
CTPPSpixelLocalTrackReconstructionInfo pixel_track_reco_info_
float tx_
horizontal angle, x = x0 + tx*(z-z0)
float tyUnc() const
returns the track vertical angle uncertainty
CTPPSpixelLocalTrackReconstructionInfo pixelTrackRecoInfo() const
returns the track reconstruction info byte
float y_unc_
uncertainty on vertical hit position, mm
float txUnc() const
returns the track horizontal angle uncertainty
float ty() const
returns the track vertical angle
float y_
vertical hit position, mm
float x_unc_
uncertainty on horizontal hit position, mm
float time() const
returns the track time
float y() const
returns the vertical track position
unsigned short numberOfPointsUsedForFit() const
returns the number of points used for fit
float xUnc() const
returns the horizontal track position uncertainty
float x() const
returns the horizontal track position