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  ) :
22  run_(run),
23  eClass_(eClass),
24  r9_(r9),
25  scEnergy_(scEnergy),
26  scEnergyError_(scEnergyError),
27  regEnergy_(regEnergy),
28  regEnergyError_(regEnergyError),
29  eta_(eta),
30  isEB_(isEB),
31  isMC_(isMC),
34  scale_(1.0), smearing_(0.0)
35  {}
37 
38 #ifndef SimplePhoton_STANDALONE
39  explicit SimplePhoton(const reco::Photon &in, unsigned int runNumber, bool isMC) ;
40  void writeTo(reco::Photon& out) const ;
41 #endif
42 
43  //accessors
44  double getNewEnergy() const {return newEnergy_;}
45  double getNewEnergyError() const {return newEnergyError_;}
46  double getScale() const {return scale_;}
47  double getSmearing() const {return smearing_;}
48  double getSCEnergy() const {return scEnergy_;}
49  double getSCEnergyError() const {return scEnergyError_;}
50  double getRegEnergy() const {return regEnergy_;}
51  double getRegEnergyError() const {return regEnergyError_;}
52  double getEta() const {return eta_;}
53  float getR9() const {return r9_;}
54  int getElClass() const {return eClass_;}
55  int getRunNumber() const {return run_;}
56  bool isEB() const {return isEB_;}
57  bool isMC() const {return isMC_;}
58 
59  //setters
60  void setNewEnergy(double newEnergy){newEnergy_ = newEnergy;}
61  void setNewEnergyError(double newEnergyError){newEnergyError_ = newEnergyError;}
62 
63  private:
64  double run_;
65  double eClass_;
66  double r9_;
67  double scEnergy_;
68  double scEnergyError_;
69  double regEnergy_;
71  double eta_;
72  bool isEB_;
73  bool isMC_;
74  double newEnergy_;
75  double newEnergyError_;
76  double scale_;
77  double smearing_;
78 };
79 
80 #endif
float getR9() const
Definition: SimplePhoton.h:53
double scEnergy_
Definition: SimplePhoton.h:67
double getNewEnergy() const
Definition: SimplePhoton.h:44
double getSCEnergy() const
Definition: SimplePhoton.h:48
int getRunNumber() const
Definition: SimplePhoton.h:55
double getScale() const
Definition: SimplePhoton.h:46
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
void setNewEnergyError(double newEnergyError)
Definition: SimplePhoton.h:61
double scale_
Definition: SimplePhoton.h:76
double eClass_
Definition: SimplePhoton.h:65
double getSmearing() const
Definition: SimplePhoton.h:47
double getEta() const
Definition: SimplePhoton.h:52
double scEnergyError_
Definition: SimplePhoton.h:68
double newEnergyError_
Definition: SimplePhoton.h:75
double smearing_
Definition: SimplePhoton.h:77
double regEnergy_
Definition: SimplePhoton.h:69
double newEnergy_
Definition: SimplePhoton.h:74
double getNewEnergyError() const
Definition: SimplePhoton.h:45
void setNewEnergy(double newEnergy)
Definition: SimplePhoton.h:60
bool isEB() const
Definition: SimplePhoton.h:56
double getRegEnergyError() const
Definition: SimplePhoton.h:51
bool isMC() const
Definition: SimplePhoton.h:57
double getSCEnergyError() const
Definition: SimplePhoton.h:49
double regEnergyError_
Definition: SimplePhoton.h:70
double getRegEnergy() const
Definition: SimplePhoton.h:50
int getElClass() const
Definition: SimplePhoton.h:54
void writeTo(reco::Photon &out) const
Definition: SimplePhoton.cc:20