Public Member Functions | |
CaloRecoTauDiscriminationByTauPolarization (const edm::ParameterSet &iConfig) | |
double | discriminate (const CaloTauRef &) |
~CaloRecoTauDiscriminationByTauPolarization () | |
Private Attributes | |
bool | booleanOutput |
double | rTauMin |
Definition at line 12 of file CaloRecoTauDiscriminationByTauPolarization.cc.
CaloRecoTauDiscriminationByTauPolarization::CaloRecoTauDiscriminationByTauPolarization | ( | const edm::ParameterSet & | iConfig | ) | [inline, explicit] |
Definition at line 14 of file CaloRecoTauDiscriminationByTauPolarization.cc.
References edm::ParameterSet::getParameter().
:CaloTauDiscriminationProducerBase(iConfig) { rTauMin = iConfig.getParameter<double>("rtau"); booleanOutput = iConfig.getParameter<bool>("BooleanOutput"); }
CaloRecoTauDiscriminationByTauPolarization::~CaloRecoTauDiscriminationByTauPolarization | ( | ) | [inline] |
Definition at line 21 of file CaloRecoTauDiscriminationByTauPolarization.cc.
{}
double CaloRecoTauDiscriminationByTauPolarization::discriminate | ( | const CaloTauRef & | tau | ) | [virtual] |
Implements TauDiscriminationProducerBase< TauType, TauDiscriminator >.
Definition at line 30 of file CaloRecoTauDiscriminationByTauPolarization.cc.
References edm::Ref< C, T, F >::isNonnull().
{ double rTau = 0; if(tau.isNonnull() && tau->p() > 0 && tau->leadTrack().isNonnull()) rTau = tau->leadTrack()->p()/tau->p(); if(booleanOutput) return ( rTau > rTauMin ? 1. : 0. ); return rTau; }
bool CaloRecoTauDiscriminationByTauPolarization::booleanOutput [private] |
Definition at line 25 of file CaloRecoTauDiscriminationByTauPolarization.cc.
double CaloRecoTauDiscriminationByTauPolarization::rTauMin [private] |
Definition at line 26 of file CaloRecoTauDiscriminationByTauPolarization.cc.