#include <PhotonDNNEstimator.h>
Public Member Functions | |
std::vector< std::vector< float > > | evaluate (const reco::PhotonCollection &ele, const std::vector< tensorflow::Session * > &sessions) const |
std::map< std::string, float > | getInputsVars (const reco::Photon &ele) const |
std::vector < tensorflow::Session * > | getSessions () const |
PhotonDNNEstimator (const egammaTools::DNNConfiguration &, const bool useEBModelInGap) | |
Static Public Attributes | |
static const std::vector < std::string > | dnnAvaibleInputs |
static constexpr float | ecalBarrelMaxEtaNoGap = 1.485 |
static constexpr float | ecalBarrelMaxEtaWithGap = 1.566 |
Private Attributes | |
const egammaTools::EgammaDNNHelper | dnnHelper_ |
const bool | useEBModelInGap_ |
Definition at line 13 of file PhotonDNNEstimator.h.
PhotonDNNEstimator::PhotonDNNEstimator | ( | const egammaTools::DNNConfiguration & | cfg, |
const bool | useEBModelInGap | ||
) |
Definition at line 23 of file PhotonDNNEstimator.cc.
std::vector< std::vector< float > > PhotonDNNEstimator::evaluate | ( | const reco::PhotonCollection & | ele, |
const std::vector< tensorflow::Session * > & | sessions | ||
) | const |
Definition at line 69 of file PhotonDNNEstimator.cc.
References dnnHelper_, egammaTools::EgammaDNNHelper::evaluate(), getInputsVars(), and PixelMapPlotter::inputs.
std::map< std::string, float > PhotonDNNEstimator::getInputsVars | ( | const reco::Photon & | ele | ) | const |
Definition at line 48 of file PhotonDNNEstimator.cc.
References reco::Photon::ecalPFClusterIso(), reco::Photon::ecalRecHitSumEtConeDR03(), reco::LeafCandidate::eta(), reco::Photon::full5x5_r9(), reco::Photon::full5x5_showerShapeVariables(), reco::Photon::full5x5_sigmaIetaIeta(), reco::Photon::hadTowOverEm(), reco::Photon::hadTowOverEmValid(), reco::Photon::hasPixelSeed(), reco::Photon::hcalPFClusterIso(), reco::Photon::hcalTowerSumEtConeDR03(), reco::LeafCandidate::pt(), reco::Photon::sigmaIetaIeta(), reco::Photon::ShowerShape::sigmaIetaIphi, reco::Photon::trkSumPtHollowConeDR03(), and L1TEGammaDiff_cfi::variables.
Referenced by evaluate().
std::vector< tensorflow::Session * > PhotonDNNEstimator::getSessions | ( | ) | const |
Definition at line 32 of file PhotonDNNEstimator.cc.
References dnnHelper_, and egammaTools::EgammaDNNHelper::getSessions().
|
static |
Definition at line 30 of file PhotonDNNEstimator.h.
|
private |
Definition at line 36 of file PhotonDNNEstimator.h.
Referenced by evaluate(), and getSessions().
|
static |
Definition at line 33 of file PhotonDNNEstimator.h.
|
static |
Definition at line 32 of file PhotonDNNEstimator.h.
|
private |
Definition at line 38 of file PhotonDNNEstimator.h.