CMS 3D CMS Logo

ScoutingMuon.h
Go to the documentation of this file.
1 #ifndef DataFormats_ScoutingMuon_h
2 #define DataFormats_ScoutingMuon_h
3 
4 #include <vector>
5 
6 // Class for holding muon information, for use in data scouting
7 // IMPORTANT: the content of this class should be changed only in backwards compatible ways!
8 class ScoutingMuon {
9 public:
10  //constructor with values for all data fields
12  float eta,
13  float phi,
14  float m,
15  float ecalIso,
16  float hcalIso,
17  float trackIso,
18  float chi2,
19  float ndof,
20  int charge,
21  float dxy,
22  float dz,
23  int nValidMuonHits,
24  int nValidPixelHits,
25  int nMatchedStations,
27  int type,
28  int nValidStripHits,
29  float trk_qoverp,
30  float trk_lambda,
31  float trk_pt,
32  float trk_phi,
33  float trk_eta,
34  float dxyError,
35  float dzError,
36  float trk_qoverpError,
37  float trk_lambdaError,
38  float trk_phiError,
39  float trk_dsz,
40  float trk_dszError,
41  std::vector<int> vtxIndx)
42  : pt_(pt),
43  eta_(eta),
44  phi_(phi),
45  m_(m),
49  chi2_(chi2),
50  ndof_(ndof),
51  charge_(charge),
52  dxy_(dxy),
53  dz_(dz),
58  type_(type),
62  trk_pt_(trk_pt),
72  vtxIndx_(std::move(vtxIndx)) {}
73  //default constructor
75  : pt_(0),
76  eta_(0),
77  phi_(0),
78  m_(0),
79  ecalIso_(0),
80  hcalIso_(0),
81  trackIso_(0),
82  chi2_(0),
83  ndof_(0),
84  charge_(0),
85  dxy_(0),
86  dz_(0),
87  nValidMuonHits_(0),
91  type_(0),
93  trk_qoverp_(0),
94  trk_lambda_(0),
95  trk_pt_(0),
96  trk_phi_(0),
97  trk_eta_(0),
98  dxyError_(0),
99  dzError_(0),
100  trk_qoverpError_(0),
101  trk_lambdaError_(0),
102  trk_phiError_(0),
103  trk_dsz_(0),
104  trk_dszError_(0),
105  vtxIndx_(0) {}
106 
107  //accessor functions
108  float pt() const { return pt_; }
109  float eta() const { return eta_; }
110  float phi() const { return phi_; }
111  float m() const { return m_; }
112  float ecalIso() const { return ecalIso_; }
113  float hcalIso() const { return hcalIso_; }
114  float trackIso() const { return trackIso_; }
115  float chi2() const { return chi2_; }
116  float ndof() const { return ndof_; }
117  int charge() const { return charge_; }
118  float dxy() const { return dxy_; }
119  float dz() const { return dz_; }
120  int nValidMuonHits() const { return nValidMuonHits_; }
121  int nValidPixelHits() const { return nValidPixelHits_; }
122  int nMatchedStations() const { return nMatchedStations_; }
124  int type() const { return type_; }
125  bool isGlobalMuon() const { return type_ & 1 << 1; }
126  bool isTrackerMuon() const { return type_ & 1 << 2; }
127  int nValidStripHits() const { return nValidStripHits_; }
128  float trk_qoverp() const { return trk_qoverp_; }
129  float trk_lambda() const { return trk_lambda_; }
130  float trk_pt() const { return trk_pt_; }
131  float trk_phi() const { return trk_phi_; }
132  float trk_eta() const { return trk_eta_; }
133  float dxyError() const { return dxyError_; }
134  float dzError() const { return dzError_; }
135  float trk_qoverpError() const { return trk_qoverpError_; }
136  float trk_lambdaError() const { return trk_lambdaError_; }
137  float trk_phiError() const { return trk_phiError_; }
138  float trk_dsz() const { return trk_dsz_; }
139  float trk_dszError() const { return trk_dszError_; }
140  std::vector<int> vtxIndx() const { return vtxIndx_; }
141 
142 private:
143  float pt_;
144  float eta_;
145  float phi_;
146  float m_;
147  float ecalIso_;
148  float hcalIso_;
149  float trackIso_;
150  float chi2_;
151  float ndof_;
152  int charge_;
153  float dxy_;
154  float dz_;
159  int type_;
161  float trk_qoverp_;
162  float trk_lambda_;
163  float trk_pt_;
164  float trk_phi_;
165  float trk_eta_;
166  float dxyError_;
167  float dzError_;
171  float trk_dsz_;
173  std::vector<int> vtxIndx_;
174 };
175 
176 typedef std::vector<ScoutingMuon> ScoutingMuonCollection;
177 
178 #endif
ScoutingMuon::trk_lambdaError_
float trk_lambdaError_
Definition: ScoutingMuon.h:169
ScoutingMuon::nTrackerLayersWithMeasurement_
int nTrackerLayersWithMeasurement_
Definition: ScoutingMuon.h:158
ScoutingMuon::trk_qoverpError_
float trk_qoverpError_
Definition: ScoutingMuon.h:168
ScoutingMuon::ecalIso_
float ecalIso_
Definition: ScoutingMuon.h:147
ScoutingMuon::dz
float dz() const
Definition: ScoutingMuon.h:119
ScoutingMuon::trk_lambda_
float trk_lambda_
Definition: ScoutingMuon.h:162
ScoutingMuon::eta_
float eta_
Definition: ScoutingMuon.h:144
ScoutingMuon::nValidMuonHits
int nValidMuonHits() const
Definition: ScoutingMuon.h:120
ScoutingMuon::ecalIso
float ecalIso() const
Definition: ScoutingMuon.h:112
ScoutingMuon::trk_qoverp
float trk_qoverp() const
Definition: ScoutingMuon.h:128
ScoutingMuonCollection
std::vector< ScoutingMuon > ScoutingMuonCollection
Definition: ScoutingMuon.h:176
ScoutingMuon::ScoutingMuon
ScoutingMuon()
Definition: ScoutingMuon.h:74
ScoutingMuon::dxy
float dxy() const
Definition: ScoutingMuon.h:118
ScoutingMuon::trk_phi_
float trk_phi_
Definition: ScoutingMuon.h:164
ScoutingMuon::vtxIndx
std::vector< int > vtxIndx() const
Definition: ScoutingMuon.h:140
ScoutingMuon::pt_
float pt_
Definition: ScoutingMuon.h:143
ScoutingMuon::m_
float m_
Definition: ScoutingMuon.h:146
ScoutingMuon::trk_phiError
float trk_phiError() const
Definition: ScoutingMuon.h:137
ScoutingMuon::eta
float eta() const
Definition: ScoutingMuon.h:109
ScoutingMuon::trk_pt
float trk_pt() const
Definition: ScoutingMuon.h:130
ScoutingMuon::isTrackerMuon
bool isTrackerMuon() const
Definition: ScoutingMuon.h:126
ScoutingMuon::trk_phiError_
float trk_phiError_
Definition: ScoutingMuon.h:170
ScoutingMuon::dxy_
float dxy_
Definition: ScoutingMuon.h:153
ScoutingMuon::dzError
float dzError() const
Definition: ScoutingMuon.h:134
ScoutingMuon::hcalIso
float hcalIso() const
Definition: ScoutingMuon.h:113
ScoutingMuon::trk_phi
float trk_phi() const
Definition: ScoutingMuon.h:131
ScoutingMuon::dxyError_
float dxyError_
Definition: ScoutingMuon.h:166
ScoutingMuon::dxyError
float dxyError() const
Definition: ScoutingMuon.h:133
ScoutingMuon::trk_dszError_
float trk_dszError_
Definition: ScoutingMuon.h:172
ScoutingMuon::chi2_
float chi2_
Definition: ScoutingMuon.h:150
ScoutingMuon::chi2
float chi2() const
Definition: ScoutingMuon.h:115
ScoutingMuon::phi_
float phi_
Definition: ScoutingMuon.h:145
ScoutingMuon::trk_dsz
float trk_dsz() const
Definition: ScoutingMuon.h:138
ScoutingMuon::dz_
float dz_
Definition: ScoutingMuon.h:154
ScoutingMuon::nMatchedStations_
int nMatchedStations_
Definition: ScoutingMuon.h:157
ScoutingMuon::trk_eta
float trk_eta() const
Definition: ScoutingMuon.h:132
ScoutingMuon::ScoutingMuon
ScoutingMuon(float pt, float eta, float phi, float m, float ecalIso, float hcalIso, float trackIso, float chi2, float ndof, int charge, float dxy, float dz, int nValidMuonHits, int nValidPixelHits, int nMatchedStations, int nTrackerLayersWithMeasurement, int type, int nValidStripHits, float trk_qoverp, float trk_lambda, float trk_pt, float trk_phi, float trk_eta, float dxyError, float dzError, float trk_qoverpError, float trk_lambdaError, float trk_phiError, float trk_dsz, float trk_dszError, std::vector< int > vtxIndx)
Definition: ScoutingMuon.h:11
ScoutingMuon::vtxIndx_
std::vector< int > vtxIndx_
Definition: ScoutingMuon.h:173
ScoutingMuon::ndof_
float ndof_
Definition: ScoutingMuon.h:151
ScoutingMuon::nValidPixelHits
int nValidPixelHits() const
Definition: ScoutingMuon.h:121
ScoutingMuon::trk_lambdaError
float trk_lambdaError() const
Definition: ScoutingMuon.h:136
ScoutingMuon::type
int type() const
Definition: ScoutingMuon.h:124
ScoutingMuon::nTrackerLayersWithMeasurement
int nTrackerLayersWithMeasurement() const
Definition: ScoutingMuon.h:123
ScoutingMuon::charge_
int charge_
Definition: ScoutingMuon.h:152
ScoutingMuon::type_
int type_
Definition: ScoutingMuon.h:159
ScoutingMuon::nMatchedStations
int nMatchedStations() const
Definition: ScoutingMuon.h:122
ScoutingMuon::pt
float pt() const
Definition: ScoutingMuon.h:108
type
type
Definition: HCALResponse.h:21
ScoutingMuon::trk_qoverp_
float trk_qoverp_
Definition: ScoutingMuon.h:161
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
ScoutingMuon::nValidStripHits
int nValidStripHits() const
Definition: ScoutingMuon.h:127
ScoutingMuon::trk_eta_
float trk_eta_
Definition: ScoutingMuon.h:165
ScoutingMuon::isGlobalMuon
bool isGlobalMuon() const
Definition: ScoutingMuon.h:125
ScoutingMuon::dzError_
float dzError_
Definition: ScoutingMuon.h:167
ScoutingMuon::trk_dszError
float trk_dszError() const
Definition: ScoutingMuon.h:139
ScoutingMuon::trk_dsz_
float trk_dsz_
Definition: ScoutingMuon.h:171
ScoutingMuon::nValidPixelHits_
int nValidPixelHits_
Definition: ScoutingMuon.h:156
ScoutingMuon::trk_lambda
float trk_lambda() const
Definition: ScoutingMuon.h:129
ScoutingMuon::trk_qoverpError
float trk_qoverpError() const
Definition: ScoutingMuon.h:135
ScoutingMuon::hcalIso_
float hcalIso_
Definition: ScoutingMuon.h:148
ScoutingMuon::nValidMuonHits_
int nValidMuonHits_
Definition: ScoutingMuon.h:155
ScoutingMuon::phi
float phi() const
Definition: ScoutingMuon.h:110
ScoutingMuon::trackIso_
float trackIso_
Definition: ScoutingMuon.h:149
ScoutingMuon::trk_pt_
float trk_pt_
Definition: ScoutingMuon.h:163
ScoutingMuon::nValidStripHits_
int nValidStripHits_
Definition: ScoutingMuon.h:160
ScoutingMuon::m
float m() const
Definition: ScoutingMuon.h:111
ScoutingMuon::charge
int charge() const
Definition: ScoutingMuon.h:117
ScoutingMuon::trackIso
float trackIso() const
Definition: ScoutingMuon.h:114
ScoutingMuon::ndof
float ndof() const
Definition: ScoutingMuon.h:116
ScoutingMuon
Definition: ScoutingMuon.h:8