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!
9 {
10  public:
11  //constructor with values for all data fields
12  ScoutingMuon(float pt, float eta, float phi, float m, float ecalIso, float hcalIso,
13  float trackIso, float chi2, float ndof, int charge, float dxy, float dz,
16  float trk_lambda, float trk_pt,
17  float trk_phi, float trk_eta, float dxyError, float dzError, float trk_qoverpError,
18  float trk_lambdaError, float trk_phiError, float trk_dsz, float trk_dszError, std::vector<int> vtxIndx):
19  pt_(pt), eta_(eta), phi_(phi), m_(m),
20  ecalIso_(ecalIso), hcalIso_(hcalIso), trackIso_(trackIso),
21  chi2_(chi2), ndof_(ndof), charge_(charge), dxy_(dxy), dz_(dz),
22  nValidMuonHits_(nValidMuonHits), nValidPixelHits_(nValidPixelHits),
23  nMatchedStations_(nMatchedStations),
24  nTrackerLayersWithMeasurement_(nTrackerLayersWithMeasurement), type_(type), nValidStripHits_(nValidStripHits), trk_qoverp_(trk_qoverp),
25  trk_lambda_(trk_lambda), trk_pt_(trk_pt),
26  trk_phi_(trk_phi), trk_eta_(trk_eta), dxyError_(dxyError), dzError_(dzError), trk_qoverpError_(trk_qoverpError), trk_lambdaError_(trk_lambdaError),
27  trk_phiError_(trk_phiError), trk_dsz_(trk_dsz), trk_dszError_(trk_dszError), vtxIndx_(std::move(vtxIndx)){}
28  //default constructor
29  ScoutingMuon():pt_(0), eta_(0), phi_(0), m_(0), ecalIso_(0), hcalIso_(0), trackIso_(0),
30  chi2_(0), ndof_(0), charge_(0), dxy_(0), dz_(0), nValidMuonHits_(0),
33  trk_lambda_(0), trk_pt_(0),
36 
37  //accessor functions
38  float pt() const { return pt_; }
39  float eta() const { return eta_; }
40  float phi() const { return phi_; }
41  float m() const { return m_; }
42  float ecalIso() const { return ecalIso_; }
43  float hcalIso() const { return hcalIso_; }
44  float trackIso() const { return trackIso_; }
45  float chi2() const { return chi2_; }
46  float ndof() const { return ndof_; }
47  int charge() const { return charge_; }
48  float dxy() const { return dxy_; }
49  float dz() const { return dz_; }
50  int nValidMuonHits() const { return nValidMuonHits_; }
51  int nValidPixelHits() const { return nValidPixelHits_; }
52  int nMatchedStations() const { return nMatchedStations_; }
54  int type() const { return type_; }
55  bool isGlobalMuon() const { return type_ & 1<<1; }
56  bool isTrackerMuon() const { return type_ & 1<<2; }
57  int nValidStripHits() const { return nValidStripHits_; }
58  float trk_qoverp() const { return trk_qoverp_; }
59  float trk_lambda() const { return trk_lambda_; }
60  float trk_pt() const { return trk_pt_; }
61  float trk_phi() const { return trk_phi_; }
62  float trk_eta() const { return trk_eta_; }
63  float dxyError() const { return dxyError_; }
64  float dzError() const { return dzError_; }
65  float trk_qoverpError() const { return trk_qoverpError_; }
66  float trk_lambdaError() const { return trk_lambdaError_; }
67  float trk_phiError() const { return trk_phiError_; }
68  float trk_dsz() const { return trk_dsz_; }
69  float trk_dszError() const { return trk_dszError_; }
70  std::vector<int> vtxIndx() const { return vtxIndx_; }
71 
72  private:
73  float pt_;
74  float eta_;
75  float phi_;
76  float m_;
77  float ecalIso_;
78  float hcalIso_;
79  float trackIso_;
80  float chi2_;
81  float ndof_;
82  int charge_;
83  float dxy_;
84  float dz_;
89  int type_;
91  float trk_qoverp_;
92  float trk_lambda_;
93  float trk_pt_;
94  float trk_phi_;
95  float trk_eta_;
96  float dxyError_;
97  float dzError_;
101  float trk_dsz_;
103  std::vector<int> vtxIndx_;
104 };
105 
106 typedef std::vector<ScoutingMuon> ScoutingMuonCollection;
107 
108 #endif
type
Definition: HCALResponse.h:21
int nValidStripHits() const
Definition: ScoutingMuon.h:57
int nTrackerLayersWithMeasurement() const
Definition: ScoutingMuon.h:53
int nValidPixelHits_
Definition: ScoutingMuon.h:86
std::vector< int > vtxIndx() const
Definition: ScoutingMuon.h:70
int nValidMuonHits() const
Definition: ScoutingMuon.h:50
float trk_lambdaError_
Definition: ScoutingMuon.h:99
float trk_lambdaError() const
Definition: ScoutingMuon.h:66
int nTrackerLayersWithMeasurement_
Definition: ScoutingMuon.h:88
int nMatchedStations() const
Definition: ScoutingMuon.h:52
float ecalIso() const
Definition: ScoutingMuon.h:42
float trk_eta_
Definition: ScoutingMuon.h:95
float dxy() const
Definition: ScoutingMuon.h:48
float ndof() const
Definition: ScoutingMuon.h:46
float eta() const
Definition: ScoutingMuon.h:39
float trk_lambda() const
Definition: ScoutingMuon.h:59
bool isGlobalMuon() const
Definition: ScoutingMuon.h:55
float dzError() const
Definition: ScoutingMuon.h:64
float m() const
Definition: ScoutingMuon.h:41
float trk_qoverp() const
Definition: ScoutingMuon.h:58
float trk_phi_
Definition: ScoutingMuon.h:94
float trk_phiError() const
Definition: ScoutingMuon.h:67
int type() const
Definition: ScoutingMuon.h:54
float pt() const
Definition: ScoutingMuon.h:38
float trk_phi() const
Definition: ScoutingMuon.h:61
bool isTrackerMuon() const
Definition: ScoutingMuon.h:56
std::vector< int > vtxIndx_
Definition: ScoutingMuon.h:103
float chi2() const
Definition: ScoutingMuon.h:45
float trk_pt() const
Definition: ScoutingMuon.h:60
float trk_dszError() const
Definition: ScoutingMuon.h:69
float trk_eta() const
Definition: ScoutingMuon.h:62
float dzError_
Definition: ScoutingMuon.h:97
float ecalIso_
Definition: ScoutingMuon.h:77
float trackIso_
Definition: ScoutingMuon.h:79
float dxyError() const
Definition: ScoutingMuon.h:63
std::vector< ScoutingMuon > ScoutingMuonCollection
Definition: ScoutingMuon.h:106
float trk_dszError_
Definition: ScoutingMuon.h:102
float trackIso() const
Definition: ScoutingMuon.h:44
float dz() const
Definition: ScoutingMuon.h:49
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:12
int nValidStripHits_
Definition: ScoutingMuon.h:90
float trk_lambda_
Definition: ScoutingMuon.h:92
float hcalIso_
Definition: ScoutingMuon.h:78
int nMatchedStations_
Definition: ScoutingMuon.h:87
int charge() const
Definition: ScoutingMuon.h:47
float trk_qoverpError_
Definition: ScoutingMuon.h:98
int nValidMuonHits_
Definition: ScoutingMuon.h:85
float dxyError_
Definition: ScoutingMuon.h:96
float trk_qoverpError() const
Definition: ScoutingMuon.h:65
float phi() const
Definition: ScoutingMuon.h:40
float trk_qoverp_
Definition: ScoutingMuon.h:91
float trk_phiError_
Definition: ScoutingMuon.h:100
def move(src, dest)
Definition: eostools.py:510
int nValidPixelHits() const
Definition: ScoutingMuon.h:51
float trk_dsz() const
Definition: ScoutingMuon.h:68
float hcalIso() const
Definition: ScoutingMuon.h:43