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
ScoutingTrack::tk_nValidStripHits_
int tk_nValidStripHits_
Definition: ScoutingTrack.h:106
ScoutingTrack::tk_ndof_
float tk_ndof_
Definition: ScoutingTrack.h:100
ScoutingTrack::tk_qoverp_Error
float tk_qoverp_Error() const
Definition: ScoutingTrack.h:89
ScoutingTrack::tk_chi2_
float tk_chi2_
Definition: ScoutingTrack.h:99
ScoutingTrack::tk_ndof
float tk_ndof() const
Definition: ScoutingTrack.h:78
ScoutingTrack::ScoutingTrack
ScoutingTrack()
Definition: ScoutingTrack.h:51
ScoutingTrack::tk_lambda_Error_
float tk_lambda_Error_
Definition: ScoutingTrack.h:112
ScoutingTrackCollection
std::vector< ScoutingTrack > ScoutingTrackCollection
Definition: ScoutingTrack.h:118
ScoutingTrack::tk_qoverp
float tk_qoverp() const
Definition: ScoutingTrack.h:85
ScoutingTrack::tk_lambda
float tk_lambda() const
Definition: ScoutingTrack.h:86
ScoutingTrack::tk_qoverp_Error_
float tk_qoverp_Error_
Definition: ScoutingTrack.h:111
ScoutingTrack::tk_qoverp_
float tk_qoverp_
Definition: ScoutingTrack.h:107
ScoutingTrack::tk_eta
float tk_eta() const
Definition: ScoutingTrack.h:75
ScoutingTrack::tk_dxy_Error
float tk_dxy_Error() const
Definition: ScoutingTrack.h:87
ScoutingTrack::tk_lambda_Error
float tk_lambda_Error() const
Definition: ScoutingTrack.h:90
ScoutingTrack::tk_chi2
float tk_chi2() const
Definition: ScoutingTrack.h:77
ScoutingTrack::ScoutingTrack
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
ScoutingTrack::tk_phi
float tk_phi() const
Definition: ScoutingTrack.h:76
ScoutingTrack::tk_dsz
float tk_dsz() const
Definition: ScoutingTrack.h:92
ScoutingTrack::tk_dsz_
float tk_dsz_
Definition: ScoutingTrack.h:114
ScoutingTrack::tk_phi_
float tk_phi_
Definition: ScoutingTrack.h:98
ScoutingTrack::tk_nValidStripHits
int tk_nValidStripHits() const
Definition: ScoutingTrack.h:84
ScoutingTrack::tk_dxy_Error_
float tk_dxy_Error_
Definition: ScoutingTrack.h:109
ScoutingTrack
Definition: ScoutingTrack.h:7
ScoutingTrack::tk_dxy_
float tk_dxy_
Definition: ScoutingTrack.h:102
ScoutingTrack::tk_eta_
float tk_eta_
Definition: ScoutingTrack.h:97
ScoutingTrack::tk_dxy
float tk_dxy() const
Definition: ScoutingTrack.h:80
ScoutingTrack::tk_dz
float tk_dz() const
Definition: ScoutingTrack.h:81
ScoutingTrack::tk_nValidPixelHits
int tk_nValidPixelHits() const
Definition: ScoutingTrack.h:82
ScoutingTrack::tk_phi_Error_
float tk_phi_Error_
Definition: ScoutingTrack.h:113
ScoutingTrack::tk_pt_
float tk_pt_
Definition: ScoutingTrack.h:96
ScoutingTrack::tk_dz_Error_
float tk_dz_Error_
Definition: ScoutingTrack.h:110
ScoutingTrack::tk_nTrackerLayersWithMeasurement
int tk_nTrackerLayersWithMeasurement() const
Definition: ScoutingTrack.h:83
ScoutingTrack::tk_dz_
float tk_dz_
Definition: ScoutingTrack.h:103
ScoutingTrack::tk_phi_Error
float tk_phi_Error() const
Definition: ScoutingTrack.h:91
ScoutingTrack::tk_dsz_Error_
float tk_dsz_Error_
Definition: ScoutingTrack.h:115
ScoutingTrack::tk_charge
int tk_charge() const
Definition: ScoutingTrack.h:79
ScoutingTrack::tk_dz_Error
float tk_dz_Error() const
Definition: ScoutingTrack.h:88
ScoutingTrack::tk_lambda_
float tk_lambda_
Definition: ScoutingTrack.h:108
ScoutingTrack::tk_dsz_Error
float tk_dsz_Error() const
Definition: ScoutingTrack.h:93
ScoutingTrack::tk_pt
float tk_pt() const
Definition: ScoutingTrack.h:74
ScoutingTrack::tk_nTrackerLayersWithMeasurement_
int tk_nTrackerLayersWithMeasurement_
Definition: ScoutingTrack.h:105
ScoutingTrack::tk_nValidPixelHits_
int tk_nValidPixelHits_
Definition: ScoutingTrack.h:104
ScoutingTrack::tk_charge_
int tk_charge_
Definition: ScoutingTrack.h:101