CMS 3D CMS Logo

Public Member Functions | Private Attributes

CaloRecoTauDiscriminationByNProngs Class Reference

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

List of all members.

Public Member Functions

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

Private Attributes

bool booleanOutput
uint32_t nprongs

Detailed Description

Definition at line 13 of file CaloRecoTauDiscriminationByNProngs.cc.


Constructor & Destructor Documentation

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

Definition at line 16 of file CaloRecoTauDiscriminationByNProngs.cc.

References edm::ParameterSet::getParameter().

        :CaloTauDiscriminationProducerBase(iConfig) {
      nprongs                   = iConfig.getParameter<uint32_t>("nProngs");
      booleanOutput = iConfig.getParameter<bool>("BooleanOutput");
    }
CaloRecoTauDiscriminationByNProngs::~CaloRecoTauDiscriminationByNProngs ( ) [inline]

Definition at line 21 of file CaloRecoTauDiscriminationByNProngs.cc.

{}

Member Function Documentation

double CaloRecoTauDiscriminationByNProngs::discriminate ( const reco::CaloTauRef tau) [virtual]

Implements TauDiscriminationProducerBase< TauType, TauDiscriminator >.

Definition at line 30 of file CaloRecoTauDiscriminationByNProngs.cc.

References runTheMatrix::np.

                                                                            {
  bool accepted = false;
  int np = tau->signalTracks().size();
  if((np == 1 && (nprongs == 1 || nprongs == 0)) ||
     (np == 3 && (nprongs == 3 || nprongs == 0)) ) accepted = true;
  if(!accepted) np = 0;
  if(booleanOutput) return accepted;
  return np;
}

Member Data Documentation

Definition at line 26 of file CaloRecoTauDiscriminationByNProngs.cc.

Definition at line 25 of file CaloRecoTauDiscriminationByNProngs.cc.