CMS 3D CMS Logo

ScoutingTrack.h
Go to the documentation of this file.
1 #ifndef DataFormats_ScoutingTrack_h
2 #define DataFormats_ScoutingTrack_h
3 
4 #include <vector>
5 
6 //class for holding track information, for use in data scouting
8 {
9  public:
10  //constructor with values for all data fields
12  tk_pt_(tk_pt), tk_eta_(tk_eta), tk_phi_(tk_phi), tk_chi2_(tk_chi2), tk_ndof_(tk_ndof), tk_charge_(tk_charge), tk_dxy_(tk_dxy), tk_dz_(tk_dz), tk_nValidPixelHits_(tk_nValidPixelHits), tk_nTrackerLayersWithMeasurement_(tk_nTrackerLayersWithMeasurement), tk_nValidStripHits_(tk_nValidStripHits), tk_qoverp_(tk_qoverp), tk_lambda_(tk_lambda), tk_dxy_Error_(tk_dxy_Error), tk_dz_Error_(tk_dz_Error), tk_qoverp_Error_(tk_qoverp_Error), tk_lambda_Error_(tk_lambda_Error), tk_phi_Error_(tk_phi_Error), tk_dsz_(tk_dsz), tk_dsz_Error_(tk_dsz_Error) {}
13  //default constructor
15 
16  //accessor functions
17  float tk_pt() const { return tk_pt_; }
18  float tk_eta() const { return tk_eta_; }
19  float tk_phi() const { return tk_phi_; }
20  float tk_chi2() const { return tk_chi2_; }
21  float tk_ndof() const { return tk_ndof_; }
22  int tk_charge() const { return tk_charge_; }
23  float tk_dxy() const { return tk_dxy_; }
24  float tk_dz() const { return tk_dz_; }
25  int tk_nValidPixelHits() const { return tk_nValidPixelHits_; }
27  int tk_nValidStripHits() const { return tk_nValidStripHits_; }
28  float tk_qoverp() const { return tk_qoverp_; }
29  float tk_lambda() const { return tk_lambda_; }
30  float tk_dxy_Error() const { return tk_dxy_Error_; }
31  float tk_dz_Error() const { return tk_dz_Error_; }
32  float tk_qoverp_Error() const { return tk_qoverp_Error_; }
33  float tk_lambda_Error() const { return tk_lambda_Error_; }
34  float tk_phi_Error() const { return tk_phi_Error_; }
35  float tk_dsz() const { return tk_dsz_; }
36  float tk_dsz_Error() const { return tk_dsz_Error_; }
37 
38  private:
39  float tk_pt_;
40  float tk_eta_;
41  float tk_phi_;
42  float tk_chi2_;
43  float tk_ndof_;
45  float tk_dxy_;
46  float tk_dz_;
50  float tk_qoverp_;
51  float tk_lambda_;
53  float tk_dz_Error_;
57  float tk_dsz_;
59 };
60 
61 typedef std::vector<ScoutingTrack> ScoutingTrackCollection;
62 
63 #endif
float tk_lambda_Error() const
Definition: ScoutingTrack.h:33
int tk_nValidPixelHits_
Definition: ScoutingTrack.h:47
ScoutingTrack(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)
Definition: ScoutingTrack.h:11
float tk_pt() const
Definition: ScoutingTrack.h:17
float tk_dxy_Error_
Definition: ScoutingTrack.h:52
int tk_nTrackerLayersWithMeasurement() const
Definition: ScoutingTrack.h:26
float tk_chi2() const
Definition: ScoutingTrack.h:20
float tk_qoverp() const
Definition: ScoutingTrack.h:28
std::vector< ScoutingTrack > ScoutingTrackCollection
Definition: ScoutingTrack.h:61
float tk_qoverp_Error() const
Definition: ScoutingTrack.h:32
float tk_dxy_Error() const
Definition: ScoutingTrack.h:30
float tk_dz_Error_
Definition: ScoutingTrack.h:53
int tk_charge() const
Definition: ScoutingTrack.h:22
float tk_phi() const
Definition: ScoutingTrack.h:19
int tk_nValidStripHits_
Definition: ScoutingTrack.h:49
float tk_phi_Error() const
Definition: ScoutingTrack.h:34
float tk_lambda_Error_
Definition: ScoutingTrack.h:55
float tk_qoverp_Error_
Definition: ScoutingTrack.h:54
float tk_dsz() const
Definition: ScoutingTrack.h:35
float tk_dsz_Error_
Definition: ScoutingTrack.h:58
float tk_dsz_Error() const
Definition: ScoutingTrack.h:36
float tk_dz() const
Definition: ScoutingTrack.h:24
float tk_lambda() const
Definition: ScoutingTrack.h:29
float tk_dz_Error() const
Definition: ScoutingTrack.h:31
float tk_phi_Error_
Definition: ScoutingTrack.h:56
int tk_nValidPixelHits() const
Definition: ScoutingTrack.h:25
float tk_dxy() const
Definition: ScoutingTrack.h:23
float tk_ndof() const
Definition: ScoutingTrack.h:21
float tk_eta() const
Definition: ScoutingTrack.h:18
int tk_nTrackerLayersWithMeasurement_
Definition: ScoutingTrack.h:48
int tk_nValidStripHits() const
Definition: ScoutingTrack.h:27