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 public:
11  SimpleElectron(unsigned int run,
12  double eClass,
13  double r9,
14  double scEnergy,
15  double scEnergyError,
16  double trackMomentum,
17  double trackMomentumError,
18  double regEnergy,
19  double regEnergyError,
20  double combinedMomentum,
21  double combinedMomentumError,
22  double eta,
23  bool isEB,
24  bool isMC,
25  bool isEcalDriven,
26  bool isTrackerDriven)
27  : run_(run),
28  eClass_(eClass),
29  r9_(r9),
30  scEnergy_(scEnergy),
31  scEnergyError_(scEnergyError),
33  trackMomentumError_(trackMomentumError),
34  regEnergy_(regEnergy),
35  regEnergyError_(regEnergyError),
36  eta_(eta),
37  isEB_(isEB),
38  isMC_(isMC),
43  combinedMomentum_(combinedMomentum),
44  combinedMomentumError_(combinedMomentumError),
45  scale_(1.0),
46  smearing_(0.0) {}
48 
49 #ifndef SimpleElectron_STANDALONE
50  explicit SimpleElectron(const reco::GsfElectron &in, unsigned int runNumber, bool isMC);
51  void writeTo(reco::GsfElectron &out) const;
52 #endif
53 
54  //accessors
55  double getNewEnergy() const { return newEnergy_; }
56  double getNewEnergyError() const { return newEnergyError_; }
57  double getCombinedMomentum() const { return combinedMomentum_; }
59  double getScale() const { return scale_; }
60  double getSmearing() const { return smearing_; }
61  double getSCEnergy() const { return scEnergy_; }
62  double getSCEnergyError() const { return scEnergyError_; }
63  double getRegEnergy() const { return regEnergy_; }
64  double getRegEnergyError() const { return regEnergyError_; }
65  double getTrackerMomentum() const { return trackMomentum_; }
66  double getTrackerMomentumError() const { return trackMomentumError_; }
67  double getEta() const { return eta_; }
68  float getR9() const { return r9_; }
69  int getElClass() const { return eClass_; }
70  unsigned int getRunNumber() const { return run_; }
71  bool isEB() const { return isEB_; }
72  bool isMC() const { return isMC_; }
73  bool isEcalDriven() const { return isEcalDriven_; }
74  bool isTrackerDriven() const { return isTrackerDriven_; }
75 
76  //setters
77  void setCombinedMomentum(double combinedMomentum) { combinedMomentum_ = combinedMomentum; }
78  void setCombinedMomentumError(double combinedMomentumError) { combinedMomentumError_ = combinedMomentumError; }
79  void setNewEnergy(double newEnergy) { newEnergy_ = newEnergy; }
80  void setNewEnergyError(double newEnergyError) { newEnergyError_ = newEnergyError; }
81 
82 private:
83  unsigned int run_;
84  double eClass_;
85  double r9_;
86  double scEnergy_;
90  double regEnergy_;
92  double eta_;
93  bool isEB_;
94  bool isMC_;
97  double newEnergy_;
101  double scale_;
102  double smearing_;
103 };
104 
105 #endif
SimpleElectron::trackMomentumError_
double trackMomentumError_
Definition: SimpleElectron.h:89
SimpleElectron::regEnergyError_
double regEnergyError_
Definition: SimpleElectron.h:91
electrons_cff.r9
r9
Definition: electrons_cff.py:360
SimpleElectron::getTrackerMomentumError
double getTrackerMomentumError() const
Definition: SimpleElectron.h:66
SimpleElectron::getTrackerMomentum
double getTrackerMomentum() const
Definition: SimpleElectron.h:65
SimpleElectron::newEnergyError_
double newEnergyError_
Definition: SimpleElectron.h:98
SimpleElectron::r9_
double r9_
Definition: SimpleElectron.h:85
SimpleElectron::run_
unsigned int run_
Definition: SimpleElectron.h:83
SimpleElectron::isTrackerDriven_
bool isTrackerDriven_
Definition: SimpleElectron.h:96
SimpleElectron::scale_
double scale_
Definition: SimpleElectron.h:101
SimpleElectron::scEnergy_
double scEnergy_
Definition: SimpleElectron.h:86
SimpleElectron::combinedMomentum_
double combinedMomentum_
Definition: SimpleElectron.h:99
SimpleElectron::isMC
bool isMC() const
Definition: SimpleElectron.h:72
SimpleElectron::~SimpleElectron
~SimpleElectron()
Definition: SimpleElectron.h:47
SimpleElectron::setCombinedMomentumError
void setCombinedMomentumError(double combinedMomentumError)
Definition: SimpleElectron.h:78
SimpleElectron::trackMomentum_
double trackMomentum_
Definition: SimpleElectron.h:88
convertSQLiteXML.runNumber
runNumber
Definition: convertSQLiteXML.py:91
SimpleElectron::SimpleElectron
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)
Definition: SimpleElectron.h:11
SimpleElectron
Definition: SimpleElectron.h:8
SimpleElectron::getCombinedMomentum
double getCombinedMomentum() const
Definition: SimpleElectron.h:57
SimpleElectron::isEB
bool isEB() const
Definition: SimpleElectron.h:71
PVValHelper::eta
Definition: PVValidationHelpers.h:70
SimpleElectron::getRegEnergyError
double getRegEnergyError() const
Definition: SimpleElectron.h:64
SimpleElectron::newEnergy_
double newEnergy_
Definition: SimpleElectron.h:97
reco::btau::trackMomentum
Definition: TaggingVariable.h:41
SimpleElectron::setNewEnergy
void setNewEnergy(double newEnergy)
Definition: SimpleElectron.h:79
reco::GsfElectron
Definition: GsfElectron.h:35
GsfElectron.h
SimpleElectron::combinedMomentumError_
double combinedMomentumError_
Definition: SimpleElectron.h:100
SimpleElectron::setCombinedMomentum
void setCombinedMomentum(double combinedMomentum)
Definition: SimpleElectron.h:77
SimpleElectron::isEB_
bool isEB_
Definition: SimpleElectron.h:93
SimpleElectron::isEcalDriven_
bool isEcalDriven_
Definition: SimpleElectron.h:95
SimpleElectron::SimpleElectron
SimpleElectron()
Definition: SimpleElectron.h:10
recoMuon::in
Definition: RecoMuonEnumerators.h:6
SimpleElectron::writeTo
void writeTo(reco::GsfElectron &out) const
Definition: SimpleElectron.cc:25
SimpleElectron::isMC_
bool isMC_
Definition: SimpleElectron.h:94
SimpleElectron::smearing_
double smearing_
Definition: SimpleElectron.h:102
SimpleElectron::eClass_
double eClass_
Definition: SimpleElectron.h:84
SimpleElectron::getRegEnergy
double getRegEnergy() const
Definition: SimpleElectron.h:63
SimpleElectron::getNewEnergyError
double getNewEnergyError() const
Definition: SimpleElectron.h:56
SimpleElectron::getScale
double getScale() const
Definition: SimpleElectron.h:59
SimpleElectron::isTrackerDriven
bool isTrackerDriven() const
Definition: SimpleElectron.h:74
SimpleElectron::eta_
double eta_
Definition: SimpleElectron.h:92
SimpleElectron::regEnergy_
double regEnergy_
Definition: SimpleElectron.h:90
SimpleElectron::getSCEnergyError
double getSCEnergyError() const
Definition: SimpleElectron.h:62
SimpleElectron::scEnergyError_
double scEnergyError_
Definition: SimpleElectron.h:87
SimpleElectron::setNewEnergyError
void setNewEnergyError(double newEnergyError)
Definition: SimpleElectron.h:80
SimpleElectron::getRunNumber
unsigned int getRunNumber() const
Definition: SimpleElectron.h:70
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SimpleElectron::getNewEnergy
double getNewEnergy() const
Definition: SimpleElectron.h:55
SimpleElectron::getEta
double getEta() const
Definition: SimpleElectron.h:67
SimpleElectron::getSCEnergy
double getSCEnergy() const
Definition: SimpleElectron.h:61
SimpleElectron::isEcalDriven
bool isEcalDriven() const
Definition: SimpleElectron.h:73
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
SimpleElectron::getCombinedMomentumError
double getCombinedMomentumError() const
Definition: SimpleElectron.h:58
SimpleElectron::getElClass
int getElClass() const
Definition: SimpleElectron.h:69
SimpleElectron::getSmearing
double getSmearing() const
Definition: SimpleElectron.h:60
SimpleElectron::getR9
float getR9() const
Definition: SimpleElectron.h:68