CMS 3D CMS Logo

Public Member Functions | Private Attributes

CaloRecoTauDiscriminationByLeadingTrackPtCut Class Reference

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

List of all members.

Public Member Functions

 CaloRecoTauDiscriminationByLeadingTrackPtCut (const edm::ParameterSet &iConfig)
double discriminate (const CaloTauRef &theCaloTauRef)
 ~CaloRecoTauDiscriminationByLeadingTrackPtCut ()

Private Attributes

double minPtLeadTrack_

Detailed Description

Definition at line 14 of file CaloRecoTauDiscriminationByLeadingTrackPtCut.cc.


Constructor & Destructor Documentation

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.

{} 

Member Function Documentation

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. );
}

Member Data Documentation