#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 24 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(), randomXiThetaGunProducer_cfi::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 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 18 of file RegressionHelper.cc.
References getEcalRegression(), reco::GsfElectron::setCorrectedEcalEnergy(), reco::GsfElectron::setCorrectedEcalEnergyError(), reco::GsfElectron::superCluster(), and electrons_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, edmOneToOneComparison::file1, edmOneToOneComparison::file2, edm::EventSetup::get(), edm::eventsetup::EventSetupRecordImplementation< T >::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 60 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 65 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 59 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 64 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 58 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 73 of file RegressionHelper.h.
Referenced by applyCombinationRegression(), and checkSetup().
|
private |
Definition at line 62 of file RegressionHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 69 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 71 of file RegressionHelper.h.
Referenced by checkSetup(), and getEcalRegression().
|
private |
Definition at line 72 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 66 of file RegressionHelper.h.
Referenced by checkSetup().