Public Member Functions | |
CaloRecoTauDiscriminationByLeadingTrackPtCut (const edm::ParameterSet &iConfig) | |
double | discriminate (const CaloTauRef &theCaloTauRef) |
~CaloRecoTauDiscriminationByLeadingTrackPtCut () | |
Private Attributes | |
double | minPtLeadTrack_ |
Definition at line 14 of file CaloRecoTauDiscriminationByLeadingTrackPtCut.cc.
CaloRecoTauDiscriminationByLeadingTrackPtCut::CaloRecoTauDiscriminationByLeadingTrackPtCut | ( | const edm::ParameterSet & | iConfig | ) | [inline, explicit] |
Definition at line 16 of file CaloRecoTauDiscriminationByLeadingTrackPtCut.cc.
References edm::ParameterSet::getParameter().
:CaloTauDiscriminationProducerBase(iConfig){ minPtLeadTrack_ = iConfig.getParameter<double>("MinPtLeadingTrack"); }
CaloRecoTauDiscriminationByLeadingTrackPtCut::~CaloRecoTauDiscriminationByLeadingTrackPtCut | ( | ) | [inline] |
Definition at line 19 of file CaloRecoTauDiscriminationByLeadingTrackPtCut.cc.
{}
double CaloRecoTauDiscriminationByLeadingTrackPtCut::discriminate | ( | const CaloTauRef & | theCaloTauRef | ) | [virtual] |
Implements TauDiscriminationProducerBase< TauType, TauDiscriminator >.
Definition at line 26 of file CaloRecoTauDiscriminationByLeadingTrackPtCut.cc.
References edm::Ref< C, T, F >::isNonnull().
{ double leadTrackPt_ = -1; if( theCaloTauRef->leadTrack().isNonnull() ) { leadTrackPt_ = theCaloTauRef->leadTrack()->pt(); } return ( (leadTrackPt_ > minPtLeadTrack_) ? 1. : 0. ); }
double CaloRecoTauDiscriminationByLeadingTrackPtCut::minPtLeadTrack_ [private] |
Definition at line 23 of file CaloRecoTauDiscriminationByLeadingTrackPtCut.cc.