CMS 3D CMS Logo

Public Member Functions | Private Attributes

CaloRecoTauDiscriminationByIsolation Class Reference

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

List of all members.

Public Member Functions

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

Private Attributes

bool applyDiscriminationByECALIsolation_
bool applyDiscriminationByTrackerIsolation_
double EcalIsolAnnulus_maximumSumEtCut_
unsigned TrackerIsolAnnulus_maximumOccupancy_

Detailed Description

Definition at line 11 of file CaloRecoTauDiscriminationByIsolation.cc.


Constructor & Destructor Documentation

CaloRecoTauDiscriminationByIsolation::CaloRecoTauDiscriminationByIsolation ( const edm::ParameterSet iConfig) [inline, explicit]

Definition at line 13 of file CaloRecoTauDiscriminationByIsolation.cc.

References edm::ParameterSet::getParameter().

                                                                               :CaloTauDiscriminationProducerBase(iConfig){   
    applyDiscriminationByTrackerIsolation_ = iConfig.getParameter<bool>("ApplyDiscriminationByTrackerIsolation");
    TrackerIsolAnnulus_maximumOccupancy_   = iConfig.getParameter<unsigned>("TrackerIsolAnnulus_maximumOccupancy");   
    
    applyDiscriminationByECALIsolation_    = iConfig.getParameter<bool>("ApplyDiscriminationByECALIsolation");
    EcalIsolAnnulus_maximumSumEtCut_       = iConfig.getParameter<double>("ECALisolAnnulus_maximumSumEtCut");   
  }
CaloRecoTauDiscriminationByIsolation::~CaloRecoTauDiscriminationByIsolation ( ) [inline]

Definition at line 20 of file CaloRecoTauDiscriminationByIsolation.cc.

{} 

Member Function Documentation

double CaloRecoTauDiscriminationByIsolation::discriminate ( const CaloTauRef caloTau) [virtual]

Implements TauDiscriminationProducerBase< TauType, TauDiscriminator >.

Definition at line 29 of file CaloRecoTauDiscriminationByIsolation.cc.

{
  if ( applyDiscriminationByTrackerIsolation_ ){  
    if ( caloTau->isolationTracks().size() > TrackerIsolAnnulus_maximumOccupancy_ ) return 0.;
  }
  
  if ( applyDiscriminationByECALIsolation_ ) {
    if ( caloTau->isolationECALhitsEtSum() > EcalIsolAnnulus_maximumSumEtCut_ ) return 0.;
  }
  
  // N.B. the lead track requirement must be included in the discriminants
  return 1.;
}

Member Data Documentation

Definition at line 25 of file CaloRecoTauDiscriminationByIsolation.cc.

Definition at line 23 of file CaloRecoTauDiscriminationByIsolation.cc.

Definition at line 26 of file CaloRecoTauDiscriminationByIsolation.cc.

Definition at line 24 of file CaloRecoTauDiscriminationByIsolation.cc.