#include <ElectronDNNEstimator.h>
Public Member Functions | |
ElectronDNNEstimator (const egammaTools::DNNConfiguration &, const bool useEBModelInGap) | |
std::vector< std::vector< float > > | evaluate (const reco::GsfElectronCollection &ele, const std::vector< tensorflow::Session * > &sessions) const |
std::map< std::string, float > | getInputsVars (const reco::GsfElectron &ele) const |
std::vector < tensorflow::Session * > | getSessions () const |
Static Public Attributes | |
static const std::vector < std::string > | dnnAvaibleInputs |
static constexpr float | ecalBarrelMaxEtaNoGap = 1.485 |
static constexpr float | ecalBarrelMaxEtaWithGap = 1.566 |
static constexpr float | ptThreshold = 10. |
Private Attributes | |
const egammaTools::EgammaDNNHelper | dnnHelper_ |
const bool | useEBModelInGap_ |
Definition at line 12 of file ElectronDNNEstimator.h.
ElectronDNNEstimator::ElectronDNNEstimator | ( | const egammaTools::DNNConfiguration & | cfg, |
const bool | useEBModelInGap | ||
) |
Definition at line 29 of file ElectronDNNEstimator.cc.
std::vector< std::vector< float > > ElectronDNNEstimator::evaluate | ( | const reco::GsfElectronCollection & | ele, |
const std::vector< tensorflow::Session * > & | sessions | ||
) | const |
Definition at line 144 of file ElectronDNNEstimator.cc.
References dnnHelper_, egammaTools::EgammaDNNHelper::evaluate(), getInputsVars(), and PixelMapPlotter::inputs.
std::map< std::string, float > ElectronDNNEstimator::getInputsVars | ( | const reco::GsfElectron & | ele | ) | const |
Definition at line 87 of file ElectronDNNEstimator.cc.
References funct::abs(), reco::GsfElectron::closestCtfTrackNLayers(), reco::GsfElectron::closestCtfTrackNormChi2(), reco::GsfElectron::convVtxFitProb(), reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::dr03EcalRecHitSumEt(), reco::GsfElectron::dr03HcalTowerSumEt(), reco::GsfElectron::dr03TkSumPt(), reco::GsfElectron::ecalEnergy(), reco::GsfElectron::ecalEnergyError(), reco::GsfElectron::ecalPFClusterIso(), reco::GsfElectron::eEleClusterOverPout(), reco::GsfElectron::eSuperClusterOverP(), reco::LeafCandidate::eta(), reco::GsfElectron::fbrem(), reco::GsfElectron::full5x5_e1x5(), reco::GsfElectron::full5x5_e2x5Max(), reco::GsfElectron::full5x5_e5x5(), reco::GsfElectron::full5x5_hcalOverEcal(), reco::GsfElectron::full5x5_hcalOverEcalValid(), reco::GsfElectron::full5x5_r9(), reco::GsfElectron::full5x5_sigmaIetaIeta(), reco::GsfElectron::full5x5_sigmaIphiIphi(), reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), reco::GsfElectron::hcalOverEcalValid(), reco::GsfElectron::hcalPFClusterIso(), reco::HitPattern::MISSING_INNER_HITS, reco::GsfElectron::numberOfBrems(), reco::LeafCandidate::pt(), reco::GsfElectron::superCluster(), reco::GsfElectron::superClusterFbrem(), reco::GsfElectron::trackMomentumAtVtx(), reco::GsfElectron::trackMomentumError(), and L1TEGammaDiff_cfi::variables.
Referenced by evaluate().
std::vector< tensorflow::Session * > ElectronDNNEstimator::getSessions | ( | ) | const |
Definition at line 39 of file ElectronDNNEstimator.cc.
References dnnHelper_, and egammaTools::EgammaDNNHelper::getSessions().
|
static |
Definition at line 29 of file ElectronDNNEstimator.h.
|
private |
Definition at line 36 of file ElectronDNNEstimator.h.
Referenced by evaluate(), and getSessions().
|
static |
Definition at line 33 of file ElectronDNNEstimator.h.
|
static |
Definition at line 32 of file ElectronDNNEstimator.h.
|
static |
Definition at line 31 of file ElectronDNNEstimator.h.
|
private |
Definition at line 38 of file ElectronDNNEstimator.h.