CMS 3D CMS Logo

SimplePhoton.cc
Go to the documentation of this file.
1 #ifndef SimplePhoton_STANDALONE
3 
5  run_(runNumber),
6  eClass_(-1),
7  r9_(in.full5x5_r9()),
8  scEnergy_(in.superCluster()->rawEnergy() + (in.isEB() ? 0 : in.superCluster()->preshowerEnergy())),
9  scEnergyError_(-999.), // FIXME???
10  regEnergy_(in.getCorrectedEnergy(reco::Photon::P4type::regression2)),
11  regEnergyError_(in.getCorrectedEnergyError(reco::Photon::P4type::regression2)),
12  eta_(in.superCluster()->eta()),
13  isEB_(in.isEB()),
14  isMC_(isMC),
15  newEnergy_(regEnergy_),
16  newEnergyError_(regEnergyError_),
17  scale_(1.0), smearing_(0.0)
18 {}
19 
21  out.setCorrectedEnergy(reco::Photon::P4type::regression2, getNewEnergy(), getNewEnergyError(), true);
22 }
23 #endif
Definition: Photon.py:1
double getNewEnergy() const
Definition: SimplePhoton.h:44
void setCorrectedEnergy(P4type type, float E, float dE, bool toCand=true)
double getNewEnergyError() const
Definition: SimplePhoton.h:45
fixed size matrix
void writeTo(reco::Photon &out) const
Definition: SimplePhoton.cc:20