CMS 3D CMS Logo

SimpleElectron.cc
Go to the documentation of this file.
1 #ifndef SimpleElectron_STANDALONE
4  : run_(runNumber),
5  eClass_(int(in.classification())),
6  r9_(in.full5x5_r9()),
7  scEnergy_(in.superCluster()->rawEnergy() + (in.isEB() ? 0 : in.superCluster()->preshowerEnergy())),
8  scEnergyError_(-999.), // FIXME???
9  trackMomentum_(in.trackMomentumAtVtx().R()),
10  trackMomentumError_(in.trackMomentumError()),
11  regEnergy_(in.correctedEcalEnergy()),
12  regEnergyError_(in.correctedEcalEnergyError()),
13  eta_(in.superCluster()->eta()),
14  isEB_(in.isEB()),
15  isMC_(isMC),
16  isEcalDriven_(in.ecalDriven()),
17  isTrackerDriven_(in.trackerDrivenSeed()),
18  newEnergy_(regEnergy_),
19  newEnergyError_(regEnergyError_),
20  combinedMomentum_(in.p4(reco::GsfElectron::P4_COMBINATION).P()),
21  combinedMomentumError_(in.p4Error(reco::GsfElectron::P4_COMBINATION)),
22  scale_(1.0),
23  smearing_(0.0) {}
24 
26  math::XYZTLorentzVector oldMomentum = out.p4();
27  math::XYZTLorentzVector newMomentum =
28  math::XYZTLorentzVector(oldMomentum.x() * getCombinedMomentum() / oldMomentum.t(),
29  oldMomentum.y() * getCombinedMomentum() / oldMomentum.t(),
30  oldMomentum.z() * getCombinedMomentum() / oldMomentum.t(),
32  out.setCorrectedEcalEnergy(getNewEnergy());
33  out.setCorrectedEcalEnergyError(getNewEnergyError());
34  out.correctMomentum(newMomentum, getTrackerMomentumError(), getCombinedMomentumError());
35 }
36 #endif
SimpleElectron::getTrackerMomentumError
double getTrackerMomentumError() const
Definition: SimpleElectron.h:66
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
SimpleElectron.h
convertSQLiteXML.runNumber
runNumber
Definition: convertSQLiteXML.py:91
SimpleElectron::getCombinedMomentum
double getCombinedMomentum() const
Definition: SimpleElectron.h:57
submitPVValidationJobs.isMC
list isMC
Definition: submitPVValidationJobs.py:658
PVValHelper::eta
Definition: PVValidationHelpers.h:69
reco::GsfElectron
Definition: GsfElectron.h:35
SimpleElectron::SimpleElectron
SimpleElectron()
Definition: SimpleElectron.h:10
recoMuon::in
Definition: RecoMuonEnumerators.h:6
SimpleElectron::writeTo
void writeTo(reco::GsfElectron &out) const
Definition: SimpleElectron.cc:25
createfilelist.int
int
Definition: createfilelist.py:10
p4
double p4[4]
Definition: TauolaWrapper.h:92
SimpleElectron::getNewEnergyError
double getNewEnergyError() const
Definition: SimpleElectron.h:56
SimpleElectron::getNewEnergy
double getNewEnergy() const
Definition: SimpleElectron.h:55
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
SimpleElectron::getCombinedMomentumError
double getCombinedMomentumError() const
Definition: SimpleElectron.h:58
P
std::pair< OmniClusterRef, TrackingParticleRef > P
Definition: BDHadronTrackMonitoringAnalyzer.cc:202
dttmaxenums::R
Definition: DTTMax.h:29