CMS 3D CMS Logo

SimpleElectron.h
Go to the documentation of this file.
1 #ifndef SimpleElectron_H
2 #define SimpleElectron_H
3 
4 #ifndef SimpleElectron_STANDALONE
6 #endif
7 
9 {
10  public:
12  SimpleElectron( unsigned int run,
13  double eClass,
14  double r9,
15  double scEnergy,
16  double scEnergyError,
17  double trackMomentum,
18  double trackMomentumError,
19  double regEnergy,
20  double regEnergyError,
21  double combinedMomentum,
22  double combinedMomentumError,
23  double eta,
24  bool isEB,
25  bool isMC,
26  bool isEcalDriven,
27  bool isTrackerDriven
28  ) :
29  run_(run),
30  eClass_(eClass),
31  r9_(r9),
32  scEnergy_(scEnergy),
33  scEnergyError_(scEnergyError),
34  trackMomentum_(trackMomentum),
35  trackMomentumError_(trackMomentumError),
36  regEnergy_(regEnergy),
37  regEnergyError_(regEnergyError),
38  eta_(eta),
39  isEB_(isEB),
40  isMC_(isMC),
41  isEcalDriven_(isEcalDriven),
42  isTrackerDriven_(isTrackerDriven),
45  combinedMomentum_(combinedMomentum),
46  combinedMomentumError_(combinedMomentumError),
47  scale_(1.0), smearing_(0.0)
48  {}
50 
51 #ifndef SimpleElectron_STANDALONE
52  explicit SimpleElectron(const reco::GsfElectron &in, unsigned int runNumber, bool isMC) ;
53  void writeTo(reco::GsfElectron & out) const ;
54 #endif
55 
56  //accessors
57  double getNewEnergy() const {return newEnergy_;}
58  double getNewEnergyError() const {return newEnergyError_;}
59  double getCombinedMomentum() const {return combinedMomentum_;}
61  double getScale() const {return scale_;}
62  double getSmearing() const {return smearing_;}
63  double getSCEnergy() const {return scEnergy_;}
64  double getSCEnergyError() const {return scEnergyError_;}
65  double getRegEnergy() const {return regEnergy_;}
66  double getRegEnergyError() const {return regEnergyError_;}
67  double getTrackerMomentum() const {return trackMomentum_;}
69  double getEta() const {return eta_;}
70  float getR9() const {return r9_;}
71  int getElClass() const {return eClass_;}
72  unsigned int getRunNumber() const {return run_;}
73  bool isEB() const {return isEB_;}
74  bool isMC() const {return isMC_;}
75  bool isEcalDriven() const {return isEcalDriven_;}
76  bool isTrackerDriven() const {return isTrackerDriven_;}
77 
78  //setters
79  void setCombinedMomentum(double combinedMomentum){combinedMomentum_ = combinedMomentum;}
80  void setCombinedMomentumError(double combinedMomentumError){combinedMomentumError_ = combinedMomentumError;}
81  void setNewEnergy(double newEnergy){newEnergy_ = newEnergy;}
82  void setNewEnergyError(double newEnergyError){newEnergyError_ = newEnergyError;}
83 
84  private:
85  unsigned int run_;
86  double eClass_;
87  double r9_;
88  double scEnergy_;
89  double scEnergyError_;
90  double trackMomentum_;
92  double regEnergy_;
94  double eta_;
95  bool isEB_;
96  bool isMC_;
99  double newEnergy_;
103  double scale_;
104  double smearing_;
105 };
106 
107 #endif
double getScale() const
double trackMomentumError_
int getElClass() const
double getSCEnergy() const
double combinedMomentum_
void setNewEnergyError(double newEnergyError)
double getRegEnergy() const
void setCombinedMomentum(double combinedMomentum)
double getTrackerMomentum() const
double trackMomentum_
SimpleElectron(unsigned int run, double eClass, double r9, double scEnergy, double scEnergyError, double trackMomentum, double trackMomentumError, double regEnergy, double regEnergyError, double combinedMomentum, double combinedMomentumError, double eta, bool isEB, bool isMC, bool isEcalDriven, bool isTrackerDriven)
void setNewEnergy(double newEnergy)
double regEnergyError_
double newEnergyError_
double getNewEnergy() const
bool isTrackerDriven() const
double getCombinedMomentum() const
bool isMC() const
unsigned int getRunNumber() const
double getNewEnergyError() const
void writeTo(reco::GsfElectron &out) const
double getEta() const
float getR9() const
double getCombinedMomentumError() const
double getRegEnergyError() const
double combinedMomentumError_
double getSCEnergyError() const
bool isEB() const
unsigned int run_
double getSmearing() const
double scEnergyError_
void setCombinedMomentumError(double combinedMomentumError)
double getTrackerMomentumError() const
bool isEcalDriven() const