CMS 3D CMS Logo

Public Member Functions | Private Attributes

PFRecoTauDiscriminationByTauPolarization Class Reference

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

List of all members.

Public Member Functions

void beginEvent (const Event &, const EventSetup &)
double discriminate (const PFTauRef &)
 PFRecoTauDiscriminationByTauPolarization (const ParameterSet &iConfig)
 ~PFRecoTauDiscriminationByTauPolarization ()

Private Attributes

bool booleanOutput
double rTauMin

Detailed Description

Definition at line 13 of file PFRecoTauDiscriminationByTauPolarization.cc.


Constructor & Destructor Documentation

PFRecoTauDiscriminationByTauPolarization::PFRecoTauDiscriminationByTauPolarization ( const ParameterSet iConfig) [inline, explicit]

Definition at line 16 of file PFRecoTauDiscriminationByTauPolarization.cc.

References edm::ParameterSet::getParameter().

      :PFTauDiscriminationProducerBase(iConfig) {  // retrieve quality cuts
        rTauMin = iConfig.getParameter<double>("rtau");
        booleanOutput = iConfig.getParameter<bool>("BooleanOutput");
      }
PFRecoTauDiscriminationByTauPolarization::~PFRecoTauDiscriminationByTauPolarization ( ) [inline]

Definition at line 23 of file PFRecoTauDiscriminationByTauPolarization.cc.

{}

Member Function Documentation

void PFRecoTauDiscriminationByTauPolarization::beginEvent ( const Event event,
const EventSetup eventSetup 
) [virtual]
double PFRecoTauDiscriminationByTauPolarization::discriminate ( const PFTauRef tau)

Definition at line 37 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;
}

Member Data Documentation

Definition at line 29 of file PFRecoTauDiscriminationByTauPolarization.cc.

Definition at line 30 of file PFRecoTauDiscriminationByTauPolarization.cc.