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
electrons_cff.r9
r9
Definition: electrons_cff.py:360
SimplePhoton::getScale
double getScale() const
Definition: SimplePhoton.h:45
SimplePhoton::newEnergy_
double newEnergy_
Definition: SimplePhoton.h:73
SimplePhoton::getSmearing
double getSmearing() const
Definition: SimplePhoton.h:46
SimplePhoton::SimplePhoton
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
SimplePhoton::setNewEnergy
void setNewEnergy(double newEnergy)
Definition: SimplePhoton.h:59
SimplePhoton::eClass_
double eClass_
Definition: SimplePhoton.h:64
SimplePhoton::getRegEnergyError
double getRegEnergyError() const
Definition: SimplePhoton.h:50
SimplePhoton::newEnergyError_
double newEnergyError_
Definition: SimplePhoton.h:74
SimplePhoton::getRegEnergy
double getRegEnergy() const
Definition: SimplePhoton.h:49
SimplePhoton::getSCEnergy
double getSCEnergy() const
Definition: SimplePhoton.h:47
SimplePhoton::writeTo
void writeTo(reco::Photon &out) const
Definition: SimplePhoton.cc:20
SimplePhoton::getNewEnergyError
double getNewEnergyError() const
Definition: SimplePhoton.h:44
convertSQLiteXML.runNumber
runNumber
Definition: convertSQLiteXML.py:91
SimplePhoton::getR9
float getR9() const
Definition: SimplePhoton.h:52
SimplePhoton::regEnergyError_
double regEnergyError_
Definition: SimplePhoton.h:69
Photon.h
PVValHelper::eta
Definition: PVValidationHelpers.h:70
SimplePhoton::smearing_
double smearing_
Definition: SimplePhoton.h:76
SimplePhoton::regEnergy_
double regEnergy_
Definition: SimplePhoton.h:68
recoMuon::in
Definition: RecoMuonEnumerators.h:6
SimplePhoton::setNewEnergyError
void setNewEnergyError(double newEnergyError)
Definition: SimplePhoton.h:60
SimplePhoton::scale_
double scale_
Definition: SimplePhoton.h:75
SimplePhoton::scEnergy_
double scEnergy_
Definition: SimplePhoton.h:66
SimplePhoton::eta_
double eta_
Definition: SimplePhoton.h:70
reco::Photon
Definition: Photon.h:22
SimplePhoton::isEB_
bool isEB_
Definition: SimplePhoton.h:71
SimplePhoton::scEnergyError_
double scEnergyError_
Definition: SimplePhoton.h:67
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SimplePhoton::~SimplePhoton
~SimplePhoton()
Definition: SimplePhoton.h:35
SimplePhoton::getSCEnergyError
double getSCEnergyError() const
Definition: SimplePhoton.h:48
SimplePhoton::getNewEnergy
double getNewEnergy() const
Definition: SimplePhoton.h:43
SimplePhoton::getElClass
int getElClass() const
Definition: SimplePhoton.h:53
SimplePhoton::isEB
bool isEB() const
Definition: SimplePhoton.h:55
SimplePhoton::isMC
bool isMC() const
Definition: SimplePhoton.h:56
SimplePhoton::getRunNumber
int getRunNumber() const
Definition: SimplePhoton.h:54
SimplePhoton::r9_
double r9_
Definition: SimplePhoton.h:65
SimplePhoton
Definition: SimplePhoton.h:8
SimplePhoton::SimplePhoton
SimplePhoton()
Definition: SimplePhoton.h:10
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
SimplePhoton::run_
double run_
Definition: SimplePhoton.h:63
SimplePhoton::getEta
double getEta() const
Definition: SimplePhoton.h:51
SimplePhoton::isMC_
bool isMC_
Definition: SimplePhoton.h:72