CMS 3D CMS Logo

Public Member Functions | Private Attributes

PFTauRandomDiscriminator Class Reference

Inheritance diagram for PFTauRandomDiscriminator:
TauDiscriminationProducerBase< TauType, TauDiscriminator > edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

double discriminate (const reco::PFTauRef &tau)
 PFTauRandomDiscriminator (const edm::ParameterSet &pset)

Private Attributes

double passRate_
TRandom3 randy_

Detailed Description

Definition at line 12 of file RecoTauRandomDiscriminant.cc.


Constructor & Destructor Documentation

PFTauRandomDiscriminator::PFTauRandomDiscriminator ( const edm::ParameterSet pset) [inline]

Definition at line 14 of file RecoTauRandomDiscriminant.cc.

References edm::ParameterSet::getParameter(), and passRate_.

                                                         :
      PFTauDiscriminationProducerBase(pset) {
        passRate_ = pset.getParameter<double>("passRate");
      }

Member Function Documentation

double PFTauRandomDiscriminator::discriminate ( const reco::PFTauRef tau) [inline]

Definition at line 19 of file RecoTauRandomDiscriminant.cc.

References passRate_, and randy_.

                                                 {
      return randy_.Rndm() < passRate_;
    }

Member Data Documentation

Definition at line 24 of file RecoTauRandomDiscriminant.cc.

Referenced by discriminate(), and PFTauRandomDiscriminator().

Definition at line 23 of file RecoTauRandomDiscriminant.cc.

Referenced by discriminate().