CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SimpleElectron.h
Go to the documentation of this file.
1 #ifndef SimpleElectron_H
2 #define SimpleElectron_H
3 
5 {
6  public:
8  SimpleElectron( double run,
9  double eClass,
10  double r9,
11  double scEnergy,
12  double scEnergyError,
13  double trackMomentum,
14  double trackMomentumError,
15  double regEnergy,
16  double regEnergyError,
17  double combinedMomentum,
18  double combinedMomentumError,
19  double eta,
20  bool isEB,
21  bool isMC,
22  bool isEcalDriven,
23  bool isTrackerDriven
24  ) :
25  run_(run),
26  eClass_(eClass),
27  r9_(r9),
28  scEnergy_(scEnergy),
29  scEnergyError_(scEnergyError),
30  trackMomentum_(trackMomentum),
31  trackMomentumError_(trackMomentumError),
32  regEnergy_(regEnergy),
33  regEnergyError_(regEnergyError),
34  eta_(eta),
35  isEB_(isEB),
36  isMC_(isMC),
37  isEcalDriven_(isEcalDriven),
38  isTrackerDriven_(isTrackerDriven),
39  combinedMomentum_(combinedMomentum),
40  combinedMomentumError_(combinedMomentumError)
41  {}
43 
44  //accessors
45  double getNewEnergy(){return newEnergy_;}
49  double getScale(){return scale_;}
50  double getSmearing(){return smearing_;}
51  double getSCEnergy(){return scEnergy_;}
52  double getSCEnergyError(){return scEnergyError_;}
53  double getRegEnergy(){return regEnergy_;}
57  double getEta(){return eta_;}
58  float getR9(){return r9_;}
59  int getElClass(){return eClass_;}
60  int getRunNumber(){return run_;}
61  bool isEB(){return isEB_;}
62  bool isMC(){return isMC_;}
63  bool isEcalDriven(){return isEcalDriven_;}
65 
66  //setters
67  void setCombinedMomentum(double combinedMomentum){combinedMomentum_ = combinedMomentum;}
68  void setCombinedMomentumError(double combinedMomentumError){combinedMomentumError_ = combinedMomentumError;}
69  void setNewEnergy(double newEnergy){newEnergy_ = newEnergy;}
70  void setNewEnergyError(double newEnergyError){newEnergyError_ = newEnergyError;}
71 
72  private:
73  double run_;
74  double eClass_;
75  double r9_;
76  double scEnergy_;
77  double scEnergyError_;
78  double trackMomentum_;
80  double regEnergy_;
82  double eta_;
83  bool isEB_;
84  bool isMC_;
87  double newEnergy_;
88  double newEnergyError_;
91  double scale_;
92  double smearing_;
93 };
94 
95 #endif
double getSCEnergy()
double trackMomentumError_
double getRegEnergyError()
double combinedMomentum_
void setNewEnergyError(double newEnergyError)
void setCombinedMomentum(double combinedMomentum)
double trackMomentum_
bool isTrackerDriven()
void setNewEnergy(double newEnergy)
double regEnergyError_
double newEnergyError_
T eta() const
double getTrackerMomentum()
double getNewEnergyError()
double getCombinedMomentum()
double getSmearing()
double getTrackerMomentumError()
double getScale()
double getCombinedMomentumError()
double getSCEnergyError()
double combinedMomentumError_
double getNewEnergy()
double scEnergyError_
SimpleElectron(double 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)
Definition: SimpleElectron.h:8
double getRegEnergy()
void setCombinedMomentumError(double combinedMomentumError)