#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 | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
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 84 of file DeepTauBase.cc.
References andPrediscriminants_, looper::cfg, TkAlMuonSelectors_cfi::cut, deep_tau::DeepTauBase::TauDiscInfo< ConsumeType >::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 175 of file DeepTauBase.cc.
References is_online_, eostools::move(), outputs_, mps_fire::result, Tau3MuMonitor_cff::taus, and workingPoints_.
Referenced by produce().
|
privatepure virtual |
Implemented in DeepTauId, and DPFIsolation.
Referenced by produce().
|
inlinestatic |
Definition at line 99 of file DeepTauBase.h.
|
static |
Definition at line 182 of file DeepTauBase.cc.
References looper::cfg, mps_splice::entry, edm::FileInPath::fullPath(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 144 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::DeepTauId(), DPFIsolation::DPFIsolation(), DeepTauId::getPartialPredictions(), DPFIsolation::getPredictions(), DeepTauId::getPredictionsV1(), DeepTauId::getPredictionsV2(), and DeepTauId::globalEndJob().
|
protected |
Definition at line 133 of file DeepTauBase.h.
Referenced by createOutputs(), DeepTauBase(), DeepTauId::getPredictions(), and produce().
|
protected |
Definition at line 134 of file DeepTauBase.h.
Referenced by createOutputs(), DeepTauBase(), DPFIsolation::GetOutputs(), DeepTauId::GetOutputs(), and DPFIsolation::getPredictions().
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 DPFIsolation::getPredictions(), and 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 DPFIsolation::getPredictions(), and DeepTauId::getPredictions().
|
protected |
Definition at line 132 of file DeepTauBase.h.
Referenced by createOutputs(), and DeepTauBase().