Main Page
Namespaces
Classes
Package Documentation
EgammaAnalysis
ElectronTools
interface
SimplePhoton.h
Go to the documentation of this file.
1
#ifndef SimplePhoton_H
2
#define SimplePhoton_H
3
4
#ifndef SimpleElectron_STANDALONE
5
#include "
DataFormats/EgammaCandidates/interface/Photon.h
"
6
#endif
7
8
class
SimplePhoton
{
9
public
:
10
SimplePhoton
() {}
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),
32
newEnergy_
(
regEnergy_
),
33
newEnergyError_
(
regEnergyError_
),
34
scale_
(1.0),
smearing_
(0.0)
35
{}
36
~SimplePhoton
() {}
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_
;
70
double
regEnergyError_
;
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
SimplePhoton::run_
double run_
Definition:
SimplePhoton.h:64
SimplePhoton::getR9
float getR9() const
Definition:
SimplePhoton.h:53
SimplePhoton::isMC_
bool isMC_
Definition:
SimplePhoton.h:73
SimplePhoton::scEnergy_
double scEnergy_
Definition:
SimplePhoton.h:67
stringResolutionProvider_cfi.eta
eta
Definition:
stringResolutionProvider_cfi.py:14
SimplePhoton::getNewEnergy
double getNewEnergy() const
Definition:
SimplePhoton.h:44
SimplePhoton::getSCEnergy
double getSCEnergy() const
Definition:
SimplePhoton.h:48
SimplePhoton::getRunNumber
int getRunNumber() const
Definition:
SimplePhoton.h:55
SimplePhoton::getScale
double getScale() const
Definition:
SimplePhoton.h:46
Photon.h
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::r9_
double r9_
Definition:
SimplePhoton.h:66
SimplePhoton::setNewEnergyError
void setNewEnergyError(double newEnergyError)
Definition:
SimplePhoton.h:61
SimplePhoton::scale_
double scale_
Definition:
SimplePhoton.h:76
SimplePhoton::isEB_
bool isEB_
Definition:
SimplePhoton.h:72
SimplePhoton::eClass_
double eClass_
Definition:
SimplePhoton.h:65
SimplePhoton::getSmearing
double getSmearing() const
Definition:
SimplePhoton.h:47
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
SimplePhoton::getEta
double getEta() const
Definition:
SimplePhoton.h:52
reco::Photon
Definition:
Photon.h:22
SimplePhoton::scEnergyError_
double scEnergyError_
Definition:
SimplePhoton.h:68
SimplePhoton::newEnergyError_
double newEnergyError_
Definition:
SimplePhoton.h:75
SimplePhoton::smearing_
double smearing_
Definition:
SimplePhoton.h:77
SimplePhoton::regEnergy_
double regEnergy_
Definition:
SimplePhoton.h:69
SimplePhoton::newEnergy_
double newEnergy_
Definition:
SimplePhoton.h:74
SimplePhoton::getNewEnergyError
double getNewEnergyError() const
Definition:
SimplePhoton.h:45
convertSQLiteXML.runNumber
runNumber
Definition:
convertSQLiteXML.py:90
SimplePhoton
Definition:
SimplePhoton.h:8
findQualityFiles.run
run
Definition:
findQualityFiles.py:408
SimplePhoton::setNewEnergy
void setNewEnergy(double newEnergy)
Definition:
SimplePhoton.h:60
SimplePhoton::isEB
bool isEB() const
Definition:
SimplePhoton.h:56
SimplePhoton::getRegEnergyError
double getRegEnergyError() const
Definition:
SimplePhoton.h:51
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
SimplePhoton::~SimplePhoton
~SimplePhoton()
Definition:
SimplePhoton.h:36
SimplePhoton::isMC
bool isMC() const
Definition:
SimplePhoton.h:57
SimplePhoton::eta_
double eta_
Definition:
SimplePhoton.h:71
SimplePhoton::getSCEnergyError
double getSCEnergyError() const
Definition:
SimplePhoton.h:49
SimplePhoton::SimplePhoton
SimplePhoton()
Definition:
SimplePhoton.h:10
SimplePhoton::regEnergyError_
double regEnergyError_
Definition:
SimplePhoton.h:70
SimplePhoton::getRegEnergy
double getRegEnergy() const
Definition:
SimplePhoton.h:50
SimplePhoton::getElClass
int getElClass() const
Definition:
SimplePhoton.h:54
SimplePhoton::writeTo
void writeTo(reco::Photon &out) const
Definition:
SimplePhoton.cc:20
Generated for CMSSW Reference Manual by
1.8.11