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 std::string &block_name, int n_inputs, const CellGrid *grid=nullptr) 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 | saveInputs (const tensorflow::Tensor &inputs, const std::string &block_name, int n_inputs, const CellGrid *grid=nullptr) |
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 1101 of file DeepTauId.cc.
|
inlineexplicit |
Definition at line 1190 of file DeepTauId.cc.
References deep_tau::DeepTauBase::cache_, convTensor_, eGammaTensor_, Exception, deep_tau::DeepTauCache::getGraph(), getPartialPredictions(), hadronsTensor_, input_layer_, muonTensor_, dqmiodumpmetadata::n, mergeVDriftHistosByStation::name, output_layer_, setCellConvFeatures(), tauBlockTensor_, version_, and zeroOutputTensor_.
|
inlinestaticprivate |
Definition at line 2660 of file DeepTauId.cc.
References default_value, relval_parameters_module::energy, and pat::Electron::superCluster().
Referenced by createInputsV1().
|
inlinestaticprivate |
Definition at line 1283 of file DeepTauId.cc.
References relval_parameters_module::energy, and pat::Electron::superCluster().
Referenced by createEgammaBlockInputs().
|
inlinestaticprivate |
Definition at line 2754 of file DeepTauId.cc.
References funct::abs(), and funct::pow().
Referenced by calculateGottfriedJacksonAngleDifference(), createInputsV1(), and createTauBlockInputs().
|
inlinestaticprivate |
Definition at line 2776 of file DeepTauId.cc.
References calculateGottfriedJacksonAngleDifference(), and default_value.
|
inlineprivate |
Definition at line 1306 of file DeepTauId.cc.
References cms::cuda::assert(), gather_cfg::cout, debug_level, PVValHelper::eta, Exception, getRunAppsInfo::grid, input, edm::isNotFinite(), and phi.
Referenced by getPredictionsV2().
|
inlineprivate |
Definition at line 1746 of file DeepTauId.cc.
References convTensor_, gather_cfg::cout, debug_level, eGammaTensor_, HI_PhotonSkim_cff::electrons, PVValHelper::eta, getPartialPredictions(), hadronsTensor_, patZpeak::muons, muonTensor_, phi, MetAnalyzer::pv(), rho, setCellConvFeatures(), metsig::tau, and zeroOutputTensor_.
|
inlineprivate |
Definition at line 1944 of file DeepTauId.cc.
References funct::abs(), edm::View< T >::at(), calculateElectronClusterVarsV2(), HLT_FULL_cff::chi2, eGammaTensor_, configurableAnalysis::Electron, validate-o2o-wbm::f, getValue(), getValueLinear(), getValueNorm(), PixelMapPlotter::inputs, isInEcalCrack(), ndof, reco::Vertex::position(), HLT_FULL_cff::rho, runTauDisplay::tau_eta, and runTauDisplay::tau_pt.
|
inlineprivate |
Definition at line 2331 of file DeepTauId.cc.
References funct::abs(), edm::View< T >::at(), HLT_FULL_cff::chi2, disable_hcalFraction_workaround_, validate-o2o-wbm::f, getValue(), getValueLinear(), getValueNorm(), hadronsTensor_, PixelMapPlotter::inputs, isInEcalCrack(), ndof, reco::Vertex::position(), HLT_FULL_cff::rho, runTauDisplay::tau_eta, and runTauDisplay::tau_pt.
|
inlineprivate |
Definition at line 2456 of file DeepTauId.cc.
References funct::abs(), calculateElectronClusterVars(), calculateGottfriedJacksonAngleDifference(), default_value, PVValHelper::dxy, PVValHelper::dz, reco::tau::eratio(), PVValHelper::eta, Exception, findMatchedElectron(), PixelMapPlotter::inputs, isInEcalCrack(), ResonanceBuilder::mass, 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 2180 of file DeepTauId.cc.
References funct::abs(), edm::View< T >::at(), MuonSubdetId::CSC, MuonSubdetId::DT, validate-o2o-wbm::f, getValue(), getValueLinear(), getValueNorm(), PixelMapPlotter::inputs, isInEcalCrack(), dumpRecoGeometry_cfg::Muon, muonTensor_, reco::Vertex::position(), pat::Muon::PV2D, HLT_FULL_cff::rho, MuonSubdetId::RPC, relativeConstraints::station, runTauDisplay::tau_eta, and runTauDisplay::tau_pt.
|
inlineprivate |
Definition at line 1838 of file DeepTauId.cc.
References funct::abs(), calculateGottfriedJacksonAngleDifference(), disable_dxy_pca_, reco::tau::eratio(), validate-o2o-wbm::f, getValue(), getValueLinear(), getValueNorm(), PixelMapPlotter::inputs, deep_tau::DeepTauBase::is_online_, 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(), HLT_FULL_cff::rho, runTauDisplay::tau_eta, runTauDisplay::tau_mass, runTauDisplay::tau_phi, runTauDisplay::tau_pt, and tauBlockTensor_.
|
inlinestatic |
Definition at line 1147 of file DeepTauId.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), edm::ParameterSetDescription::addUntracked(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineprivate |
Definition at line 1685 of file DeepTauId.cc.
References reco::deltaPhi(), getInnerSignalConeRadius(), getRunAppsInfo::grid, dqmiodumpmetadata::n, getGTfromDQMFile::obj, and funct::pow().
Referenced by getPredictionsV2().
|
inlinestaticprivate |
Definition at line 2791 of file DeepTauId.cc.
References HLT_FULL_cff::deltaR, reco::deltaR2(), and reco::LeafCandidate::pt().
Referenced by createInputsV1().
|
inlinestaticprivate |
Definition at line 2746 of file DeepTauId.cc.
References SiStripPI::max.
Referenced by fillGrids(), and processSignalPFComponents().
|
inlinestatic |
Definition at line 1105 of file DeepTauId.cc.
References GetRecoTauVFromDQM_MC_cff::Output, and deep_tau::DeepTauBase::outputs_.
|
inlineprivate |
Definition at line 1721 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 1423 of file DeepTauId.cc.
References deep_tau::DeepTauBase::andPrediscriminants_, basicDiscrdR03IndexMap_, basicDiscrIndexMap_, HLT_FULL_cff::basicTauDiscriminators, basicTauDiscriminators_inputToken_, HLT_FULL_cff::basicTauDiscriminatorsdR03, basicTauDiscriminatorsdR03_inputToken_, discrIndicesMapped_, electrons_token_, Exception, validate-o2o-wbm::f, edm::ValueMap< T >::get(), deep_tau::DeepTauBase::is_online_, isotrackApplyRegressor::k, matchDiscriminatorIndices(), muons_token_, deep_tau::NumberOfOutputs, deep_tau::DeepTauBase::patPrediscriminants_, deep_tau::DeepTauBase::pfcandToken_, HLT_FULL_cff::pfTauTransverseImpactParameters, pfTauTransverseImpactParameters_token_, deep_tau::DeepTauBase::recoPrediscriminants_, deep_tau::DeepTauBase::requiredBasicDiscriminators_, deep_tau::DeepTauBase::requiredBasicDiscriminatorsdR03_, rho, rho_token_, version_, beam_dqm_sourceclient-live_cfg::vertices, and deep_tau::DeepTauBase::vtxToken_.
|
inlineprivate |
Definition at line 1550 of file DeepTauId.cc.
References deep_tau::DeepTauBase::cache_, deep_tau::DeepTauCache::getSession(), input_layer_, PixelMapPlotter::inputs, output_layer_, tensorflow::run(), and metsig::tau.
|
inlineprivate |
Definition at line 1563 of file DeepTauId.cc.
References cms::cuda::assert(), deep_tau::DeepTauBase::cache_, checkInputs(), convTensor_, gather_cfg::cout, debug_level, disable_CellIndex_workaround_, eGammaTensor_, file_counter_, fillGrids(), deep_tau::DeepTauCache::getSession(), hadronsTensor_, is_first_block_, json_file_, label, muonTensor_, deep_tau::NumberOfOutputs, tensorflow::run(), save_inputs_, saveInputs(), AlCaHLTBitMon_QueryRunRegistry::string, metsig::tau, tauBlockTensor_, and cond::impl::to_string().
|
inlinestaticprivate |
Definition at line 1260 of file DeepTauId.cc.
References validate-o2o-wbm::f, and relativeConstraints::value.
Referenced by createEgammaBlockInputs(), createHadronsBlockInputs(), createMuonBlockInputs(), createTauBlockInputs(), getValueLinear(), and getValueNorm().
|
inlinestaticprivate |
Definition at line 1265 of file DeepTauId.cc.
References getValue(), and hcaldqm::quantity::min_value.
Referenced by createEgammaBlockInputs(), createHadronsBlockInputs(), createMuonBlockInputs(), and createTauBlockInputs().
|
inlinestaticprivate |
Definition at line 1275 of file DeepTauId.cc.
References getValue(), and SiStripPI::mean.
Referenced by createEgammaBlockInputs(), createHadronsBlockInputs(), createMuonBlockInputs(), and createTauBlockInputs().
|
inlinestatic |
Definition at line 1254 of file DeepTauId.cc.
|
inlinestatic |
Definition at line 1250 of file DeepTauId.cc.
|
inlinestaticprivate |
Definition at line 1281 of file DeepTauId.cc.
References SiStripPI::min.
Referenced by createTauBlockInputs().
|
inlinestaticprivate |
Definition at line 2785 of file DeepTauId.cc.
References funct::abs().
Referenced by createEgammaBlockInputs(), createHadronsBlockInputs(), createInputsV1(), createMuonBlockInputs(), and createTauBlockInputs().
|
inline |
Definition at line 1115 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 2724 of file DeepTauId.cc.
References default_value, dqmiodumpmetadata::n, and reco::Candidate::p4().
Referenced by createInputsV1().
|
inlinestaticprivate |
Definition at line 2680 of file DeepTauId.cc.
References default_value, reco::deltaR(), getInnerSignalConeRadius(), and reco::Candidate::p4().
Referenced by createInputsV1().
|
inlineprivate |
Definition at line 1362 of file DeepTauId.cc.
References cms::cuda::assert(), gather_cfg::cout, debug_level, PVValHelper::eta, getRunAppsInfo::grid, input, is_first_block_, and phi.
Referenced by getPredictionsV2().
|
inlineprivate |
Definition at line 1827 of file DeepTauId.cc.
References dqmiodumpmetadata::n.
Referenced by createConvFeatures(), and DeepTauId().
|
private |
Definition at line 2829 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2828 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2808 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2809 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2819 of file DeepTauId.cc.
Referenced by createConvFeatures(), DeepTauId(), and getPredictionsV2().
|
private |
Definition at line 2814 of file DeepTauId.cc.
Referenced by checkInputs(), createConvFeatures(), getPredictionsV2(), and saveInputs().
|
static |
Definition at line 1103 of file DeepTauId.cc.
Referenced by calculateElectronClusterVars(), calculateGottfriedJacksonAngleDifference(), createInputsV1(), processIsolationPFComponents(), and processSignalPFComponents().
|
private |
Definition at line 2817 of file DeepTauId.cc.
Referenced by getPredictionsV2().
|
private |
Definition at line 2815 of file DeepTauId.cc.
Referenced by createTauBlockInputs().
|
private |
Definition at line 2816 of file DeepTauId.cc.
Referenced by createHadronsBlockInputs().
|
private |
Definition at line 2827 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2819 of file DeepTauId.cc.
Referenced by createConvFeatures(), createEgammaBlockInputs(), DeepTauId(), getPartialPredictions(), and getPredictionsV2().
|
private |
Definition at line 2805 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2824 of file DeepTauId.cc.
Referenced by getPredictionsV2().
|
private |
Definition at line 2819 of file DeepTauId.cc.
Referenced by createConvFeatures(), createHadronsBlockInputs(), DeepTauId(), getPartialPredictions(), and getPredictionsV2().
|
private |
Definition at line 2812 of file DeepTauId.cc.
Referenced by DeepTauId(), and getPredictionsV1().
|
private |
Definition at line 2823 of file DeepTauId.cc.
Referenced by getPredictionsV2(), and saveInputs().
|
private |
Definition at line 2822 of file DeepTauId.cc.
Referenced by getPredictionsV2().
|
private |
Definition at line 2806 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2819 of file DeepTauId.cc.
Referenced by createConvFeatures(), createMuonBlockInputs(), DeepTauId(), getPartialPredictions(), and getPredictionsV2().
|
private |
Definition at line 2812 of file DeepTauId.cc.
Referenced by DeepTauId(), and getPredictionsV1().
|
private |
Definition at line 2811 of file DeepTauId.cc.
Referenced by getPredictions().
|
staticprivate |
Definition at line 1257 of file DeepTauId.cc.
Referenced by createTauBlockInputs().
|
private |
Definition at line 2807 of file DeepTauId.cc.
Referenced by getPredictions().
|
private |
Definition at line 2821 of file DeepTauId.cc.
Referenced by getPredictionsV2().
|
private |
Definition at line 2818 of file DeepTauId.cc.
Referenced by createTauBlockInputs(), DeepTauId(), and getPredictionsV2().
|
private |
Definition at line 2813 of file DeepTauId.cc.
Referenced by DeepTauId(), and getPredictions().
|
private |
Definition at line 2819 of file DeepTauId.cc.
Referenced by createConvFeatures(), and DeepTauId().