#include <DeepTauBase.h>
Classes | |
struct | Output |
struct | TauDiscInfo |
Public Member Functions | |
DeepTauBase (const edm::ParameterSet &cfg, const OutputCollection &outputs, const DeepTauCache *cache) | |
void | produce (edm::Event &event, const edm::EventSetup &es) override |
~DeepTauBase () override | |
Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DeepTauCache > > | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Static Public Member Functions | |
static void | globalEndJob (const DeepTauCache *cache) |
static std::unique_ptr< DeepTauCache > | initializeGlobalCache (const edm::ParameterSet &cfg) |
Public Attributes | |
uint8_t | andPrediscriminants_ |
std::vector< TauDiscInfo< pat::PATTauDiscriminator > > | patPrediscriminants_ |
std::vector< TauDiscInfo< reco::PFTauDiscriminator > > | recoPrediscriminants_ |
Protected Attributes | |
const DeepTauCache * | cache_ |
const bool | is_online_ |
OutputCollection | outputs_ |
edm::EDGetTokenT< CandidateCollection > | pfcandToken_ |
edm::EDGetTokenT< TauCollection > | tausToken_ |
edm::EDGetTokenT< reco::VertexCollection > | vtxToken_ |
std::map< std::string, WPList > | workingPoints_ |
Static Protected Attributes | |
static const std::vector< BasicDiscriminator > | requiredBasicDiscriminators_ |
static const std::vector< BasicDiscriminator > | requiredBasicDiscriminatorsdR03_ |
static const std::map< BasicDiscriminator, std::string > | stringFromDiscriminator_ |
Private Member Functions | |
virtual void | createOutputs (edm::Event &event, const tensorflow::Tensor &pred, edm::Handle< TauCollection > taus) |
virtual tensorflow::Tensor | getPredictions (edm::Event &event, edm::Handle< TauCollection > taus)=0 |
Definition at line 66 of file DeepTauBase.h.
Definition at line 70 of file DeepTauBase.h.
Definition at line 76 of file DeepTauBase.h.
using deep_tau::DeepTauBase::CutterPtr = std::unique_ptr<Cutter> |
Definition at line 77 of file DeepTauBase.h.
Definition at line 73 of file DeepTauBase.h.
using deep_tau::DeepTauBase::LorentzVectorXYZ = ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > |
Definition at line 75 of file DeepTauBase.h.
Definition at line 74 of file DeepTauBase.h.
using deep_tau::DeepTauBase::OutputCollection = std::map<std::string, Output> |
Definition at line 91 of file DeepTauBase.h.
Definition at line 69 of file DeepTauBase.h.
Definition at line 68 of file DeepTauBase.h.
Definition at line 71 of file DeepTauBase.h.
Definition at line 72 of file DeepTauBase.h.
using deep_tau::DeepTauBase::WPList = std::vector<CutterPtr> |
Definition at line 78 of file DeepTauBase.h.
Enumerator | |
---|---|
ChargedIsoPtSum | |
NeutralIsoPtSum | |
NeutralIsoPtSumWeight | |
FootprintCorrection | |
PhotonPtSumOutsideSignalCone | |
PUcorrPtSum |
Definition at line 115 of file DeepTauBase.h.
deep_tau::DeepTauBase::DeepTauBase | ( | const edm::ParameterSet & | cfg, |
const OutputCollection & | outputs, | ||
const DeepTauCache * | cache | ||
) |
Definition at line 91 of file DeepTauBase.cc.
References andPrediscriminants_, looper::cfg, deep_tau::DeepTauBase::TauDiscInfo< ConsumeType >::cut, DMR_cfg::cut, deep_tau::DeepTauBase::TauDiscInfo< ConsumeType >::disc_token, Exception, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), is_online_, label, deep_tau::DeepTauBase::TauDiscInfo< ConsumeType >::label, outputs_, patPrediscriminants_, recoPrediscriminants_, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetIdTransform::transform(), and workingPoints_.
|
inlineoverride |
Definition at line 94 of file DeepTauBase.h.
|
privatevirtual |
Definition at line 182 of file DeepTauBase.cc.
References is_online_, eostools::move(), outputs_, mps_fire::result, Tau3MuMonitor_cff::taus, FWLite::working_points, and workingPoints_.
Referenced by produce().
|
privatepure virtual |
|
inlinestatic |
Definition at line 99 of file DeepTauBase.h.
|
static |
Definition at line 193 of file DeepTauBase.cc.
References looper::cfg, mps_splice::entry, edm::FileInPath::fullPath(), HLT_2023v12_cff::graph_file, HLT_2023v12_cff::mem_mapped, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 151 of file DeepTauBase.cc.
References createOutputs(), Exception, getPredictions(), is_online_, patPrediscriminants_, recoPrediscriminants_, Tau3MuMonitor_cff::taus, and tausToken_.
uint8_t deep_tau::DeepTauBase::andPrediscriminants_ |
Definition at line 111 of file DeepTauBase.h.
Referenced by DeepTauBase(), and DeepTauId::getPredictions().
|
protected |
Definition at line 135 of file DeepTauBase.h.
Referenced by DeepTauId::getPartialPredictions(), DeepTauId::getPredictionsV2(), and DeepTauId::globalEndJob().
|
protected |
Definition at line 133 of file DeepTauBase.h.
Referenced by createOutputs(), DeepTauId::createTauBlockInputs(), DeepTauBase(), DeepTauId::getPredictions(), and produce().
|
protected |
Definition at line 134 of file DeepTauBase.h.
Referenced by createOutputs(), DeepTauBase(), and DeepTauId::GetOutputs().
std::vector<TauDiscInfo<pat::PATTauDiscriminator> > deep_tau::DeepTauBase::patPrediscriminants_ |
Definition at line 112 of file DeepTauBase.h.
Referenced by DeepTauBase(), DeepTauId::getPredictions(), and produce().
|
protected |
Definition at line 130 of file DeepTauBase.h.
Referenced by DeepTauId::getPredictions().
std::vector<TauDiscInfo<reco::PFTauDiscriminator> > deep_tau::DeepTauBase::recoPrediscriminants_ |
Definition at line 113 of file DeepTauBase.h.
Referenced by DeepTauBase(), DeepTauId::getPredictions(), and produce().
|
staticprotected |
Definition at line 138 of file DeepTauBase.h.
Referenced by DeepTauId::getPredictions().
|
staticprotected |
Definition at line 139 of file DeepTauBase.h.
Referenced by DeepTauId::getPredictions().
|
staticprotected |
Definition at line 137 of file DeepTauBase.h.
Referenced by DeepTauId::matchDiscriminatorIndices().
|
protected |
Definition at line 129 of file DeepTauBase.h.
Referenced by produce().
|
protected |
Definition at line 131 of file DeepTauBase.h.
Referenced by DeepTauId::getPredictions().
|
protected |
Definition at line 132 of file DeepTauBase.h.
Referenced by createOutputs(), and DeepTauBase().