Public Member Functions | |
void | beginEvent (const Event &, const EventSetup &) |
double | discriminate (const PFTauRef &) |
PFRecoTauDiscriminationByTauPolarization (const ParameterSet &iConfig) | |
~PFRecoTauDiscriminationByTauPolarization () | |
Private Attributes | |
bool | booleanOutput |
PFTauQualityCutWrapper | qualityCuts_ |
double | rTauMin |
Definition at line 13 of file PFRecoTauDiscriminationByTauPolarization.cc.
PFRecoTauDiscriminationByTauPolarization::PFRecoTauDiscriminationByTauPolarization | ( | const ParameterSet & | iConfig | ) | [inline, explicit] |
Definition at line 15 of file PFRecoTauDiscriminationByTauPolarization.cc.
References edm::ParameterSet::getParameter().
:PFTauDiscriminationProducerBase(iConfig), qualityCuts_(iConfig.getParameter<ParameterSet>("qualityCuts")){ // retrieve quality cuts rTauMin = iConfig.getParameter<double>("rtau"); booleanOutput = iConfig.getParameter<bool>("BooleanOutput"); }
PFRecoTauDiscriminationByTauPolarization::~PFRecoTauDiscriminationByTauPolarization | ( | ) | [inline] |
Definition at line 21 of file PFRecoTauDiscriminationByTauPolarization.cc.
{}
void PFRecoTauDiscriminationByTauPolarization::beginEvent | ( | const Event & | event, |
const EventSetup & | eventSetup | ||
) | [virtual] |
Reimplemented from TauDiscriminationProducerBase< TauType, TauDiscriminator >.
Definition at line 33 of file PFRecoTauDiscriminationByTauPolarization.cc.
{}
double PFRecoTauDiscriminationByTauPolarization::discriminate | ( | const PFTauRef & | tau | ) |
Definition at line 35 of file PFRecoTauDiscriminationByTauPolarization.cc.
References edm::Ref< C, T, F >::isNonnull().
{ double rTau = 0; // rtau for PFTau has to be calculated for leading PF charged hadronic candidate // calculating it from leadingTrack can (and will) give rtau > 1! if(tau.isNonnull() && tau->p() > 0 && tau->leadPFChargedHadrCand().isNonnull()) rTau = tau->leadPFChargedHadrCand()->p()/tau->p(); if(booleanOutput) return ( rTau > rTauMin ? 1. : 0. ); return rTau; }
bool PFRecoTauDiscriminationByTauPolarization::booleanOutput [private] |
Definition at line 29 of file PFRecoTauDiscriminationByTauPolarization.cc.
Definition at line 27 of file PFRecoTauDiscriminationByTauPolarization.cc.
double PFRecoTauDiscriminationByTauPolarization::rTauMin [private] |
Definition at line 30 of file PFRecoTauDiscriminationByTauPolarization.cc.