CMS 3D CMS Logo

ScoutingElectron.h
Go to the documentation of this file.
1 #ifndef DataFormats_ScoutingElectron_h
2 #define DataFormats_ScoutingElectron_h
3 
4 #include <vector>
5 
6 // Class for holding electron information, for use in data scouting
7 // IMPORTANT: the content of this class should be changed only in backwards compatible ways!
9 public:
10  //constructor with values for all data fields
12  float eta,
13  float phi,
14  float m,
15  float d0,
16  float dz,
17  float dEtaIn,
18  float dPhiIn,
19  float sigmaIetaIeta,
20  float hOverE,
21  float ooEMOop,
22  int missingHits,
23  int charge,
24  float ecalIso,
25  float hcalIso,
26  float trackIso)
27  : pt_(pt),
28  eta_(eta),
29  phi_(phi),
30  m_(m),
31  d0_(d0),
32  dz_(dz),
33  dEtaIn_(dEtaIn),
34  dPhiIn_(dPhiIn),
36  hOverE_(hOverE),
39  charge_(charge),
43  //default constructor
45  : pt_(0),
46  eta_(0),
47  phi_(0),
48  m_(0),
49  d0_(0),
50  dz_(0),
51  dEtaIn_(0),
52  dPhiIn_(0),
53  sigmaIetaIeta_(0),
54  hOverE_(0),
55  ooEMOop_(0),
56  missingHits_(0),
57  charge_(0),
58  ecalIso_(0),
59  hcalIso_(0),
60  trackIso_(0) {}
61 
62  //accessor functions
63  float pt() const { return pt_; }
64  float eta() const { return eta_; }
65  float phi() const { return phi_; }
66  float m() const { return m_; }
67  float d0() const { return d0_; }
68  float dz() const { return dz_; }
69  float dEtaIn() const { return dEtaIn_; }
70  float dPhiIn() const { return dPhiIn_; }
71  float sigmaIetaIeta() const { return sigmaIetaIeta_; }
72  float hOverE() const { return hOverE_; }
73  float ooEMOop() const { return ooEMOop_; }
74  int missingHits() const { return missingHits_; }
75  int charge() const { return charge_; }
76  float ecalIso() const { return ecalIso_; }
77  float hcalIso() const { return hcalIso_; }
78  float trackIso() const { return trackIso_; }
79 
80 private:
81  float pt_;
82  float eta_;
83  float phi_;
84  float m_;
85  float d0_;
86  float dz_;
87  float dEtaIn_;
88  float dPhiIn_;
90  float hOverE_;
91  float ooEMOop_;
93  int charge_;
94  float ecalIso_;
95  float hcalIso_;
96  float trackIso_;
97 };
98 
99 typedef std::vector<ScoutingElectron> ScoutingElectronCollection;
100 
101 #endif
int missingHits() const
float hcalIso() const
float sigmaIetaIeta() const
float ooEMOop() const
float pt() const
float dz() const
float dPhiIn() const
float d0() const
float ecalIso() const
float phi() const
float hOverE() const
std::vector< ScoutingElectron > ScoutingElectronCollection
float eta() const
int charge() const
float trackIso() const
ScoutingElectron(float pt, float eta, float phi, float m, float d0, float dz, float dEtaIn, float dPhiIn, float sigmaIetaIeta, float hOverE, float ooEMOop, int missingHits, int charge, float ecalIso, float hcalIso, float trackIso)
float m() const
float dEtaIn() const