CMS 3D CMS Logo

Public Member Functions | Private Attributes

CaloRecoTauDiscriminationByTauPolarization Class Reference

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

List of all members.

Public Member Functions

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

Private Attributes

bool booleanOutput
double rTauMin

Detailed Description

Definition at line 12 of file CaloRecoTauDiscriminationByTauPolarization.cc.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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

Member Data Documentation