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 
19 class CTPPSLocalTrackLite {
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
CTPPSLocalTrackLite
Local (=single RP) track with essential information only.
Definition: CTPPSLocalTrackLite.h:18
CTPPSpixelLocalTrackReconstructionInfo
CTPPSpixelLocalTrackReconstructionInfo
Definition: CTPPSPixelLocalTrackRecoInfo.h:17
CTPPSLocalTrackLite::rpId
uint32_t rpId() const
returns the RP id
Definition: CTPPSLocalTrackLite.h:71
CTPPSLocalTrackLite::xUnc
float xUnc() const
returns the horizontal track position uncertainty
Definition: CTPPSLocalTrackLite.h:77
CTPPSLocalTrackLite::tx_
float tx_
horizontal angle, x = x0 + tx*(z-z0)
Definition: CTPPSLocalTrackLite.h:130
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
multPhiCorr_741_25nsDY_cfi.py
py
Definition: multPhiCorr_741_25nsDY_cfi.py:12
CTPPSLocalTrackLite::time_
float time_
time information, ns
Definition: CTPPSLocalTrackLite.h:152
CTPPSLocalTrackLite::timeUnc
float timeUnc() const
returns the track time uncertainty
Definition: CTPPSLocalTrackLite.h:89
CTPPSpixelLocalTrackReconstructionInfo::invalid
CTPPSLocalTrackLite::tx_unc_
float tx_unc_
uncertainty on horizontal angle
Definition: CTPPSLocalTrackLite.h:132
CTPPSLocalTrackLite::pixel_track_reco_info_
CTPPSpixelLocalTrackReconstructionInfo pixel_track_reco_info_
Definition: CTPPSLocalTrackLite.h:146
CTPPSLocalTrackLite::ty_unc_
float ty_unc_
uncertainty on vertical angle
Definition: CTPPSLocalTrackLite.h:136
CTPPSLocalTrackLite::num_points_fit_
unsigned short num_points_fit_
number of points used for fit
Definition: CTPPSLocalTrackLite.h:149
CTPPSLocalTrackLite::x
float x() const
returns the horizontal track position
Definition: CTPPSLocalTrackLite.h:74
CTPPSLocalTrackLite::chiSquaredOverNDF
float chiSquaredOverNDF() const
returns the track fit chi Squared over NDF
Definition: CTPPSLocalTrackLite.h:104
CTPPSLocalTrackLite::tyUnc
float tyUnc() const
returns the track vertical angle uncertainty
Definition: CTPPSLocalTrackLite.h:101
CTPPSLocalTrackLite::time
float time() const
returns the track time
Definition: CTPPSLocalTrackLite.h:86
CTPPSLocalTrackLite::rp_id_
uint32_t rp_id_
RP id.
Definition: CTPPSLocalTrackLite.h:114
CTPPSPixelLocalTrackRecoInfo.h
CTPPSLocalTrackLite::y_unc_
float y_unc_
uncertainty on vertical hit position, mm
Definition: CTPPSLocalTrackLite.h:128
CTPPSLocalTrackLite::ty
float ty() const
returns the track vertical angle
Definition: CTPPSLocalTrackLite.h:98
CTPPSLocalTrackLite::tx
float tx() const
returns the track horizontal angle
Definition: CTPPSLocalTrackLite.h:92
CTPPSLocalTrackLite::x_
float x_
horizontal hit position, mm
Definition: CTPPSLocalTrackLite.h:122
CTPPSLocalTrackLite::pixelTrackRecoInfo
CTPPSpixelLocalTrackReconstructionInfo pixelTrackRecoInfo() const
returns the track reconstruction info byte
Definition: CTPPSLocalTrackLite.h:107
CTPPSLocalTrackLite::txUnc
float txUnc() const
returns the track horizontal angle uncertainty
Definition: CTPPSLocalTrackLite.h:95
CTPPSLocalTrackLite::chi2_norm_
float chi2_norm_
fit /NDF
Definition: CTPPSLocalTrackLite.h:138
multPhiCorr_741_25nsDY_cfi.px
px
Definition: multPhiCorr_741_25nsDY_cfi.py:10
CTPPSLocalTrackLite::y_
float y_
vertical hit position, mm
Definition: CTPPSLocalTrackLite.h:126
CTPPSLocalTrackLite::time_unc_
float time_unc_
uncertainty on time information, ns
Definition: CTPPSLocalTrackLite.h:154
CTPPSLocalTrackLite::y
float y() const
returns the vertical track position
Definition: CTPPSLocalTrackLite.h:80
CTPPSLocalTrackLite::numberOfPointsUsedForFit
unsigned short numberOfPointsUsedForFit() const
returns the number of points used for fit
Definition: CTPPSLocalTrackLite.h:110
CTPPSLocalTrackLite::ty_
float ty_
vertical angle, y = y0 + ty*(z-z0)
Definition: CTPPSLocalTrackLite.h:134
CTPPSLocalTrackLite::CTPPSLocalTrackLite
CTPPSLocalTrackLite()
Definition: CTPPSLocalTrackLite.h:25
CTPPSLocalTrackLite::yUnc
float yUnc() const
returns the vertical track position uncertainty
Definition: CTPPSLocalTrackLite.h:83
CTPPSLocalTrackLite::x_unc_
float x_unc_
uncertainty on horizontal hit position, mm
Definition: CTPPSLocalTrackLite.h:124