CMS 3D CMS Logo

SimplePhoton.h
Go to the documentation of this file.
1 #ifndef SimplePhoton_H
2 #define SimplePhoton_H
3 
4 #ifndef SimpleElectron_STANDALONE
6 #endif
7 
8 class SimplePhoton {
9 public:
11  SimplePhoton(double run,
12  double eClass,
13  double r9,
14  double scEnergy,
15  double scEnergyError,
16  double regEnergy,
17  double regEnergyError,
18  double eta,
19  bool isEB,
20  bool isMC)
21  : run_(run),
22  eClass_(eClass),
23  r9_(r9),
24  scEnergy_(scEnergy),
25  scEnergyError_(scEnergyError),
26  regEnergy_(regEnergy),
27  regEnergyError_(regEnergyError),
28  eta_(eta),
29  isEB_(isEB),
30  isMC_(isMC),
33  scale_(1.0),
34  smearing_(0.0) {}
36 
37 #ifndef SimplePhoton_STANDALONE
38  explicit SimplePhoton(const reco::Photon& in, unsigned int runNumber, bool isMC);
39  void writeTo(reco::Photon& out) const;
40 #endif
41 
42  //accessors
43  double getNewEnergy() const { return newEnergy_; }
44  double getNewEnergyError() const { return newEnergyError_; }
45  double getScale() const { return scale_; }
46  double getSmearing() const { return smearing_; }
47  double getSCEnergy() const { return scEnergy_; }
48  double getSCEnergyError() const { return scEnergyError_; }
49  double getRegEnergy() const { return regEnergy_; }
50  double getRegEnergyError() const { return regEnergyError_; }
51  double getEta() const { return eta_; }
52  float getR9() const { return r9_; }
53  int getElClass() const { return eClass_; }
54  int getRunNumber() const { return run_; }
55  bool isEB() const { return isEB_; }
56  bool isMC() const { return isMC_; }
57 
58  //setters
59  void setNewEnergy(double newEnergy) { newEnergy_ = newEnergy; }
60  void setNewEnergyError(double newEnergyError) { newEnergyError_ = newEnergyError; }
61 
62 private:
63  double run_;
64  double eClass_;
65  double r9_;
66  double scEnergy_;
68  double regEnergy_;
70  double eta_;
71  bool isEB_;
72  bool isMC_;
73  double newEnergy_;
75  double scale_;
76  double smearing_;
77 };
78 
79 #endif
double getEta() const
Definition: SimplePhoton.h:51
double scEnergy_
Definition: SimplePhoton.h:66
double getSmearing() const
Definition: SimplePhoton.h:46
float getR9() const
Definition: SimplePhoton.h:52
int getElClass() const
Definition: SimplePhoton.h:53
SimplePhoton(double run, double eClass, double r9, double scEnergy, double scEnergyError, double regEnergy, double regEnergyError, double eta, bool isEB, bool isMC)
Definition: SimplePhoton.h:11
bool isEB() const
Definition: SimplePhoton.h:55
int getRunNumber() const
Definition: SimplePhoton.h:54
void setNewEnergyError(double newEnergyError)
Definition: SimplePhoton.h:60
double scale_
Definition: SimplePhoton.h:75
double eClass_
Definition: SimplePhoton.h:64
double getRegEnergy() const
Definition: SimplePhoton.h:49
double getSCEnergyError() const
Definition: SimplePhoton.h:48
double scEnergyError_
Definition: SimplePhoton.h:67
double newEnergyError_
Definition: SimplePhoton.h:74
double smearing_
Definition: SimplePhoton.h:76
double regEnergy_
Definition: SimplePhoton.h:68
double getScale() const
Definition: SimplePhoton.h:45
double newEnergy_
Definition: SimplePhoton.h:73
void setNewEnergy(double newEnergy)
Definition: SimplePhoton.h:59
double getSCEnergy() const
Definition: SimplePhoton.h:47
double getNewEnergy() const
Definition: SimplePhoton.h:43
void writeTo(reco::Photon &out) const
Definition: SimplePhoton.cc:20
double getRegEnergyError() const
Definition: SimplePhoton.h:50
bool isMC() const
Definition: SimplePhoton.h:56
double getNewEnergyError() const
Definition: SimplePhoton.h:44
double regEnergyError_
Definition: SimplePhoton.h:69