CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PFTauDiscriminatorLogicalAndProducer Class Reference
Inheritance diagram for PFTauDiscriminatorLogicalAndProducer:
TauDiscriminationProducerBase< TauType, TauDiscriminator > edm::stream::EDProducer<>

Public Member Functions

double discriminate (const PFTauRef &pfTau) const override
 
 PFTauDiscriminatorLogicalAndProducer (const edm::ParameterSet &)
 
 ~PFTauDiscriminatorLogicalAndProducer () override
 
- Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
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
 

Private Attributes

double passResult_
 

Additional Inherited Members

- Public Types inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
typedef std::vector< TauType > TauCollection
 
typedef edm::Ref< TauCollectionTauRef
 
typedef edm::RefProd< TauCollectionTauRefProd
 
- 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, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Protected Attributes inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator >
std::string moduleLabel_
 
double prediscriminantFailValue_
 
edm::EDGetTokenT< TauCollectionTau_token
 
size_t tauIndex_
 
edm::InputTag TauProducer_
 

Detailed Description

Definition at line 19 of file PFTauDiscriminatorLogicalAndProducer.cc.

Constructor & Destructor Documentation

PFTauDiscriminatorLogicalAndProducer::PFTauDiscriminatorLogicalAndProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 28 of file PFTauDiscriminatorLogicalAndProducer.cc.

References edm::ParameterSet::getParameter(), passResult_, and TauDiscriminationProducerBase< TauType, TauDiscriminator >::prediscriminantFailValue_.

Referenced by discriminate().

29 {
30  passResult_ = iConfig.getParameter<double>("PassValue");
31  prediscriminantFailValue_ = iConfig.getParameter<double>("FailValue"); //defined in base class
32 }
T getParameter(std::string const &) const
TauDiscriminationProducerBase< reco::PFTau, reco::PFTauDiscriminator > PFTauDiscriminationProducerBase
PFTauDiscriminatorLogicalAndProducer::~PFTauDiscriminatorLogicalAndProducer ( )
inlineoverride

Definition at line 22 of file PFTauDiscriminatorLogicalAndProducer.cc.

22 {};

Member Function Documentation

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

Definition at line 35 of file PFTauDiscriminatorLogicalAndProducer.cc.

References DEFINE_FWK_MODULE, passResult_, and PFTauDiscriminatorLogicalAndProducer().

36 {
37  // if this function is called on a tau, it is has passed (in the base class)
38  // the set of prediscriminants, using the prescribed boolean operation. thus
39  // we only need to return TRUE
40  return passResult_;
41 }

Member Data Documentation

double PFTauDiscriminatorLogicalAndProducer::passResult_
private