#include <RegressionHelper.h>
Classes | |
struct | Configuration |
Public Member Functions | |
void | applyCombinationRegression (reco::GsfElectron &ele) const |
void | applyEcalRegression (reco::GsfElectron &electron, const edm::Handle< reco::VertexCollection > &vertices, const edm::Handle< EcalRecHitCollection > &rechitsEB, const edm::Handle< EcalRecHitCollection > &rechitsEE) const |
void | checkSetup (const edm::EventSetup &) |
void | readEvent (const edm::Event &) |
RegressionHelper (const Configuration &) | |
~RegressionHelper () | |
Private Member Functions | |
void | getEcalRegression (const reco::SuperCluster &sc, const edm::Handle< reco::VertexCollection > &vertices, const edm::Handle< EcalRecHitCollection > &rechitsEB, const edm::Handle< EcalRecHitCollection > &rechitsEE, double &energyFactor, double &errorFactor) const |
Private Attributes | |
const CaloGeometry * | caloGeometry_ |
unsigned long long | caloGeometryCacheId_ |
const CaloTopology * | caloTopology_ |
unsigned long long | caloTopologyCacheId_ |
const Configuration | cfg_ |
const GBRForest * | combinationReg_ |
bool | combinationRegressionInitialized_ |
const GBRForest * | ecalRegBarrel_ |
const GBRForest * | ecalRegEndcap_ |
const GBRForest * | ecalRegErrorBarrel_ |
const GBRForest * | ecalRegErrorEndcap_ |
bool | ecalRegressionInitialized_ |
unsigned long long | regressionCacheId_ |
Definition at line 23 of file RegressionHelper.h.
RegressionHelper::RegressionHelper | ( | const Configuration & | config | ) |
Definition at line 11 of file RegressionHelper.cc.
RegressionHelper::~RegressionHelper | ( | ) |
Definition at line 21 of file RegressionHelper.cc.
void RegressionHelper::applyCombinationRegression | ( | reco::GsfElectron & | ele | ) | const |
Definition at line 152 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 edm::Handle< reco::VertexCollection > & | vertices, | ||
const edm::Handle< EcalRecHitCollection > & | rechitsEB, | ||
const edm::Handle< EcalRecHitCollection > & | rechitsEE | ||
) | const |
Definition at line 23 of file RegressionHelper.cc.
References runTheMatrix::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 33 of file RegressionHelper.cc.
References caloGeometry_, caloGeometryCacheId_, caloTopology_, caloTopologyCacheId_, cfg_, combinationReg_, combinationRegressionInitialized_, RegressionHelper::Configuration::combinationRegressionWeightFiles, RegressionHelper::Configuration::combinationRegressionWeightLabels, RegressionHelper::Configuration::combinationWeightsFromDB, ecalRegBarrel_, ecalRegEndcap_, ecalRegErrorBarrel_, ecalRegErrorEndcap_, ecalRegressionInitialized_, RegressionHelper::Configuration::ecalRegressionWeightFiles, RegressionHelper::Configuration::ecalRegressionWeightLabels, RegressionHelper::Configuration::ecalWeightsFromDB, timingPdfMaker::file1, edmOneToOneComparison::file2, contentValuesFiles::fullPath, edm::EventSetup::get(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), get, and regressionCacheId_.
Referenced by GsfElectronAlgo::checkSetup().
|
private |
Definition at line 127 of file RegressionHelper.cc.
References caloGeometry_, caloTopology_, EcalBarrel, EcalEndcap, ecalRegBarrel_, ecalRegEndcap_, ecalRegErrorBarrel_, ecalRegErrorEndcap_, Exception, EcalRegressionData::fill(), EcalRegressionData::fillVec(), GBRForest::GetResponse(), edm::Handle< T >::product(), reco::SuperCluster::seed(), and pwdgSkimBPark_cfi::vertices.
Referenced by applyEcalRegression().
void RegressionHelper::readEvent | ( | const edm::Event & | ) |
Definition at line 125 of file RegressionHelper.cc.
|
private |
Definition at line 57 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 62 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 56 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 61 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 55 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 70 of file RegressionHelper.h.
Referenced by applyCombinationRegression(), and checkSetup().
|
private |
Definition at line 59 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 66 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 67 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 68 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 69 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 58 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 63 of file RegressionHelper.h.
Referenced by checkSetup().