CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Types | Private Attributes
PFRecoTauDiscriminationByIPCut Class Referencefinal
Inheritance diagram for PFRecoTauDiscriminationByIPCut:
TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType > edm::stream::EDProducer<>

Public Member Functions

void beginEvent (const edm::Event &, const edm::EventSetup &) override
 
double discriminate (const PFTauRef &pfTau) const override
 
 PFRecoTauDiscriminationByIPCut (const edm::ParameterSet &iConfig)
 
 ~PFRecoTauDiscriminationByIPCut () override
 
- Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
virtual TauDiscriminatorDataType 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
 
 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 EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
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...
 

Private Types

typedef edm::AssociationVector< reco::PFTauRefProd, std::vector< reco::PFTauTransverseImpactParameterRef > > PFTauTIPAssociationByRef
 

Private Attributes

edm::Handle< PFTauTIPAssociationByReftausTIP_
 
edm::EDGetTokenT< PFTauTIPAssociationByReftausTIPToken_
 
const StringCutObjectSelector< reco::PFTauTransverseImpactParametertauTIPSelector_
 

Additional Inherited Members

- Public Types inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
typedef std::vector< TauType > TauCollection
 
typedef edm::Ref< TauCollectionTauRef
 
typedef edm::RefProd< TauCollectionTauRefProd
 
- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Protected Attributes inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >
std::string moduleLabel_
 
double prediscriminantFailValue_
 
edm::EDGetTokenT< TauCollectionTau_token
 
size_t tauIndex_
 
edm::InputTag TauProducer_
 

Detailed Description

Definition at line 10 of file PFRecoTauDiscriminationByIPCut.cc.

Member Typedef Documentation

◆ PFTauTIPAssociationByRef

Definition at line 23 of file PFRecoTauDiscriminationByIPCut.cc.

Constructor & Destructor Documentation

◆ PFRecoTauDiscriminationByIPCut()

PFRecoTauDiscriminationByIPCut::PFRecoTauDiscriminationByIPCut ( const edm::ParameterSet iConfig)
inlineexplicit

Definition at line 12 of file PFRecoTauDiscriminationByIPCut.cc.

14  tausTIPToken_(consumes(iConfig.getParameter<edm::InputTag>("tausTIP"))),
15  tauTIPSelector_(iConfig.getParameter<std::string>("cut")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< PFTauTIPAssociationByRef > tausTIPToken_
TauDiscriminationProducerBase< reco::PFTau, reco::PFTauDiscriminator > PFTauDiscriminationProducerBase
const StringCutObjectSelector< reco::PFTauTransverseImpactParameter > tauTIPSelector_

◆ ~PFRecoTauDiscriminationByIPCut()

PFRecoTauDiscriminationByIPCut::~PFRecoTauDiscriminationByIPCut ( )
inlineoverride

Definition at line 16 of file PFRecoTauDiscriminationByIPCut.cc.

16 {}

Member Function Documentation

◆ beginEvent()

void PFRecoTauDiscriminationByIPCut::beginEvent ( const edm::Event event,
const edm::EventSetup eventSetup 
)
overridevirtual

Reimplemented from TauDiscriminationProducerBase< TauType, TauDiscriminator, TauDiscriminatorDataType, ConsumeType >.

Definition at line 34 of file PFRecoTauDiscriminationByIPCut.cc.

34  {
35  event.getByToken(tausTIPToken_, tausTIP_);
36 }
edm::EDGetTokenT< PFTauTIPAssociationByRef > tausTIPToken_
edm::Handle< PFTauTIPAssociationByRef > tausTIP_

◆ discriminate()

double PFRecoTauDiscriminationByIPCut::discriminate ( const PFTauRef pfTau) const
override

Definition at line 30 of file PFRecoTauDiscriminationByIPCut.cc.

30  {
31  return tauTIPSelector_(*(*tausTIP_)[thePFTauRef]) ? 1. : 0.;
32 }
edm::Handle< PFTauTIPAssociationByRef > tausTIP_
const StringCutObjectSelector< reco::PFTauTransverseImpactParameter > tauTIPSelector_

◆ fillDescriptions()

void PFRecoTauDiscriminationByIPCut::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Member Data Documentation

◆ tausTIP_

edm::Handle<PFTauTIPAssociationByRef> PFRecoTauDiscriminationByIPCut::tausTIP_
private

Definition at line 25 of file PFRecoTauDiscriminationByIPCut.cc.

◆ tausTIPToken_

edm::EDGetTokenT<PFTauTIPAssociationByRef> PFRecoTauDiscriminationByIPCut::tausTIPToken_
private

Definition at line 24 of file PFRecoTauDiscriminationByIPCut.cc.

◆ tauTIPSelector_

const StringCutObjectSelector<reco::PFTauTransverseImpactParameter> PFRecoTauDiscriminationByIPCut::tauTIPSelector_
private

Definition at line 27 of file PFRecoTauDiscriminationByIPCut.cc.