Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
static const OutputCollection & | GetOutputs () |
static void | globalEndJob (const deep_tau::DeepTauCache *cache_) |
static std::unique_ptr< deep_tau::DeepTauCache > | initializeGlobalCache (const edm::ParameterSet &cfg) |
Static Public Member Functions inherited from deep_tau::DeepTauBase | |
static void | globalEndJob (const DeepTauCache *cache) |
static std::unique_ptr< DeepTauCache > | initializeGlobalCache (const edm::ParameterSet &cfg) |
Static Public Attributes | |
static constexpr float | default_value = -999. |
Private Member Functions | |
void | checkInputs (const tensorflow::Tensor &inputs, const char *block_name, int n_inputs, int n_eta=1, int n_phi=1) const |
template<typename CandidateCastType , typename TauCastType > | |
void | createConvFeatures (const TauCastType &tau, const size_t tau_index, const edm::RefToBase< reco::BaseTau > tau_ref, const reco::Vertex &pv, double rho, const std::vector< pat::Electron > *electrons, const std::vector< pat::Muon > *muons, const edm::View< reco::Candidate > &pfCands, const CellGrid &grid, TauFunc tau_funcs, bool is_inner) |
template<typename CandidateCastType , typename TauCastType > | |
void | createEgammaBlockInputs (unsigned idx, const TauCastType &tau, const size_t tau_index, const edm::RefToBase< reco::BaseTau > tau_ref, const reco::Vertex &pv, double rho, const std::vector< pat::Electron > *electrons, const edm::View< reco::Candidate > &pfCands, const Cell &cell_map, TauFunc tau_funcs, bool is_inner) |
template<typename CandidateCastType , typename TauCastType > | |
void | createHadronsBlockInputs (unsigned idx, const TauCastType &tau, const size_t tau_index, const edm::RefToBase< reco::BaseTau > tau_ref, const reco::Vertex &pv, double rho, const edm::View< reco::Candidate > &pfCands, const Cell &cell_map, TauFunc tau_funcs, bool is_inner) |
template<typename dnn , typename CandidateCastType , typename TauCastType > | |
tensorflow::Tensor | createInputsV1 (const TauCastType &tau, const size_t tau_index, const edm::RefToBase< reco::BaseTau > tau_ref, const std::vector< pat::Electron > *electrons, const std::vector< pat::Muon > *muons, TauFunc tau_funcs) const |
template<typename CandidateCastType , typename TauCastType > | |
void | createMuonBlockInputs (unsigned idx, const TauCastType &tau, const size_t tau_index, const edm::RefToBase< reco::BaseTau > tau_ref, const reco::Vertex &pv, double rho, const std::vector< pat::Muon > *muons, const edm::View< reco::Candidate > &pfCands, const Cell &cell_map, TauFunc tau_funcs, bool is_inner) |
template<typename CandidateCastType , typename TauCastType > | |
void | createTauBlockInputs (const TauCastType &tau, const size_t &tau_index, const edm::RefToBase< reco::BaseTau > tau_ref, const reco::Vertex &pv, double rho, TauFunc tau_funcs) |
template<typename Collection , typename TauCastType > | |
void | fillGrids (const TauCastType &tau, const Collection &objects, CellGrid &inner_grid, CellGrid &outer_grid) |
tensorflow::Tensor | getPartialPredictions (bool is_inner) |
tensorflow::Tensor | getPredictions (edm::Event &event, edm::Handle< TauCollection > taus) override |
template<typename CandidateCastType , typename TauCastType > | |
void | getPredictionsV1 (TauCollection::const_reference &tau, const size_t tau_index, const edm::RefToBase< reco::BaseTau > tau_ref, const std::vector< pat::Electron > *electrons, const std::vector< pat::Muon > *muons, std::vector< tensorflow::Tensor > &pred_vector, TauFunc tau_funcs) |
template<typename CandidateCastType , typename TauCastType > | |
void | getPredictionsV2 (TauCollection::const_reference &tau, const size_t tau_index, const edm::RefToBase< reco::BaseTau > tau_ref, const std::vector< pat::Electron > *electrons, const std::vector< pat::Muon > *muons, const edm::View< reco::Candidate > &pfCands, const reco::Vertex &pv, double rho, std::vector< tensorflow::Tensor > &pred_vector, TauFunc tau_funcs) |
void | setCellConvFeatures (tensorflow::Tensor &convTensor, const tensorflow::Tensor &features, unsigned batch_idx, int eta_index, int phi_index) |
Static Private Member Functions | |
static void | calculateElectronClusterVars (const pat::Electron *ele, float &elecEe, float &elecEgamma) |
static bool | calculateElectronClusterVarsV2 (const pat::Electron &ele, float &cc_ele_energy, float &cc_gamma_energy, int &cc_n_gamma) |
template<typename TauCastType > | |
static bool | calculateGottfriedJacksonAngleDifference (const TauCastType &tau, const size_t tau_index, double &gj_diff, TauFunc tau_funcs) |
template<typename TauCastType > | |
static float | calculateGottfriedJacksonAngleDifference (const TauCastType &tau, const size_t tau_index, TauFunc tau_funcs) |
template<typename TauCastType > | |
static const pat::Electron * | findMatchedElectron (const TauCastType &tau, const std::vector< pat::Electron > *electrons, double deltaR) |
static double | getInnerSignalConeRadius (double pt) |
template<typename T > | |
static float | getValue (T value) |
template<typename T > | |
static float | getValueLinear (T value, float min_value, float max_value, bool positive) |
template<typename T > | |
static float | getValueNorm (T value, float mean, float sigma, float n_sigmas_max=5) |
static bool | isAbove (double value, double min) |
static bool | isInEcalCrack (double eta) |
template<typename CandidateCollection , typename TauCastType > | |
static void | processIsolationPFComponents (const TauCastType &tau, const CandidateCollection &candidates, LorentzVectorXYZ &p4, float &pt, float &d_eta, float &d_phi, float &m, float &n) |
template<typename CandidateCollection , typename TauCastType > | |
static void | processSignalPFComponents (const TauCastType &tau, const CandidateCollection &candidates, LorentzVectorXYZ &p4_inner, LorentzVectorXYZ &p4_outer, float &pt_inner, float &dEta_inner, float &dPhi_inner, float &m_inner, float &pt_outer, float &dEta_outer, float &dPhi_outer, float &m_outer, float &n_inner, float &n_outer) |
Static Private Attributes | |
static constexpr float | pi = M_PI |
Definition at line 1066 of file DeepTauId.cc.
|
inlineexplicit |
Definition at line 1152 of file DeepTauId.cc.
References deep_tau::DeepTauBase::cache_, convTensor_, eGammaTensor_, Exception, deep_tau::DeepTauCache::getGraph(), getPartialPredictions(), hadronsTensor_, input_layer_, muonTensor_, dqmiodumpmetadata::n, Skims_PA_cff::name, output_layer_, setCellConvFeatures(), tauBlockTensor_, version_, and zeroOutputTensor_.
|
inlinestaticprivate |
Definition at line 2427 of file DeepTauId.cc.
References default_value, HCALHighEnergyHPDFilter_cfi::energy, and pat::Electron::superCluster().
Referenced by createInputsV1().
|
inlinestaticprivate |
Definition at line 1240 of file DeepTauId.cc.
References HCALHighEnergyHPDFilter_cfi::energy, and pat::Electron::superCluster().
Referenced by createEgammaBlockInputs().
|
inlinestaticprivate |
Definition at line 2521 of file DeepTauId.cc.
References funct::abs(), funct::pow(), and metsig::tau.
Referenced by calculateGottfriedJacksonAngleDifference(), createInputsV1(), and createTauBlockInputs().
|
inlinestaticprivate |
Definition at line 2543 of file DeepTauId.cc.
References calculateGottfriedJacksonAngleDifference(), default_value, and metsig::tau.
|
inlineprivate |
Definition at line 1263 of file DeepTauId.cc.
References gather_cfg::cout, debug_level, PVValHelper::eta, Exception, alignBH_cfg::fixed, dqmMemoryStats::float, input, PixelMapPlotter::inputs, edm::isNotFinite(), dqmdumpme::k, and phi.
Referenced by createEgammaBlockInputs(), createHadronsBlockInputs(), createMuonBlockInputs(), and createTauBlockInputs().
|
inlineprivate |
Definition at line 1527 of file DeepTauId.cc.
References convTensor_, eGammaTensor_, pwdgSkimBPark_cfi::electrons, PVValHelper::eta, getPartialPredictions(), getRunAppsInfo::grid, hadronsTensor_, heavyIonCSV_trainingSettings::idx, createfilelist::int, PDWG_BPHSkim_cff::muons, muonTensor_, phi, MetAnalyzer::pv(), rho, setCellConvFeatures(), metsig::tau, and zeroOutputTensor_.
|
inlineprivate |
Definition at line 1709 of file DeepTauId.cc.
References funct::abs(), edm::View< T >::at(), calculateElectronClusterVarsV2(), checkInputs(), hltPixelTracks_cff::chi2, default_value, HLT_FULL_cff::dPhi, eGammaTensor_, nanoDQM_cff::Electron, pwdgSkimBPark_cfi::electrons, f, dqmMemoryStats::float, get, getValue(), getValueLinear(), getValueNorm(), heavyIonCSV_trainingSettings::idx, PixelMapPlotter::inputs, isInEcalCrack(), ndof, or, MetAnalyzer::pv(), rho, ZElectronSkim_cff::rho, metsig::tau, runTauDisplay::tau_eta, and runTauDisplay::tau_pt.
|
inlineprivate |
Definition at line 2103 of file DeepTauId.cc.
References funct::abs(), edm::View< T >::at(), checkInputs(), hltPixelTracks_cff::chi2, default_value, HLT_FULL_cff::dPhi, f, dqmMemoryStats::float, get, getValue(), getValueLinear(), getValueNorm(), hadronsTensor_, heavyIonCSV_trainingSettings::idx, PixelMapPlotter::inputs, isInEcalCrack(), ndof, MetAnalyzer::pv(), rho, ZElectronSkim_cff::rho, metsig::tau, runTauDisplay::tau_eta, and runTauDisplay::tau_pt.
|
inlineprivate |
Definition at line 2223 of file DeepTauId.cc.
References funct::abs(), calculateElectronClusterVars(), calculateGottfriedJacksonAngleDifference(), taus_cff::decayMode, default_value, HLT_FULL_cff::dEta, HLT_FULL_cff::dPhi, PVValHelper::dxy, PVValHelper::dz, pwdgSkimBPark_cfi::electrons, reco::tau::eratio(), PVValHelper::eta, findMatchedElectron(), get, PixelMapPlotter::inputs, electrons_cff::ip3d, isInEcalCrack(), EgHLTOffHistBins_cfi::mass, PDWG_BPHSkim_cff::muons, reco::tau::n_photons_total(), processIsolationPFComponents(), processSignalPFComponents(), DiDispStaMuonMonitor_cfi::pt, reco::tau::pt_weighted_deta_strip(), reco::tau::pt_weighted_dphi_strip(), reco::tau::pt_weighted_dr_iso(), reco::tau::pt_weighted_dr_signal(), and metsig::tau.
|
inlineprivate |
Definition at line 1950 of file DeepTauId.cc.
References funct::abs(), edm::View< T >::at(), checkInputs(), hltPixelTracks_cff::chi2, MuonSubdetId::CSC, default_value, HLT_FULL_cff::dPhi, MuonSubdetId::DT, f, dqmMemoryStats::float, get, getValue(), getValueLinear(), getValueNorm(), heavyIonCSV_trainingSettings::idx, PixelMapPlotter::inputs, isInEcalCrack(), dumpRecoGeometry_cfg::Muon, PDWG_BPHSkim_cff::muons, muonTensor_, ndof, MetAnalyzer::pv(), pat::Muon::PV2D, rho, ZElectronSkim_cff::rho, MuonSubdetId::RPC, relativeConstraints::station, metsig::tau, runTauDisplay::tau_eta, and runTauDisplay::tau_pt.
|
inlineprivate |
Definition at line 1603 of file DeepTauId.cc.
References funct::abs(), calculateGottfriedJacksonAngleDifference(), checkInputs(), default_value, disable_dxy_pca_, reco::tau::eratio(), f, get, getValue(), getValueLinear(), getValueNorm(), PixelMapPlotter::inputs, isAbove(), isInEcalCrack(), reco::tau::n_photons_total(), pi, reco::tau::pt_weighted_deta_strip(), reco::tau::pt_weighted_dphi_strip(), reco::tau::pt_weighted_dr_iso(), reco::tau::pt_weighted_dr_signal(), rho, ZElectronSkim_cff::rho, metsig::tau, runTauDisplay::tau_eta, runTauDisplay::tau_mass, runTauDisplay::tau_phi, runTauDisplay::tau_pt, and tauBlockTensor_.
|
inlinestatic |
Definition at line 1112 of file DeepTauId.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineprivate |
Definition at line 1466 of file DeepTauId.cc.
References reco::deltaPhi(), getInnerSignalConeRadius(), getRunAppsInfo::grid, dqmiodumpmetadata::n, getGTfromDQMFile::obj, funct::pow(), and metsig::tau.
Referenced by getPredictionsV2().
|
inlinestaticprivate |
Definition at line 2558 of file DeepTauId.cc.
References PbPb_ZMuSkimMuonDPG_cff::deltaR, reco::deltaR2(), pwdgSkimBPark_cfi::electrons, reco::LeafCandidate::pt(), and metsig::tau.
Referenced by createInputsV1().
|
inlinestaticprivate |
Definition at line 2513 of file DeepTauId.cc.
References SiStripPI::max, cosmictrackSelector_cfi::min_pt, and DiDispStaMuonMonitor_cfi::pt.
Referenced by fillGrids(), and processSignalPFComponents().
|
inlinestatic |
Definition at line 1070 of file DeepTauId.cc.
References GetRecoTauVFromDQM_MC_cff::Output, and deep_tau::DeepTauBase::outputs_.
|
inlineprivate |
Definition at line 1502 of file DeepTauId.cc.
References deep_tau::DeepTauBase::cache_, eGammaTensor_, deep_tau::DeepTauCache::getSession(), hadronsTensor_, muonTensor_, and tensorflow::run().
Referenced by createConvFeatures(), and DeepTauId().
|
inlineoverrideprivatevirtual |
Implements deep_tau::DeepTauBase.
Definition at line 1285 of file DeepTauId.cc.
References deep_tau::DeepTauBase::andPrediscriminants_, basicDiscrdR03IndexMap_, basicDiscrIndexMap_, basicTauDiscriminators_inputToken_, basicTauDiscriminatorsdR03_inputToken_, discrIndicesMapped_, electrons_token_, Exception, edm::ValueMap< T >::get(), deep_tau::DeepTauBase::is_online_, dqmdumpme::k, matchDiscriminatorIndices(), muons_token_, deep_tau::NumberOfOutputs, deep_tau::DeepTauBase::patPrediscriminants_, deep_tau::DeepTauBase::pfcandToken_, pfTauTransverseImpactParameters_token_, deep_tau::DeepTauBase::recoPrediscriminants_, deep_tau::DeepTauBase::requiredBasicDiscriminators_, deep_tau::DeepTauBase::requiredBasicDiscriminatorsdR03_, rho, rho_token_, Tau3MuMonitor_cff::taus, version_, pwdgSkimBPark_cfi::vertices, and deep_tau::DeepTauBase::vtxToken_.
|
inlineprivate |
Definition at line 1403 of file DeepTauId.cc.
References deep_tau::DeepTauBase::cache_, pwdgSkimBPark_cfi::electrons, deep_tau::DeepTauCache::getSession(), input_layer_, PixelMapPlotter::inputs, PDWG_BPHSkim_cff::muons, output_layer_, tensorflow::run(), and metsig::tau.
|
inlineprivate |
Definition at line 1416 of file DeepTauId.cc.
References deep_tau::DeepTauBase::cache_, convTensor_, pwdgSkimBPark_cfi::electrons, fillGrids(), deep_tau::DeepTauCache::getSession(), PDWG_BPHSkim_cff::muons, MetAnalyzer::pv(), rho, tensorflow::run(), metsig::tau, and tauBlockTensor_.
|
inlinestaticprivate |
Definition at line 1217 of file DeepTauId.cc.
Referenced by createEgammaBlockInputs(), createHadronsBlockInputs(), createMuonBlockInputs(), createTauBlockInputs(), getValueLinear(), and getValueNorm().
|
inlinestaticprivate |
Definition at line 1222 of file DeepTauId.cc.
References getValue(), hcaldqm::quantity::max_value, and hcaldqm::quantity::min_value.
Referenced by createEgammaBlockInputs(), createHadronsBlockInputs(), createMuonBlockInputs(), and createTauBlockInputs().
|
inlinestaticprivate |
Definition at line 1232 of file DeepTauId.cc.
References getValue(), and SiStripPI::mean.
Referenced by createEgammaBlockInputs(), createHadronsBlockInputs(), createMuonBlockInputs(), and createTauBlockInputs().
|
inlinestatic |
|
inlinestatic |
Definition at line 1207 of file DeepTauId.cc.
References looper::cfg.
|
inlinestaticprivate |
Definition at line 1238 of file DeepTauId.cc.
References min().
Referenced by createTauBlockInputs().
|
inlinestaticprivate |
Definition at line 2552 of file DeepTauId.cc.
References funct::abs(), and PVValHelper::eta.
Referenced by createEgammaBlockInputs(), createHadronsBlockInputs(), createInputsV1(), createMuonBlockInputs(), and createTauBlockInputs().
|
inline |
Definition at line 1080 of file DeepTauId.cc.
References Exception, edm::ParameterSet::getParameter(), mps_fire::i, dqmiolumiharvest::j, edm::parameterSet(), AlCaHLTBitMon_QueryRunRegistry::string, and deep_tau::DeepTauBase::stringFromDiscriminator_.
Referenced by getPredictions().
|
inlinestaticprivate |
Definition at line 2491 of file DeepTauId.cc.
References HLT_FULL_cff::candidates, default_value, HLT_FULL_cff::dEta, HLT_FULL_cff::dPhi, visualization-live-secondInstance_cfg::m, dqmiodumpmetadata::n, p4, DiDispStaMuonMonitor_cfi::pt, and metsig::tau.
Referenced by createInputsV1().
|
inlinestaticprivate |
Definition at line 2447 of file DeepTauId.cc.
References HLT_FULL_cff::candidates, default_value, reco::deltaR(), HLT_FULL_cff::dEta, HLT_FULL_cff::dPhi, HGC3DClusterGenMatchSelector_cfi::dR, getInnerSignalConeRadius(), and metsig::tau.
Referenced by createInputsV1().
|
inlineprivate |
Definition at line 1593 of file DeepTauId.cc.
References postprocess-scan-build::features, and dqmiodumpmetadata::n.
Referenced by createConvFeatures(), and DeepTauId().
|
private |
Definition at line 2590 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2589 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2575 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2576 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2584 of file DeepTauId.cc.
Referenced by createConvFeatures(), DeepTauId(), and getPredictionsV2().
|
private |
Definition at line 2581 of file DeepTauId.cc.
Referenced by checkInputs().
|
staticconstexpr |
Definition at line 1068 of file DeepTauId.cc.
Referenced by calculateElectronClusterVars(), calculateGottfriedJacksonAngleDifference(), createEgammaBlockInputs(), createHadronsBlockInputs(), createInputsV1(), createMuonBlockInputs(), createTauBlockInputs(), processIsolationPFComponents(), and processSignalPFComponents().
|
private |
Definition at line 2582 of file DeepTauId.cc.
Referenced by createTauBlockInputs().
|
private |
Definition at line 2588 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2584 of file DeepTauId.cc.
Referenced by createConvFeatures(), createEgammaBlockInputs(), DeepTauId(), and getPartialPredictions().
|
private |
Definition at line 2572 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2584 of file DeepTauId.cc.
Referenced by createConvFeatures(), createHadronsBlockInputs(), DeepTauId(), and getPartialPredictions().
|
private |
Definition at line 2579 of file DeepTauId.cc.
Referenced by DeepTauId(), and getPredictionsV1().
|
private |
Definition at line 2573 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2584 of file DeepTauId.cc.
Referenced by createConvFeatures(), createMuonBlockInputs(), DeepTauId(), and getPartialPredictions().
|
private |
Definition at line 2579 of file DeepTauId.cc.
Referenced by DeepTauId(), and getPredictionsV1().
|
private |
Definition at line 2578 of file DeepTauId.cc.
Referenced by getPredictions().
|
staticconstexprprivate |
Definition at line 1214 of file DeepTauId.cc.
Referenced by createTauBlockInputs().
|
private |
Definition at line 2574 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2583 of file DeepTauId.cc.
Referenced by createTauBlockInputs(), DeepTauId(), and getPredictionsV2().
|
private |
Definition at line 2580 of file DeepTauId.cc.
Referenced by DeepTauId(), and getPredictions().
|
private |
Definition at line 2584 of file DeepTauId.cc.
Referenced by createConvFeatures(), and DeepTauId().