#include <RegressionHelper.h>
Classes | |
struct | Configuration |
struct | ESGetTokens |
Public Member Functions | |
void | applyCombinationRegression (reco::GsfElectron &ele) const |
void | applyEcalRegression (reco::GsfElectron &electron, const reco::VertexCollection &vertices, const EcalRecHitCollection &rechitsEB, const EcalRecHitCollection &rechitsEE) const |
void | checkSetup (const edm::EventSetup &) |
RegressionHelper (Configuration const &, bool useEcalReg, bool useCombinationReg, edm::ConsumesCollector &cc) | |
Private Member Functions | |
void | getEcalRegression (const reco::SuperCluster &sc, const reco::VertexCollection &vertices, const EcalRecHitCollection &rechitsEB, const EcalRecHitCollection &rechitsEE, double &energyFactor, double &errorFactor) const |
Private Attributes | |
const CaloGeometry * | caloGeometry_ |
const CaloTopology * | caloTopology_ |
const Configuration | cfg_ |
const GBRForest * | combinationReg_ |
bool | combinationRegressionInitialized_ = false |
const GBRForest * | ecalRegBarrel_ |
const GBRForest * | ecalRegEndcap_ |
const GBRForest * | ecalRegErrorBarrel_ |
const GBRForest * | ecalRegErrorEndcap_ |
bool | ecalRegressionInitialized_ = false |
const ESGetTokens | esGetTokens_ |
Definition at line 25 of file RegressionHelper.h.
RegressionHelper::RegressionHelper | ( | Configuration const & | config, |
bool | useEcalReg, | ||
bool | useCombinationReg, | ||
edm::ConsumesCollector & | cc | ||
) |
void RegressionHelper::applyCombinationRegression | ( | reco::GsfElectron & | ele | ) | const |
Definition at line 114 of file RegressionHelper.cc.
References reco::GsfElectron::BADTRACK, reco::GsfElectron::BIGBREM, reco::GsfElectron::classification(), combinationReg_, reco::GsfElectron::correctedEcalEnergy(), reco::GsfElectron::correctedEcalEnergyError(), reco::GsfElectron::ecalDriven(), HCALHighEnergyHPDFilter_cfi::energy, EgHLTOffHistBins_cfi::eOverP, reco::GsfElectron::GAP, GBRForest::GetResponse(), reco::GsfElectron::GOLDEN, reco::GsfElectron::isEB(), reco::GsfElectron::p4(), reco::GsfElectron::P4_COMBINATION, reco::GsfElectron::setP4(), reco::GsfElectron::SHOWERING, mathSSE::sqrt(), reco::GsfElectron::trackerDrivenSeed(), reco::GsfElectron::trackMomentumAtVtx(), reco::GsfElectron::trackMomentumError(), and mps_merge::weight.
Referenced by GsfElectronAlgo::createElectron().
void RegressionHelper::applyEcalRegression | ( | reco::GsfElectron & | electron, |
const reco::VertexCollection & | vertices, | ||
const EcalRecHitCollection & | rechitsEB, | ||
const EcalRecHitCollection & | rechitsEE | ||
) | const |
Definition at line 33 of file RegressionHelper.cc.
References submitPVResolutionJobs::err, getEcalRegression(), reco::GsfElectron::setCorrectedEcalEnergy(), reco::GsfElectron::setCorrectedEcalEnergyError(), reco::GsfElectron::superCluster(), and pwdgSkimBPark_cfi::vertices.
Referenced by GsfElectronAlgo::createElectron().
void RegressionHelper::checkSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 43 of file RegressionHelper.cc.
References RegressionHelper::ESGetTokens::caloGeometry, caloGeometry_, RegressionHelper::ESGetTokens::caloTopology, caloTopology_, cfg_, RegressionHelper::ESGetTokens::combinationReg, combinationReg_, combinationRegressionInitialized_, RegressionHelper::Configuration::combinationRegressionWeightFiles, RegressionHelper::Configuration::combinationRegressionWeightLabels, RegressionHelper::Configuration::combinationWeightsFromDB, RegressionHelper::ESGetTokens::ecalRegBarrel, ecalRegBarrel_, RegressionHelper::ESGetTokens::ecalRegEndcap, ecalRegEndcap_, RegressionHelper::ESGetTokens::ecalRegErrorBarrel, ecalRegErrorBarrel_, RegressionHelper::ESGetTokens::ecalRegErrorEndcap, ecalRegErrorEndcap_, ecalRegressionInitialized_, RegressionHelper::Configuration::ecalRegressionWeightFiles, RegressionHelper::Configuration::ecalRegressionWeightLabels, RegressionHelper::Configuration::ecalWeightsFromDB, esGetTokens_, timingPdfMaker::file1, edmOneToOneComparison::file2, contentValuesFiles::fullPath, and edm::EventSetup::getData().
Referenced by GsfElectronAlgo::checkSetup().
|
private |
Definition at line 89 of file RegressionHelper.cc.
References caloGeometry_, caloTopology_, EcalBarrel, EcalEndcap, ecalRegBarrel_, ecalRegEndcap_, ecalRegErrorBarrel_, ecalRegErrorEndcap_, Exception, EcalRegressionData::fill(), EcalRegressionData::fillVec(), GBRForest::GetResponse(), reco::SuperCluster::seed(), and pwdgSkimBPark_cfi::vertices.
Referenced by applyEcalRegression().
|
private |
Definition at line 71 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 70 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 67 of file RegressionHelper.h.
Referenced by checkSetup(), and RegressionHelper().
|
private |
Definition at line 79 of file RegressionHelper.h.
Referenced by applyCombinationRegression(), and checkSetup().
|
private |
Definition at line 73 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 75 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 76 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 77 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 78 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 72 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 68 of file RegressionHelper.h.
Referenced by checkSetup().