#include <ElectronEnergyCalibrator.h>
Public Member Functions | |
void | calibrate (SimpleElectron &electron, edm::StreamID const &) |
void | correctLinearity (SimpleElectron &electron) |
ElectronEnergyCalibrator (const std::string pathData, const std::string pathLinData, const std::string dataset, int correctionsType, bool applyLinearityCorrection, double lumiRatio, bool isMC, bool updateEnergyErrors, bool verbose, bool synchronization) | |
Private Member Functions | |
void | init () |
void | splitString (const std::string &fullstr, std::vector< std::string > &elements, const std::string &delimiter) |
double | stringToDouble (const std::string &str) |
Private Attributes | |
bool | applyLinearityCorrection_ |
int | correctionsType_ |
correctionValues | corrValArray [100] |
correctionValues | corrValMC |
std::string | dataset_ |
bool | isMC_ |
linearityCorrectionValues | linCorrValArray [100] |
double | lumiRatio_ |
int | nCorrValRaw |
double | newEnergy_ |
double | newEnergyError_ |
int | nLinCorrValRaw |
std::string | pathData_ |
std::string | pathLinData_ |
bool | synchronization_ |
bool | updateEnergyErrors_ |
bool | verbose_ |
Definition at line 41 of file ElectronEnergyCalibrator.h.
|
inline |
Definition at line 44 of file ElectronEnergyCalibrator.h.
References csvReporter::delimiter, metsig::electron, allElectronIsolations_cfi::elements, StGenEvtProducer_cfi::init, splitString(), harvestTrackValidationPlots::str, and AlCaHLTBitMon_QueryRunRegistry::string.
void ElectronEnergyCalibrator::calibrate | ( | SimpleElectron & | electron, |
edm::StreamID const & | streamID | ||
) |
Definition at line 164 of file ElectronEnergyCalibrator.cc.
References correctionValues::corrCat0, correctionValues::corrCat1, correctionValues::corrCat2, correctionValues::corrCat3, correctionValues::corrCat4, correctionValues::corrCat5, correctionValues::corrCat6, correctionValues::corrCat7, correctionsType_, corrValArray, gather_cfg::cout, dataset_, stringResolutionProvider_cfi::eta, Exception, edm::RandomNumberGenerator::getEngine(), SimpleElectron::getEta(), SimpleElectron::getR9(), SimpleElectron::getRegEnergy(), SimpleElectron::getRegEnergyError(), SimpleElectron::getRunNumber(), SimpleElectron::getSCEnergy(), SimpleElectron::getSCEnergyError(), i, edm::Service< T >::isAvailable(), SimpleElectron::isEB(), isMC_, lumiRatio_, nCorrValRaw, newEnergy_, newEnergyError_, Scenarios_cff::scale, SimpleElectron::setNewEnergy(), SimpleElectron::setNewEnergyError(), mathSSE::sqrt(), synchronization_, updateEnergyErrors_, and verbose_.
Referenced by CalibratedPatElectronProducer::produce(), and CalibratedElectronProducer::produce().
void ElectronEnergyCalibrator::correctLinearity | ( | SimpleElectron & | electron | ) |
Definition at line 451 of file ElectronEnergyCalibrator.cc.
References applyLinearityCorrection_, linearityCorrectionValues::corrCat0, linearityCorrectionValues::corrCat1, linearityCorrectionValues::corrCat2, linearityCorrectionValues::corrCat3, linearityCorrectionValues::corrCat4, linearityCorrectionValues::corrCat5, gather_cfg::cout, stringResolutionProvider_cfi::eta, JetChargeProducer_cfi::exp, SimpleElectron::getCombinedMomentum(), SimpleElectron::getElClass(), SimpleElectron::getEta(), i, SimpleElectron::isEB(), isMC_, linCorrValArray, nLinCorrValRaw, AlCaHLTBitMon_ParallelJobs::p, EnergyCorrector::pt, AlignmentTrackSelector_cfi::ptMax, ALCARECOTkAlBeamHalo_cff::ptMin, SimpleElectron::setCombinedMomentum(), funct::sin(), theta(), and verbose_.
Referenced by CalibratedPatElectronProducer::produce(), and CalibratedElectronProducer::produce().
|
private |
Definition at line 23 of file ElectronEnergyCalibrator.cc.
References applyLinearityCorrection_, correctionValues::corrCat0, linearityCorrectionValues::corrCat0, correctionValues::corrCat1, linearityCorrectionValues::corrCat1, correctionValues::corrCat2, linearityCorrectionValues::corrCat2, correctionValues::corrCat3, linearityCorrectionValues::corrCat3, correctionValues::corrCat4, linearityCorrectionValues::corrCat4, correctionValues::corrCat5, linearityCorrectionValues::corrCat5, correctionValues::corrCat6, correctionValues::corrCat7, corrValArray, gather_cfg::cout, csvReporter::delimiter, Exception, groupFilesInBlocks::fin, isMC_, linCorrValArray, nCorrValRaw, nLinCorrValRaw, correctionValues::nRunMax, correctionValues::nRunMin, pathData_, pathLinData_, linearityCorrectionValues::ptMax, linearityCorrectionValues::ptMin, alignCSCRings::s, splitString(), AlCaHLTBitMon_QueryRunRegistry::string, stringToDouble(), and verbose_.
|
private |
Definition at line 142 of file ElectronEnergyCalibrator.cc.
Referenced by init().
|
private |
Definition at line 155 of file ElectronEnergyCalibrator.cc.
References heppy_batch::val.
Referenced by init().
|
private |
Definition at line 86 of file ElectronEnergyCalibrator.h.
Referenced by correctLinearity(), and init().
|
private |
Definition at line 85 of file ElectronEnergyCalibrator.h.
Referenced by calibrate().
|
private |
Definition at line 93 of file ElectronEnergyCalibrator.h.
Referenced by calibrate(), and init().
|
private |
Definition at line 94 of file ElectronEnergyCalibrator.h.
|
private |
Definition at line 84 of file ElectronEnergyCalibrator.h.
Referenced by calibrate().
|
private |
Definition at line 88 of file ElectronEnergyCalibrator.h.
Referenced by calibrate(), correctLinearity(), and init().
|
private |
Definition at line 95 of file ElectronEnergyCalibrator.h.
Referenced by correctLinearity(), and init().
|
private |
Definition at line 87 of file ElectronEnergyCalibrator.h.
Referenced by calibrate().
|
private |
Definition at line 96 of file ElectronEnergyCalibrator.h.
Referenced by calibrate(), and init().
|
private |
Definition at line 79 of file ElectronEnergyCalibrator.h.
Referenced by calibrate().
|
private |
Definition at line 80 of file ElectronEnergyCalibrator.h.
Referenced by calibrate().
|
private |
Definition at line 96 of file ElectronEnergyCalibrator.h.
Referenced by correctLinearity(), and init().
|
private |
Definition at line 82 of file ElectronEnergyCalibrator.h.
Referenced by init().
|
private |
Definition at line 83 of file ElectronEnergyCalibrator.h.
Referenced by init().
|
private |
Definition at line 91 of file ElectronEnergyCalibrator.h.
Referenced by calibrate().
|
private |
Definition at line 89 of file ElectronEnergyCalibrator.h.
Referenced by calibrate().
|
private |
Definition at line 90 of file ElectronEnergyCalibrator.h.
Referenced by calibrate(), correctLinearity(), and init().