#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_ |
EcalClusterLocal | ecl_ |
unsigned long long | regressionCacheId_ |
Definition at line 29 of file RegressionHelper.h.
RegressionHelper::RegressionHelper | ( | const Configuration & | config | ) |
Definition at line 11 of file RegressionHelper.cc.
RegressionHelper::~RegressionHelper | ( | ) |
Definition at line 16 of file RegressionHelper.cc.
void RegressionHelper::applyCombinationRegression | ( | reco::GsfElectron & | ele | ) | const |
Definition at line 165 of file RegressionHelper.cc.
References reco::GsfElectron::BADTRACK, reco::GsfElectron::BIGBREM, reco::GsfElectron::classification(), combinationReg_, reco::GsfElectron::correctedEcalEnergy(), reco::GsfElectron::correctedEcalEnergyError(), reco::GsfElectron::ecalDriven(), relval_parameters_module::energy, energyError(), 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 histoStyle::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 18 of file RegressionHelper.cc.
References getEcalRegression(), reco::GsfElectron::setCorrectedEcalEnergy(), reco::GsfElectron::setCorrectedEcalEnergyError(), reco::GsfElectron::superCluster(), and HLT_25ns14e33_v1_cff::vertices.
Referenced by GsfElectronAlgo::createElectron().
void RegressionHelper::checkSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 29 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, contentValuesFiles::fullPath, edm::EventSetup::get(), edm::eventsetup::EventSetupRecord::get(), and regressionCacheId_.
Referenced by GsfElectronAlgo::checkSetup().
|
private |
Definition at line 139 of file RegressionHelper.cc.
References caloGeometry_, caloTopology_, EcalBarrel, EcalEndcap, ecalRegBarrel_, ecalRegEndcap_, ecalRegErrorBarrel_, ecalRegErrorEndcap_, Exception, EcalRegressionData::fill(), EcalRegressionData::fillVec(), GBRForest::GetResponse(), edm::Handle< T >::product(), and reco::SuperCluster::seed().
Referenced by applyEcalRegression().
void RegressionHelper::readEvent | ( | const edm::Event & | ) |
Definition at line 137 of file RegressionHelper.cc.
|
private |
Definition at line 65 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 70 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 64 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 69 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 63 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 78 of file RegressionHelper.h.
Referenced by applyCombinationRegression(), and checkSetup().
|
private |
Definition at line 67 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 74 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
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 66 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 80 of file RegressionHelper.h.
|
private |
Definition at line 71 of file RegressionHelper.h.
Referenced by checkSetup().