CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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),
35  sigmaIetaIeta_(sigmaIetaIeta),
36  hOverE_(hOverE),
37  ooEMOop_(ooEMOop),
38  missingHits_(missingHits),
39  charge_(charge),
40  ecalIso_(ecalIso),
41  hcalIso_(hcalIso),
42  trackIso_(trackIso) {}
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
float pt() const
float trackIso() const
float d0() const
int missingHits() const
float dPhiIn() const
float hcalIso() const
float eta() const
std::vector< ScoutingElectron > ScoutingElectronCollection
float ecalIso() const
float ooEMOop() const
int charge() const
float m() const
float dz() const
float phi() 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 dEtaIn() const
float hOverE() const
float sigmaIetaIeta() const