CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Run3ScoutingMuon.h
Go to the documentation of this file.
1 #ifndef DataFormats_Run3ScoutingMuon_h
2 #define DataFormats_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,
67  std::vector<int> vtxIndx)
68  : pt_(pt),
69  eta_(eta),
70  phi_(phi),
71  m_(m),
72  type_(type),
73  charge_(charge),
74  normalizedChi2_(normalizedChi2),
75  ecalIso_(ecalIso),
76  hcalIso_(hcalIso),
77  trackIso_(trackIso),
78  nValidStandAloneMuonHits_(nValidStandAloneMuonHits),
79  nStandAloneMuonMatchedStations_(nStandAloneMuonMatchedStations),
80  nValidRecoMuonHits_(nValidRecoMuonHits),
81  nRecoMuonChambers_(nRecoMuonChambers),
82  nRecoMuonChambersCSCorDT_(nRecoMuonChambersCSCorDT),
83  nRecoMuonMatches_(nRecoMuonMatches),
84  nRecoMuonMatchedStations_(nRecoMuonMatchedStations),
85  nRecoMuonExpectedMatchedStations_(nRecoMuonExpectedMatchedStations),
86  recoMuonStationMask_(recoMuonStationMask),
87  nRecoMuonMatchedRPCLayers_(nRecoMuonMatchedRPCLayers),
88  recoMuonRPClayerMask_(recoMuonRPClayerMask),
89  nValidPixelHits_(nValidPixelHits),
90  nValidStripHits_(nValidStripHits),
91  nPixelLayersWithMeasurement_(nPixelLayersWithMeasurement),
92  nTrackerLayersWithMeasurement_(nTrackerLayersWithMeasurement),
93  trk_chi2_(trk_chi2),
94  trk_ndof_(trk_ndof),
95  trk_dxy_(trk_dxy),
96  trk_dz_(trk_dz),
97  trk_qoverp_(trk_qoverp),
98  trk_lambda_(trk_lambda),
99  trk_pt_(trk_pt),
100  trk_phi_(trk_phi),
101  trk_eta_(trk_eta),
102  trk_dxyError_(trk_dxyError),
103  trk_dzError_(trk_dzError),
104  trk_qoverpError_(trk_qoverpError),
105  trk_lambdaError_(trk_lambdaError),
106  trk_phiError_(trk_phiError),
107  trk_dsz_(trk_dsz),
108  trk_dszError_(trk_dszError),
109  trk_qoverp_lambda_cov_(trk_qoverp_lambda_cov),
110  trk_qoverp_phi_cov_(trk_qoverp_phi_cov),
111  trk_qoverp_dxy_cov_(trk_qoverp_dxy_cov),
112  trk_qoverp_dsz_cov_(trk_qoverp_dsz_cov),
113  trk_lambda_phi_cov_(trk_lambda_phi_cov),
114  trk_lambda_dxy_cov_(trk_lambda_dxy_cov),
115  trk_lambda_dsz_cov_(trk_lambda_dsz_cov),
116  trk_phi_dxy_cov_(trk_phi_dxy_cov),
117  trk_phi_dsz_cov_(trk_phi_dsz_cov),
118  trk_dxy_dsz_cov_(trk_dxy_dsz_cov),
119  trk_vx_(trk_vx),
120  trk_vy_(trk_vy),
121  trk_vz_(trk_vz),
122  trk_hitPattern_(trk_hitPattern),
123  vtxIndx_(std::move(vtxIndx)) {}
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_; }
241  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_;
299  std::vector<int> vtxIndx_;
300 };
301 
302 typedef std::vector<Run3ScoutingMuon> Run3ScoutingMuonCollection;
303 
304 #endif
float trk_chi2() const
float trk_ndof() const
float trk_phi_dxy_cov() const
float trk_dxy() const
float trk_phiError() const
float trk_dxyError() const
unsigned int recoMuonStationMask_
float trk_vy() const
float trk_vz() const
float trk_dz() const
unsigned int recoMuonRPClayerMask() const
int nRecoMuonChambersCSCorDT() const
float trk_lambda_dsz_cov() const
int nTrackerLayersWithMeasurement() const
float trk_lambdaError() const
int nValidPixelHits() const
int nRecoMuonMatchedStations() const
unsigned int type_
float trk_qoverp_lambda_cov() const
int nStandAloneMuonMatchedStations() const
float trk_phi() const
float trk_lambda_dxy_cov() const
int nRecoMuonChambers() const
int nRecoMuonMatchedRPCLayers() const
reco::HitPattern trk_hitPattern_
int nRecoMuonMatches() const
float trk_dszError() const
float trk_qoverp_phi_cov() const
bool isTrackerMuon() const
float trk_dsz() const
reco::HitPattern 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, reco::HitPattern trk_hitPattern, std::vector< int > vtxIndx)
unsigned int type() const
int nValidRecoMuonHits() const
std::vector< int > vtxIndx_
def move
Definition: eostools.py:511
unsigned int recoMuonRPClayerMask_
float phi() const
unsigned int nRecoMuonExpectedMatchedStations_
std::vector< int > const & vtxIndx() const
float trk_qoverpError() const
float trk_vx() const
float normalizedChi2() const
float trackIso() const
float eta() const
float trk_dzError() const
float trk_eta() const
float trk_dxy_dsz_cov() const
float trk_pt() const
std::vector< Run3ScoutingMuon > Run3ScoutingMuonCollection
float pt() const
float trk_qoverp_dxy_cov() const
unsigned int nRecoMuonExpectedMatchedStations() const
int charge() const
float m() const
float trk_qoverp() const
float trk_qoverp_dsz_cov() const
unsigned int recoMuonStationMask() const
float trk_lambda_phi_cov() const
float ecalIso() const
float trk_phi_dsz_cov() const
int nValidStripHits() const
int nValidStandAloneMuonHits() const
bool isGlobalMuon() const
float trk_lambda() const
int nPixelLayersWithMeasurement() const
float hcalIso() const