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
7 class ScoutingTrack {
8 public:
9  //constructor with values for all data fields
11  float tk_eta,
12  float tk_phi,
13  float tk_chi2,
14  float tk_ndof,
15  int tk_charge,
16  float tk_dxy,
17  float tk_dz,
21  float tk_qoverp,
22  float tk_lambda,
23  float tk_dxy_Error,
24  float tk_dz_Error,
25  float tk_qoverp_Error,
26  float tk_lambda_Error,
27  float tk_phi_Error,
28  float tk_dsz,
29  float tk_dsz_Error)
30  : tk_pt_(tk_pt),
31  tk_eta_(tk_eta),
32  tk_phi_(tk_phi),
36  tk_dxy_(tk_dxy),
37  tk_dz_(tk_dz),
48  tk_dsz_(tk_dsz),
50  //default constructor
52  : tk_pt_(0),
53  tk_eta_(0),
54  tk_phi_(0),
55  tk_chi2_(0),
56  tk_ndof_(0),
57  tk_charge_(0),
58  tk_dxy_(0),
59  tk_dz_(0),
63  tk_qoverp_(0),
64  tk_lambda_(0),
65  tk_dxy_Error_(0),
66  tk_dz_Error_(0),
69  tk_phi_Error_(0),
70  tk_dsz_(0),
71  tk_dsz_Error_(0) {}
72 
73  //accessor functions
74  float tk_pt() const { return tk_pt_; }
75  float tk_eta() const { return tk_eta_; }
76  float tk_phi() const { return tk_phi_; }
77  float tk_chi2() const { return tk_chi2_; }
78  float tk_ndof() const { return tk_ndof_; }
79  int tk_charge() const { return tk_charge_; }
80  float tk_dxy() const { return tk_dxy_; }
81  float tk_dz() const { return tk_dz_; }
82  int tk_nValidPixelHits() const { return tk_nValidPixelHits_; }
84  int tk_nValidStripHits() const { return tk_nValidStripHits_; }
85  float tk_qoverp() const { return tk_qoverp_; }
86  float tk_lambda() const { return tk_lambda_; }
87  float tk_dxy_Error() const { return tk_dxy_Error_; }
88  float tk_dz_Error() const { return tk_dz_Error_; }
89  float tk_qoverp_Error() const { return tk_qoverp_Error_; }
90  float tk_lambda_Error() const { return tk_lambda_Error_; }
91  float tk_phi_Error() const { return tk_phi_Error_; }
92  float tk_dsz() const { return tk_dsz_; }
93  float tk_dsz_Error() const { return tk_dsz_Error_; }
94 
95 private:
96  float tk_pt_;
97  float tk_eta_;
98  float tk_phi_;
99  float tk_chi2_;
100  float tk_ndof_;
102  float tk_dxy_;
103  float tk_dz_;
107  float tk_qoverp_;
108  float tk_lambda_;
114  float tk_dsz_;
116 };
117 
118 typedef std::vector<ScoutingTrack> ScoutingTrackCollection;
119 
120 #endif
float tk_lambda_Error() const
Definition: ScoutingTrack.h:90
float tk_dsz() const
Definition: ScoutingTrack.h:92
float tk_qoverp() const
Definition: ScoutingTrack.h:85
float tk_dz() const
Definition: ScoutingTrack.h:81
int tk_nTrackerLayersWithMeasurement() const
Definition: ScoutingTrack.h:83
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:10
float tk_dz_Error() const
Definition: ScoutingTrack.h:88
float tk_pt() const
Definition: ScoutingTrack.h:74
float tk_dxy() const
Definition: ScoutingTrack.h:80
std::vector< ScoutingTrack > ScoutingTrackCollection
float tk_phi_Error() const
Definition: ScoutingTrack.h:91
float tk_dxy_Error() const
Definition: ScoutingTrack.h:87
float tk_dsz_Error() const
Definition: ScoutingTrack.h:93
float tk_phi() const
Definition: ScoutingTrack.h:76
float tk_lambda_Error_
float tk_qoverp_Error_
float tk_qoverp_Error() const
Definition: ScoutingTrack.h:89
float tk_chi2() const
Definition: ScoutingTrack.h:77
float tk_ndof() const
Definition: ScoutingTrack.h:78
int tk_nValidStripHits() const
Definition: ScoutingTrack.h:84
float tk_lambda() const
Definition: ScoutingTrack.h:86
float tk_eta() const
Definition: ScoutingTrack.h:75
int tk_charge() const
Definition: ScoutingTrack.h:79
int tk_nTrackerLayersWithMeasurement_
int tk_nValidPixelHits() const
Definition: ScoutingTrack.h:82