CMS 3D CMS Logo

Run3ScoutingMuon.h
Go to the documentation of this file.
1 #ifndef DataFormats_Scouting_Run3ScoutingMuon_h
2 #define DataFormats_Scouting_Run3ScoutingMuon_h
3 
4 #include <vector>
6 
7 // Class for holding muon information, for use in data scouting
8 // IMPORTANT: the content of this class should be changed only in backwards compatible ways!
10 public:
11  //constructor with values for all data fields
13  float eta,
14  float phi,
15  float m,
16  unsigned int type,
17  int charge,
18  float normalizedChi2,
19  float ecalIso,
20  float hcalIso,
21  float trackIso,
27  int nRecoMuonMatches,
30  unsigned int recoMuonStationMask,
32  unsigned int recoMuonRPClayerMask,
33  int nValidPixelHits,
34  int nValidStripHits,
37  float trk_chi2,
38  float trk_ndof,
39  float trk_dxy,
40  float trk_dz,
41  float trk_qoverp,
42  float trk_lambda,
43  float trk_pt,
44  float trk_phi,
45  float trk_eta,
46  float trk_dxyError,
47  float trk_dzError,
48  float trk_qoverpError,
49  float trk_lambdaError,
50  float trk_phiError,
51  float trk_dsz,
52  float trk_dszError,
54  float trk_qoverp_phi_cov,
55  float trk_qoverp_dxy_cov,
56  float trk_qoverp_dsz_cov,
57  float trk_lambda_phi_cov,
58  float trk_lambda_dxy_cov,
59  float trk_lambda_dsz_cov,
60  float trk_phi_dxy_cov,
61  float trk_phi_dsz_cov,
62  float trk_dxy_dsz_cov,
63  float trk_vx,
64  float trk_vy,
65  float trk_vz,
66  std::vector<int> vtxIndx,
68  : pt_(pt),
69  eta_(eta),
70  phi_(phi),
71  m_(m),
72  type_(type),
73  charge_(charge),
96  trk_dz_(trk_dz),
99  trk_pt_(trk_pt),
100  trk_phi_(trk_phi),
101  trk_eta_(trk_eta),
107  trk_dsz_(trk_dsz),
119  trk_vx_(trk_vx),
120  trk_vy_(trk_vy),
121  trk_vz_(trk_vz),
124  //default constructor
126  : pt_(0),
127  eta_(0),
128  phi_(0),
129  m_(0),
130  type_(0),
131  charge_(0),
132  normalizedChi2_(0),
133  ecalIso_(0),
134  hcalIso_(0),
135  trackIso_(0),
147  nValidPixelHits_(0),
148  nValidStripHits_(0),
151  trk_chi2_(0),
152  trk_ndof_(0),
153  trk_dxy_(0),
154  trk_dz_(0),
155  trk_qoverp_(0),
156  trk_lambda_(0),
157  trk_pt_(0),
158  trk_phi_(0),
159  trk_eta_(0),
160  trk_dxyError_(0),
161  trk_dzError_(0),
162  trk_qoverpError_(0),
163  trk_lambdaError_(0),
164  trk_phiError_(0),
165  trk_dsz_(0),
166  trk_dszError_(0),
174  trk_phi_dxy_cov_(0),
175  trk_phi_dsz_cov_(0),
176  trk_dxy_dsz_cov_(0),
177  trk_vx_(0),
178  trk_vy_(0),
179  trk_vz_(0),
180  vtxIndx_(0) {}
181 
182  //accessor functions
183  float pt() const { return pt_; }
184  float eta() const { return eta_; }
185  float phi() const { return phi_; }
186  float m() const { return m_; }
187  unsigned int type() const { return type_; }
188  bool isGlobalMuon() const { return type_ & 1 << 1; }
189  bool isTrackerMuon() const { return type_ & 1 << 2; }
190  int charge() const { return charge_; }
191  float normalizedChi2() const { return normalizedChi2_; }
192  float ecalIso() const { return ecalIso_; }
193  float hcalIso() const { return hcalIso_; }
194  float trackIso() const { return trackIso_; }
197  int nValidRecoMuonHits() const { return nValidRecoMuonHits_; }
198  int nRecoMuonChambers() const { return nRecoMuonChambers_; }
200  int nRecoMuonMatches() const { return nRecoMuonMatches_; }
203  unsigned int recoMuonStationMask() const { return recoMuonStationMask_; }
205  unsigned int recoMuonRPClayerMask() const { return recoMuonRPClayerMask_; }
206  int nValidPixelHits() const { return nValidPixelHits_; }
207  int nValidStripHits() const { return nValidStripHits_; }
210  float trk_chi2() const { return trk_chi2_; }
211  float trk_ndof() const { return trk_ndof_; }
212  float trk_dxy() const { return trk_dxy_; }
213  float trk_dz() const { return trk_dz_; }
214  float trk_qoverp() const { return trk_qoverp_; }
215  float trk_lambda() const { return trk_lambda_; }
216  float trk_pt() const { return trk_pt_; }
217  float trk_phi() const { return trk_phi_; }
218  float trk_eta() const { return trk_eta_; }
219  float trk_dxyError() const { return trk_dxyError_; }
220  float trk_dzError() const { return trk_dzError_; }
221  float trk_qoverpError() const { return trk_qoverpError_; }
222  float trk_lambdaError() const { return trk_lambdaError_; }
223  float trk_phiError() const { return trk_phiError_; }
224  float trk_dsz() const { return trk_dsz_; }
225  float trk_dszError() const { return trk_dszError_; }
226  //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
228  float trk_qoverp_phi_cov() const { return trk_qoverp_phi_cov_; }
229  float trk_qoverp_dxy_cov() const { return trk_qoverp_dxy_cov_; }
230  float trk_qoverp_dsz_cov() const { return trk_qoverp_dsz_cov_; }
231  float trk_lambda_phi_cov() const { return trk_lambda_phi_cov_; }
232  float trk_lambda_dxy_cov() const { return trk_lambda_dxy_cov_; }
233  float trk_lambda_dsz_cov() const { return trk_lambda_dsz_cov_; }
234  float trk_phi_dxy_cov() const { return trk_phi_dxy_cov_; }
235  float trk_phi_dsz_cov() const { return trk_phi_dsz_cov_; }
236  float trk_dxy_dsz_cov() const { return trk_dxy_dsz_cov_; }
237  float trk_vx() const { return trk_vx_; }
238  float trk_vy() const { return trk_vy_; }
239  float trk_vz() const { return trk_vz_; }
240  std::vector<int> const& vtxIndx() const { return vtxIndx_; }
242 
243 private:
244  float pt_;
245  float eta_;
246  float phi_;
247  float m_;
248  unsigned int type_;
249  int charge_;
251  float ecalIso_;
252  float hcalIso_;
253  float trackIso_;
262  unsigned int recoMuonStationMask_;
264  unsigned int recoMuonRPClayerMask_;
269  float trk_chi2_;
270  float trk_ndof_;
271  float trk_dxy_;
272  float trk_dz_;
273  float trk_qoverp_;
274  float trk_lambda_;
275  float trk_pt_;
276  float trk_phi_;
277  float trk_eta_;
283  float trk_dsz_;
295  float trk_vx_;
296  float trk_vy_;
297  float trk_vz_;
298  std::vector<int> vtxIndx_;
300 };
301 
302 typedef std::vector<Run3ScoutingMuon> Run3ScoutingMuonCollection;
303 
304 #endif
float trk_lambda() const
float trk_qoverp_lambda_cov() const
float pt() const
Run3ScoutingHitPatternPOD trk_hitPattern_
unsigned int recoMuonStationMask_
float ecalIso() const
float trk_dxyError() const
int nStandAloneMuonMatchedStations() const
unsigned int recoMuonRPClayerMask() const
float trk_vy() const
float normalizedChi2() const
float trk_dzError() const
float trk_phi_dsz_cov() const
bool isGlobalMuon() const
unsigned int type_
int nRecoMuonChambers() const
int nValidRecoMuonHits() const
Run3ScoutingHitPatternPOD const & trk_hitPattern() const
Run3ScoutingMuon(float pt, float eta, float phi, float m, unsigned int type, int charge, float normalizedChi2, float ecalIso, float hcalIso, float trackIso, int nValidStandAloneMuonHits, int nStandAloneMuonMatchedStations, int nValidRecoMuonHits, int nRecoMuonChambers, int nRecoMuonChambersCSCorDT, int nRecoMuonMatches, int nRecoMuonMatchedStations, unsigned int nRecoMuonExpectedMatchedStations, unsigned int recoMuonStationMask, int nRecoMuonMatchedRPCLayers, unsigned int recoMuonRPClayerMask, int nValidPixelHits, int nValidStripHits, int nPixelLayersWithMeasurement, int nTrackerLayersWithMeasurement, float trk_chi2, float trk_ndof, float trk_dxy, float trk_dz, float trk_qoverp, float trk_lambda, float trk_pt, float trk_phi, float trk_eta, float trk_dxyError, float trk_dzError, float trk_qoverpError, float trk_lambdaError, float trk_phiError, float trk_dsz, float trk_dszError, float trk_qoverp_lambda_cov, float trk_qoverp_phi_cov, float trk_qoverp_dxy_cov, float trk_qoverp_dsz_cov, float trk_lambda_phi_cov, float trk_lambda_dxy_cov, float trk_lambda_dsz_cov, float trk_phi_dxy_cov, float trk_phi_dsz_cov, float trk_dxy_dsz_cov, float trk_vx, float trk_vy, float trk_vz, std::vector< int > vtxIndx, Run3ScoutingHitPatternPOD trk_hitPattern)
unsigned int nRecoMuonExpectedMatchedStations() const
int nValidStripHits() const
float trk_ndof() const
float trk_phi_dxy_cov() const
float trackIso() const
float trk_vz() const
int nTrackerLayersWithMeasurement() const
std::vector< int > vtxIndx_
int nRecoMuonMatches() const
unsigned int recoMuonRPClayerMask_
unsigned int type() const
unsigned int nRecoMuonExpectedMatchedStations_
float trk_dszError() const
std::vector< int > const & vtxIndx() const
float trk_dz() const
float trk_pt() const
float trk_dsz() const
float trk_lambda_dxy_cov() const
float trk_qoverp_dxy_cov() const
float trk_eta() const
bool isTrackerMuon() const
float trk_qoverp() const
float eta() const
int nRecoMuonChambersCSCorDT() const
int nValidPixelHits() const
float phi() const
float trk_vx() const
float trk_phi() const
float hcalIso() const
float trk_lambda_dsz_cov() const
float trk_phiError() const
int nPixelLayersWithMeasurement() const
int nRecoMuonMatchedRPCLayers() const
int nRecoMuonMatchedStations() const
std::vector< Run3ScoutingMuon > Run3ScoutingMuonCollection
float trk_lambda_phi_cov() const
float trk_chi2() const
float trk_qoverp_dsz_cov() const
float trk_dxy_dsz_cov() const
float trk_dxy() const
unsigned int recoMuonStationMask() const
float trk_lambdaError() const
int nValidStandAloneMuonHits() const
float trk_qoverp_phi_cov() const
def move(src, dest)
Definition: eostools.py:511
float trk_qoverpError() const