#include <TauDiscriminationProducerBase.h>
Classes | |
struct | TauDiscInfo |
Public Types | |
typedef std::vector< TauType > | TauCollection |
typedef edm::Ref< TauCollection > | TauRef |
typedef edm::RefProd< TauCollection > | TauRefProd |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Member Functions | |
virtual void | beginEvent (const edm::Event &, const edm::EventSetup &) |
virtual double | discriminate (const TauRef &tau) const =0 |
virtual void | endEvent (edm::Event &) |
void | produce (edm::Event &, const edm::EventSetup &) override |
TauDiscriminationProducerBase (const edm::ParameterSet &iConfig) | |
TauDiscriminationProducerBase () | |
~TauDiscriminationProducerBase () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
Static Public Member Functions | |
static void | fillProducerDescriptions (edm::ParameterSetDescription &desc) |
static std::string | getTauTypeString () |
helper method to retrieve tau type name, e.g. to build correct cfi getter More... | |
Protected Attributes | |
std::string | moduleLabel_ |
double | prediscriminantFailValue_ |
edm::EDGetTokenT< TauCollection > | Tau_token |
size_t | tauIndex_ |
edm::InputTag | TauProducer_ |
Private Attributes | |
uint8_t | andPrediscriminants_ |
std::vector< TauDiscInfo > | prediscriminants_ |
Definition at line 54 of file TauDiscriminationProducerBase.h.
typedef std::vector<TauType> TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauCollection |
Definition at line 57 of file TauDiscriminationProducerBase.h.
typedef edm::Ref<TauCollection> TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauRef |
Definition at line 58 of file TauDiscriminationProducerBase.h.
typedef edm::RefProd<TauCollection> TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauRefProd |
Definition at line 59 of file TauDiscriminationProducerBase.h.
|
explicit |
Definition at line 17 of file TauDiscriminationProducerBase.cc.
References TauDiscriminationProducerBase< TauType, TauDiscriminator >::andPrediscriminants_, TkAlMuonSelectors_cfi::cut, Exception, edm::ParameterSet::getParameter(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::getTauTypeString(), label, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo::label, TauDiscriminationProducerBase< TauType, TauDiscriminator >::prediscriminantFailValue_, TauDiscriminationProducerBase< TauType, TauDiscriminator >::prediscriminants_, AlCaHLTBitMon_QueryRunRegistry::string, TauDiscriminationProducerBase< TauType, TauDiscriminator >::Tau_token, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauProducer_, and create_public_lumi_plots::transform.
TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscriminationProducerBase | ( | ) |
Definition at line 9 of file TauDiscriminationProducerBase.cc.
References Exception.
|
inlineoverride |
Definition at line 68 of file TauDiscriminationProducerBase.h.
References TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce().
|
inlinevirtual |
Reimplemented in PFRecoTauDiscriminationByIsolation, reco::tau::PATTauDiscriminationByMVAIsolationRun2, reco::tau::PFRecoTauDiscriminationByMVAIsolationRun2, PFRecoTauDiscriminationByIsolationMVA2, PFRecoTauDiscriminationAgainstElectron2, RecoTauMVATransform, PFRecoTauDiscriminationAgainstElectronMVA5, PFRecoTauDiscriminationAgainstElectronMVA6, PFTauDecayModeCutMultiplexer, PATTauDiscriminantCutMultiplexer, PATTauDiscriminationAgainstElectronMVA6, RecoTauDiscriminantCutMultiplexer, PFRecoTauDiscriminationByFlightPathSignificance, TauDiscriminationAgainstElectronDeadECAL< TauType, TauDiscriminator >, CaloRecoTauDiscriminationByDeltaE, PFRecoTauDiscriminationByDeltaE, PFRecoTauDiscriminationByTauPolarization, PFRecoTauDiscriminationByNProngs, RecoTauDiscriminationByGenMatch, and RecoTauDecayModeCutMultiplexer.
Definition at line 73 of file TauDiscriminationProducerBase.h.
References TauDiscriminationProducerBase< TauType, TauDiscriminator >::discriminate(), and metsig::tau.
Referenced by TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce().
|
pure virtual |
Implemented in reco::tau::PATTauDiscriminationByMVAIsolationRun2, PATTauDiscriminationAgainstElectronMVA6, PATTauDiscriminantCutMultiplexer, and TauDiscriminationAgainstElectronDeadECAL< TauType, TauDiscriminator >.
Referenced by TauDiscriminationProducerBase< TauType, TauDiscriminator >::beginEvent(), and TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce().
|
inlinevirtual |
Reimplemented in reco::tau::PATTauDiscriminationByMVAIsolationRun2, reco::tau::PFRecoTauDiscriminationByMVAIsolationRun2, PFRecoTauDiscriminationByIsolationMVA2, PFRecoTauDiscriminationAgainstElectronMVA5, PFRecoTauDiscriminationAgainstElectronMVA6, and PATTauDiscriminationAgainstElectronMVA6.
Definition at line 79 of file TauDiscriminationProducerBase.h.
Referenced by TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce().
|
static |
Definition at line 160 of file TauDiscriminationProducerBase.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::getTauTypeString(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo::fill(), RecoTauDecayModeCutMultiplexer::fillDescriptions(), RecoTauDiscriminantCutMultiplexer::fillDescriptions(), PATTauDiscriminantCutMultiplexer::fillDescriptions(), PFTauDecayModeCutMultiplexer::fillDescriptions(), TauDiscriminationAgainstElectronDeadECAL< TauType, TauDiscriminator >::fillDescriptions(), RecoTauMVATransform::fillDescriptions(), and reco::tau::PFRecoTauDiscriminationByMVAIsolationRun2::fillDescriptions().
|
static |
helper method to retrieve tau type name, e.g. to build correct cfi getter
Definition at line 182 of file TauDiscriminationProducerBase.cc.
References Exception, and relativeConstraints::value.
Referenced by TauDiscriminationAgainstElectronDeadECAL< TauType, TauDiscriminator >::discriminate(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo::fill(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::fillProducerDescriptions(), and TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscriminationProducerBase().
|
override |
Definition at line 70 of file TauDiscriminationProducerBase.cc.
References TauDiscriminationProducerBase< TauType, TauDiscriminator >::andPrediscriminants_, TauDiscriminationProducerBase< TauType, TauDiscriminator >::beginEvent(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::discriminate(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::endEvent(), Exception, edm::HandleBase::id(), eostools::move(), convertSQLitetoXML_cfg::output, TauDiscriminationProducerBase< TauType, TauDiscriminator >::prediscriminantFailValue_, TauDiscriminationProducerBase< TauType, TauDiscriminator >::prediscriminants_, mps_fire::result, TauDiscriminationProducerBase< TauType, TauDiscriminator >::Tau_token, TauDiscriminationProducerBase< TauType, TauDiscriminator >::tauIndex_, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauProducer_, and nano_cff::taus.
Referenced by TauDiscriminationProducerBase< TauType, TauDiscriminator >::~TauDiscriminationProducerBase().
|
private |
Definition at line 114 of file TauDiscriminationProducerBase.h.
Referenced by TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce(), and TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscriminationProducerBase().
|
protected |
Definition at line 105 of file TauDiscriminationProducerBase.h.
Referenced by ExternalGeneratorFilter.ExternalGeneratorFilter::insertInto(), Modules.SwitchProducer::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::nameInProcessDesc_(), and Modules.ESProducer::nameInProcessDesc_().
|
protected |
Definition at line 101 of file TauDiscriminationProducerBase.h.
Referenced by RecoTauDecayModeCutMultiplexer::discriminate(), RecoTauDiscriminantCutMultiplexer::discriminate(), PATTauDiscriminantCutMultiplexer::discriminate(), RecoTauMVATransform::discriminate(), PFTauDiscriminatorLogicalAndProducer::PFTauDiscriminatorLogicalAndProducer(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce(), RecoTauMVATransform::RecoTauMVATransform(), and TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscriminationProducerBase().
|
private |
Definition at line 112 of file TauDiscriminationProducerBase.h.
Referenced by TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce(), and TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscriminationProducerBase().
|
protected |
Definition at line 106 of file TauDiscriminationProducerBase.h.
Referenced by reco::tau::PFRecoTauDiscriminationByMVAIsolationRun2::beginEvent(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce(), and TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscriminationProducerBase().
|
protected |
Definition at line 109 of file TauDiscriminationProducerBase.h.
Referenced by reco::tau::PFRecoTauDiscriminationByMVAIsolationRun2::discriminate(), and TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce().
|
protected |
Definition at line 103 of file TauDiscriminationProducerBase.h.
Referenced by TauDiscriminationProducerBase< TauType, TauDiscriminator >::produce(), and TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscriminationProducerBase().