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_ |
Definition at line 13 of file RecoTauDiscriminationByGenMatch.cc.
RecoTauDiscriminationByGenMatch::RecoTauDiscriminationByGenMatch | ( | const edm::ParameterSet & | pset | ) | [inline, explicit] |
Definition at line 15 of file RecoTauDiscriminationByGenMatch.cc.
References edm::ParameterSet::getParameter(), and matchingSrc_.
:PFTauDiscriminationProducerBase(pset){ matchingSrc_ = pset.getParameter<edm::InputTag>("match"); }
RecoTauDiscriminationByGenMatch::~RecoTauDiscriminationByGenMatch | ( | ) | [inline] |
Definition at line 19 of file RecoTauDiscriminationByGenMatch.cc.
{}
void RecoTauDiscriminationByGenMatch::beginEvent | ( | const edm::Event & | evt, |
const edm::EventSetup & | es | ||
) | [virtual] |
Reimplemented from TauDiscriminationProducerBase< TauType, TauDiscriminator >.
Definition at line 28 of file RecoTauDiscriminationByGenMatch.cc.
References edm::Event::getByLabel(), matching_, and matchingSrc_.
{ evt.getByLabel(matchingSrc_, matching_); }
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; }
edm::Handle<edm::Association<reco::GenJetCollection> > RecoTauDiscriminationByGenMatch::matching_ [private] |
Definition at line 25 of file RecoTauDiscriminationByGenMatch.cc.
Referenced by beginEvent().
Definition at line 24 of file RecoTauDiscriminationByGenMatch.cc.
Referenced by beginEvent(), and RecoTauDiscriminationByGenMatch().