test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 {
10  public:
11  //constructor with values for all data fields
12  ScoutingElectron(float pt, float eta, float phi, float m, float d0, float dz, float dEtaIn,
13  float dPhiIn, float sigmaIetaIeta, float hOverE, float ooEMOop,
14  int missingHits, int charge, float ecalIso, float hcalIso, float trackIso):
15  pt_(pt), eta_(eta), phi_(phi), m_(m), d0_(d0), dz_(dz), dEtaIn_(dEtaIn),
16  dPhiIn_(dPhiIn), sigmaIetaIeta_(sigmaIetaIeta), hOverE_(hOverE), ooEMOop_(ooEMOop),
17  missingHits_(missingHits), charge_(charge), ecalIso_(ecalIso), hcalIso_(hcalIso),
18  trackIso_(trackIso) {}
19  //default constructor
20  ScoutingElectron(): pt_(0), eta_(0), phi_(0), m_(0), d0_(0), dz_(0), dEtaIn_(0), dPhiIn_(0),
22  hcalIso_(0), trackIso_(0) {}
23 
24  //accessor functions
25  float pt() const { return pt_; }
26  float eta() const { return eta_; }
27  float phi() const { return phi_; }
28  float m() const { return m_; }
29  float d0() const { return d0_; }
30  float dz() const { return dz_; }
31  float dEtaIn() const { return dEtaIn_; }
32  float dPhiIn() const { return dPhiIn_; }
33  float sigmaIetaIeta() const { return sigmaIetaIeta_; }
34  float hOverE() const { return hOverE_; }
35  float ooEMOop() const { return ooEMOop_; }
36  int missingHits() const { return missingHits_; }
37  int charge() const { return charge_; }
38  float ecalIso() const { return ecalIso_; }
39  float hcalIso() const { return hcalIso_; }
40  float trackIso() const { return trackIso_; }
41 
42  private:
43  float pt_;
44  float eta_;
45  float phi_;
46  float m_;
47  float d0_;
48  float dz_;
49  float dEtaIn_;
50  float dPhiIn_;
52  float hOverE_;
53  float ooEMOop_;
55  int charge_;
56  float ecalIso_;
57  float hcalIso_;
58  float trackIso_;
59 };
60 
61 typedef std::vector<ScoutingElectron> ScoutingElectronCollection;
62 
63 #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