CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Run3ScoutingTrack.h
Go to the documentation of this file.
1 #ifndef DataFormats_Run3ScoutingTrack_h
2 #define DataFormats_Run3ScoutingTrack_h
3 
4 #include <vector>
5 
6 //class for holding track information, for use in data scouting
7 // IMPORTANT: the content of this class should be changed only in backwards compatible ways!
9 public:
10  //constructor with values for all data fields
12  float tk_eta,
13  float tk_phi,
14  float tk_chi2,
15  float tk_ndof,
16  int tk_charge,
17  float tk_dxy,
18  float tk_dz,
22  float tk_qoverp,
23  float tk_lambda,
24  float tk_dxy_Error,
25  float tk_dz_Error,
26  float tk_qoverp_Error,
27  float tk_lambda_Error,
28  float tk_phi_Error,
29  float tk_dsz,
30  float tk_dsz_Error,
32  float tk_qoverp_phi_cov,
33  float tk_qoverp_dxy_cov,
34  float tk_qoverp_dsz_cov,
35  float tk_lambda_phi_cov,
36  float tk_lambda_dxy_cov,
37  float tk_lambda_dsz_cov,
38  float tk_phi_dxy_cov,
39  float tk_phi_dsz_cov,
40  float tk_dxy_dsz_cov,
41  int tk_vtxInd,
42  float tk_vx,
43  float tk_vy,
44  float tk_vz)
45  : tk_pt_(tk_pt),
46  tk_eta_(tk_eta),
47  tk_phi_(tk_phi),
48  tk_chi2_(tk_chi2),
49  tk_ndof_(tk_ndof),
50  tk_charge_(tk_charge),
51  tk_dxy_(tk_dxy),
52  tk_dz_(tk_dz),
53  tk_nValidPixelHits_(tk_nValidPixelHits),
54  tk_nTrackerLayersWithMeasurement_(tk_nTrackerLayersWithMeasurement),
55  tk_nValidStripHits_(tk_nValidStripHits),
56  tk_qoverp_(tk_qoverp),
57  tk_lambda_(tk_lambda),
58  tk_dxy_Error_(tk_dxy_Error),
59  tk_dz_Error_(tk_dz_Error),
60  tk_qoverp_Error_(tk_qoverp_Error),
61  tk_lambda_Error_(tk_lambda_Error),
62  tk_phi_Error_(tk_phi_Error),
63  tk_dsz_(tk_dsz),
64  tk_dsz_Error_(tk_dsz_Error),
65  tk_qoverp_lambda_cov_(tk_qoverp_lambda_cov),
66  tk_qoverp_phi_cov_(tk_qoverp_phi_cov),
67  tk_qoverp_dxy_cov_(tk_qoverp_dxy_cov),
68  tk_qoverp_dsz_cov_(tk_qoverp_dsz_cov),
69  tk_lambda_phi_cov_(tk_lambda_phi_cov),
70  tk_lambda_dxy_cov_(tk_lambda_dxy_cov),
71  tk_lambda_dsz_cov_(tk_lambda_dsz_cov),
72  tk_phi_dxy_cov_(tk_phi_dxy_cov),
73  tk_phi_dsz_cov_(tk_phi_dsz_cov),
74  tk_dxy_dsz_cov_(tk_dxy_dsz_cov),
75  tk_vtxInd_(tk_vtxInd),
76  tk_vx_(tk_vx),
77  tk_vy_(tk_vy),
78  tk_vz_(tk_vz) {}
79  //default constructor
81  : tk_pt_(0),
82  tk_eta_(0),
83  tk_phi_(0),
84  tk_chi2_(0),
85  tk_ndof_(0),
86  tk_charge_(0),
87  tk_dxy_(0),
88  tk_dz_(0),
92  tk_qoverp_(0),
93  tk_lambda_(0),
94  tk_dxy_Error_(0),
95  tk_dz_Error_(0),
98  tk_phi_Error_(0),
99  tk_dsz_(0),
100  tk_dsz_Error_(0),
108  tk_phi_dxy_cov_(0),
109  tk_phi_dsz_cov_(0),
110  tk_dxy_dsz_cov_(0),
111  tk_vtxInd_(0),
112  tk_vx_(0),
113  tk_vy_(0),
114  tk_vz_(0) {}
115 
116  //accessor functions
117  float tk_pt() const { return tk_pt_; }
118  float tk_eta() const { return tk_eta_; }
119  float tk_phi() const { return tk_phi_; }
120  float tk_chi2() const { return tk_chi2_; }
121  float tk_ndof() const { return tk_ndof_; }
122  int tk_charge() const { return tk_charge_; }
123  float tk_dxy() const { return tk_dxy_; }
124  float tk_dz() const { return tk_dz_; }
125  int tk_nValidPixelHits() const { return tk_nValidPixelHits_; }
127  int tk_nValidStripHits() const { return tk_nValidStripHits_; }
128  float tk_qoverp() const { return tk_qoverp_; }
129  float tk_lambda() const { return tk_lambda_; }
130  float tk_dxy_Error() const { return tk_dxy_Error_; }
131  float tk_dz_Error() const { return tk_dz_Error_; }
132  float tk_qoverp_Error() const { return tk_qoverp_Error_; }
133  float tk_lambda_Error() const { return tk_lambda_Error_; }
134  float tk_phi_Error() const { return tk_phi_Error_; }
135  float tk_dsz() const { return tk_dsz_; }
136  float tk_dsz_Error() const { return tk_dsz_Error_; }
137  //add off-diagonal covariance matrix parameter, the above "Error" variables correspond to the diagonal, enum for Cov matrix (qoverp, lambda, phi, dxy, dsz), see https://github.com/cms-sw/cmssw/blob/CMSSW_11_2_X/DataFormats/TrackReco/src/TrackBase.cc for details
138  float tk_qoverp_lambda_cov() const { return tk_qoverp_lambda_cov_; }
139  float tk_qoverp_phi_cov() const { return tk_qoverp_phi_cov_; }
140  float tk_qoverp_dxy_cov() const { return tk_qoverp_dxy_cov_; }
141  float tk_qoverp_dsz_cov() const { return tk_qoverp_dsz_cov_; }
142  float tk_lambda_phi_cov() const { return tk_lambda_phi_cov_; }
143  float tk_lambda_dxy_cov() const { return tk_lambda_dxy_cov_; }
144  float tk_lambda_dsz_cov() const { return tk_lambda_dsz_cov_; }
145  float tk_phi_dxy_cov() const { return tk_phi_dxy_cov_; }
146  float tk_phi_dsz_cov() const { return tk_phi_dsz_cov_; }
147  float tk_dxy_dsz_cov() const { return tk_dxy_dsz_cov_; }
148  int tk_vtxInd() const { return tk_vtxInd_; }
149  float tk_vx() const { return tk_vx_; }
150  float tk_vy() const { return tk_vy_; }
151  float tk_vz() const { return tk_vz_; }
152 
153 private:
154  float tk_pt_;
155  float tk_eta_;
156  float tk_phi_;
157  float tk_chi2_;
158  float tk_ndof_;
160  float tk_dxy_;
161  float tk_dz_;
165  float tk_qoverp_;
166  float tk_lambda_;
172  float tk_dsz_;
185  float tk_vx_;
186  float tk_vy_;
187  float tk_vz_;
188 };
189 
190 typedef std::vector<Run3ScoutingTrack> Run3ScoutingTrackCollection;
191 
192 #endif
float tk_vy() const
float tk_pt() const
float tk_ndof() const
float tk_dz() const
float tk_dxy_dsz_cov() const
float tk_dxy() const
float tk_phi() const
float tk_dz_Error() const
float tk_phi_dxy_cov() const
float tk_phi_dsz_cov() const
float tk_dsz_Error() const
float tk_dsz() const
float tk_lambda_Error() const
float tk_lambda_phi_cov() const
float tk_qoverp() const
float tk_qoverp_phi_cov() const
float tk_lambda_dsz_cov() const
float tk_dxy_Error() const
float tk_lambda() const
float tk_phi_Error() const
int tk_vtxInd() const
int tk_nTrackerLayersWithMeasurement() const
std::vector< Run3ScoutingTrack > Run3ScoutingTrackCollection
float tk_vx() const
float tk_qoverp_dsz_cov() const
float tk_qoverp_dxy_cov() const
int tk_nValidStripHits() const
float tk_chi2() const
Run3ScoutingTrack(float tk_pt, float tk_eta, float tk_phi, float tk_chi2, float tk_ndof, int tk_charge, float tk_dxy, float tk_dz, int tk_nValidPixelHits, int tk_nTrackerLayersWithMeasurement, int tk_nValidStripHits, float tk_qoverp, float tk_lambda, float tk_dxy_Error, float tk_dz_Error, float tk_qoverp_Error, float tk_lambda_Error, float tk_phi_Error, float tk_dsz, float tk_dsz_Error, float tk_qoverp_lambda_cov, float tk_qoverp_phi_cov, float tk_qoverp_dxy_cov, float tk_qoverp_dsz_cov, float tk_lambda_phi_cov, float tk_lambda_dxy_cov, float tk_lambda_dsz_cov, float tk_phi_dxy_cov, float tk_phi_dsz_cov, float tk_dxy_dsz_cov, int tk_vtxInd, float tk_vx, float tk_vy, float tk_vz)
float tk_lambda_dxy_cov() const
float tk_vz() const
float tk_qoverp_lambda_cov() const
float tk_qoverp_Error() const
int tk_charge() const
int tk_nValidPixelHits() const
float tk_eta() const