CMS 3D CMS Logo

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),
51  tk_dxy_(tk_dxy),
52  tk_dz_(tk_dz),
63  tk_dsz_(tk_dsz),
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
Run3ScoutingTrack::Run3ScoutingTrack
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)
Definition: Run3ScoutingTrack.h:11
Run3ScoutingTrack::tk_qoverp_lambda_cov_
float tk_qoverp_lambda_cov_
Definition: Run3ScoutingTrack.h:174
Run3ScoutingTrack::tk_dxy_dsz_cov
float tk_dxy_dsz_cov() const
Definition: Run3ScoutingTrack.h:147
Run3ScoutingTrack::tk_vx
float tk_vx() const
Definition: Run3ScoutingTrack.h:149
Run3ScoutingTrack::tk_charge_
int tk_charge_
Definition: Run3ScoutingTrack.h:159
Run3ScoutingTrack::tk_lambda_dsz_cov
float tk_lambda_dsz_cov() const
Definition: Run3ScoutingTrack.h:144
Run3ScoutingTrack::tk_qoverp_dsz_cov_
float tk_qoverp_dsz_cov_
Definition: Run3ScoutingTrack.h:177
Run3ScoutingTrack::tk_ndof
float tk_ndof() const
Definition: Run3ScoutingTrack.h:121
Run3ScoutingTrack::tk_nValidPixelHits_
int tk_nValidPixelHits_
Definition: Run3ScoutingTrack.h:162
Run3ScoutingTrack::tk_qoverp_dxy_cov_
float tk_qoverp_dxy_cov_
Definition: Run3ScoutingTrack.h:176
Run3ScoutingTrack::Run3ScoutingTrack
Run3ScoutingTrack()
Definition: Run3ScoutingTrack.h:80
Run3ScoutingTrack::tk_vtxInd_
int tk_vtxInd_
Definition: Run3ScoutingTrack.h:184
Run3ScoutingTrack::tk_chi2
float tk_chi2() const
Definition: Run3ScoutingTrack.h:120
Run3ScoutingTrack::tk_vz
float tk_vz() const
Definition: Run3ScoutingTrack.h:151
Run3ScoutingTrack::tk_lambda
float tk_lambda() const
Definition: Run3ScoutingTrack.h:129
Run3ScoutingTrack::tk_phi
float tk_phi() const
Definition: Run3ScoutingTrack.h:119
Run3ScoutingTrack::tk_phi_dxy_cov
float tk_phi_dxy_cov() const
Definition: Run3ScoutingTrack.h:145
Run3ScoutingTrack::tk_lambda_dxy_cov_
float tk_lambda_dxy_cov_
Definition: Run3ScoutingTrack.h:179
Run3ScoutingTrack::tk_phi_dsz_cov
float tk_phi_dsz_cov() const
Definition: Run3ScoutingTrack.h:146
Run3ScoutingTrack::tk_qoverp_phi_cov
float tk_qoverp_phi_cov() const
Definition: Run3ScoutingTrack.h:139
Run3ScoutingTrack::tk_qoverp_phi_cov_
float tk_qoverp_phi_cov_
Definition: Run3ScoutingTrack.h:175
Run3ScoutingTrack::tk_dz_
float tk_dz_
Definition: Run3ScoutingTrack.h:161
Run3ScoutingTrack::tk_qoverp_Error_
float tk_qoverp_Error_
Definition: Run3ScoutingTrack.h:169
Run3ScoutingTrack::tk_phi_dxy_cov_
float tk_phi_dxy_cov_
Definition: Run3ScoutingTrack.h:181
Run3ScoutingTrack::tk_phi_
float tk_phi_
Definition: Run3ScoutingTrack.h:156
Run3ScoutingTrack::tk_phi_Error
float tk_phi_Error() const
Definition: Run3ScoutingTrack.h:134
Run3ScoutingTrack::tk_dz_Error
float tk_dz_Error() const
Definition: Run3ScoutingTrack.h:131
Run3ScoutingTrack::tk_lambda_Error
float tk_lambda_Error() const
Definition: Run3ScoutingTrack.h:133
Run3ScoutingTrackCollection
std::vector< Run3ScoutingTrack > Run3ScoutingTrackCollection
Definition: Run3ScoutingTrack.h:190
Run3ScoutingTrack::tk_dxy
float tk_dxy() const
Definition: Run3ScoutingTrack.h:123
Run3ScoutingTrack::tk_vy
float tk_vy() const
Definition: Run3ScoutingTrack.h:150
Run3ScoutingTrack::tk_chi2_
float tk_chi2_
Definition: Run3ScoutingTrack.h:157
Run3ScoutingTrack::tk_vx_
float tk_vx_
Definition: Run3ScoutingTrack.h:185
Run3ScoutingTrack::tk_qoverp_dsz_cov
float tk_qoverp_dsz_cov() const
Definition: Run3ScoutingTrack.h:141
Run3ScoutingTrack::tk_lambda_dxy_cov
float tk_lambda_dxy_cov() const
Definition: Run3ScoutingTrack.h:143
Run3ScoutingTrack::tk_eta_
float tk_eta_
Definition: Run3ScoutingTrack.h:155
Run3ScoutingTrack
Definition: Run3ScoutingTrack.h:8
Run3ScoutingTrack::tk_lambda_
float tk_lambda_
Definition: Run3ScoutingTrack.h:166
Run3ScoutingTrack::tk_dxy_Error_
float tk_dxy_Error_
Definition: Run3ScoutingTrack.h:167
Run3ScoutingTrack::tk_dsz
float tk_dsz() const
Definition: Run3ScoutingTrack.h:135
Run3ScoutingTrack::tk_dz_Error_
float tk_dz_Error_
Definition: Run3ScoutingTrack.h:168
Run3ScoutingTrack::tk_charge
int tk_charge() const
Definition: Run3ScoutingTrack.h:122
Run3ScoutingTrack::tk_qoverp_lambda_cov
float tk_qoverp_lambda_cov() const
Definition: Run3ScoutingTrack.h:138
Run3ScoutingTrack::tk_ndof_
float tk_ndof_
Definition: Run3ScoutingTrack.h:158
Run3ScoutingTrack::tk_qoverp
float tk_qoverp() const
Definition: Run3ScoutingTrack.h:128
Run3ScoutingTrack::tk_dxy_Error
float tk_dxy_Error() const
Definition: Run3ScoutingTrack.h:130
Run3ScoutingTrack::tk_qoverp_Error
float tk_qoverp_Error() const
Definition: Run3ScoutingTrack.h:132
Run3ScoutingTrack::tk_pt
float tk_pt() const
Definition: Run3ScoutingTrack.h:117
Run3ScoutingTrack::tk_qoverp_
float tk_qoverp_
Definition: Run3ScoutingTrack.h:165
Run3ScoutingTrack::tk_dsz_
float tk_dsz_
Definition: Run3ScoutingTrack.h:172
Run3ScoutingTrack::tk_lambda_dsz_cov_
float tk_lambda_dsz_cov_
Definition: Run3ScoutingTrack.h:180
Run3ScoutingTrack::tk_vy_
float tk_vy_
Definition: Run3ScoutingTrack.h:186
Run3ScoutingTrack::tk_pt_
float tk_pt_
Definition: Run3ScoutingTrack.h:154
Run3ScoutingTrack::tk_dsz_Error_
float tk_dsz_Error_
Definition: Run3ScoutingTrack.h:173
Run3ScoutingTrack::tk_lambda_Error_
float tk_lambda_Error_
Definition: Run3ScoutingTrack.h:170
Run3ScoutingTrack::tk_eta
float tk_eta() const
Definition: Run3ScoutingTrack.h:118
Run3ScoutingTrack::tk_dz
float tk_dz() const
Definition: Run3ScoutingTrack.h:124
Run3ScoutingTrack::tk_nTrackerLayersWithMeasurement_
int tk_nTrackerLayersWithMeasurement_
Definition: Run3ScoutingTrack.h:163
Run3ScoutingTrack::tk_phi_dsz_cov_
float tk_phi_dsz_cov_
Definition: Run3ScoutingTrack.h:182
Run3ScoutingTrack::tk_nValidStripHits_
int tk_nValidStripHits_
Definition: Run3ScoutingTrack.h:164
Run3ScoutingTrack::tk_vz_
float tk_vz_
Definition: Run3ScoutingTrack.h:187
Run3ScoutingTrack::tk_phi_Error_
float tk_phi_Error_
Definition: Run3ScoutingTrack.h:171
Run3ScoutingTrack::tk_dxy_
float tk_dxy_
Definition: Run3ScoutingTrack.h:160
Run3ScoutingTrack::tk_dsz_Error
float tk_dsz_Error() const
Definition: Run3ScoutingTrack.h:136
Run3ScoutingTrack::tk_nValidPixelHits
int tk_nValidPixelHits() const
Definition: Run3ScoutingTrack.h:125
Run3ScoutingTrack::tk_vtxInd
int tk_vtxInd() const
Definition: Run3ScoutingTrack.h:148
Run3ScoutingTrack::tk_qoverp_dxy_cov
float tk_qoverp_dxy_cov() const
Definition: Run3ScoutingTrack.h:140
Run3ScoutingTrack::tk_lambda_phi_cov
float tk_lambda_phi_cov() const
Definition: Run3ScoutingTrack.h:142
Run3ScoutingTrack::tk_lambda_phi_cov_
float tk_lambda_phi_cov_
Definition: Run3ScoutingTrack.h:178
Run3ScoutingTrack::tk_nValidStripHits
int tk_nValidStripHits() const
Definition: Run3ScoutingTrack.h:127
Run3ScoutingTrack::tk_dxy_dsz_cov_
float tk_dxy_dsz_cov_
Definition: Run3ScoutingTrack.h:183
Run3ScoutingTrack::tk_nTrackerLayersWithMeasurement
int tk_nTrackerLayersWithMeasurement() const
Definition: Run3ScoutingTrack.h:126