CMS 3D CMS Logo

Public Member Functions | Private Attributes

RecoTauDiscriminationByGenMatch Class Reference

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

List of all members.

Public Member Functions

virtual void beginEvent (const edm::Event &evt, const edm::EventSetup &es)
double discriminate (const reco::PFTauRef &pfTau)
 RecoTauDiscriminationByGenMatch (const edm::ParameterSet &pset)
 ~RecoTauDiscriminationByGenMatch ()

Private Attributes

edm::Handle< edm::Association
< reco::GenJetCollection > > 
matching_
edm::InputTag matchingSrc_

Detailed Description

Definition at line 13 of file RecoTauDiscriminationByGenMatch.cc.


Constructor & Destructor Documentation

RecoTauDiscriminationByGenMatch::RecoTauDiscriminationByGenMatch ( const edm::ParameterSet pset) [inline, explicit]
RecoTauDiscriminationByGenMatch::~RecoTauDiscriminationByGenMatch ( ) [inline]

Definition at line 19 of file RecoTauDiscriminationByGenMatch.cc.

{}

Member Function Documentation

void RecoTauDiscriminationByGenMatch::beginEvent ( const edm::Event evt,
const edm::EventSetup es 
) [virtual]
double RecoTauDiscriminationByGenMatch::discriminate ( const reco::PFTauRef pfTau)

Definition at line 34 of file RecoTauDiscriminationByGenMatch.cc.

References edm::Ref< C, T, F >::isNonnull(), and metsig::tau.

                                                                     {
  reco::GenJetRef genJet = (*matching_)[tau];
  return genJet.isNonnull() ? 1.0 : 0;
}

Member Data Documentation

Definition at line 25 of file RecoTauDiscriminationByGenMatch.cc.

Referenced by beginEvent().