CMS 3D CMS Logo

Public Member Functions | Private Attributes

PFRecoTauDiscriminationByNProngs Class Reference

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

List of all members.

Public Member Functions

void beginEvent (const edm::Event &, const edm::EventSetup &)
double discriminate (const reco::PFTauRef &)
 PFRecoTauDiscriminationByNProngs (const ParameterSet &iConfig)
 ~PFRecoTauDiscriminationByNProngs ()

Private Attributes

bool booleanOutput
uint32_t nprongs

Detailed Description

Definition at line 14 of file PFRecoTauDiscriminationByNProngs.cc.


Constructor & Destructor Documentation

PFRecoTauDiscriminationByNProngs::PFRecoTauDiscriminationByNProngs ( const ParameterSet iConfig) [inline, explicit]

Definition at line 16 of file PFRecoTauDiscriminationByNProngs.cc.

References edm::ParameterSet::getParameter().

                                                                              :PFTauDiscriminationProducerBase(iConfig){
                nprongs                 = iConfig.getParameter<uint32_t>("nProngs");
                booleanOutput = iConfig.getParameter<bool>("BooleanOutput");
        }
PFRecoTauDiscriminationByNProngs::~PFRecoTauDiscriminationByNProngs ( ) [inline]

Definition at line 21 of file PFRecoTauDiscriminationByNProngs.cc.

{}

Member Function Documentation

void PFRecoTauDiscriminationByNProngs::beginEvent ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [virtual]
double PFRecoTauDiscriminationByNProngs::discriminate ( const reco::PFTauRef tau)

Definition at line 34 of file PFRecoTauDiscriminationByNProngs.cc.

References np.

                                                                        {

        bool accepted = false;
        int np = tau->signalTracks().size();

        if((np == 1 && (nprongs == 1 || nprongs == 0)) ||
           (np == 3 && (nprongs == 3 || nprongs == 0)) ) accepted = true;

        if(!accepted) np = 0;
        if(booleanOutput) return accepted;
        return np;
}

Member Data Documentation

Definition at line 29 of file PFRecoTauDiscriminationByNProngs.cc.

Definition at line 28 of file PFRecoTauDiscriminationByNProngs.cc.