CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::modules::MCMatchCandRefSelector Class Reference

List of all members.

Public Member Functions

 MCMatchCandRefSelector (const InputTag &src)
void newEvent (const Event &evt, const EventSetup &)
bool operator() (const CandidateBaseRef &) const

Private Attributes

const GenParticleMatchmatch_
InputTag src_

Detailed Description

Definition at line 18 of file MCMatchCandRefSelector.cc.


Constructor & Destructor Documentation

reco::modules::MCMatchCandRefSelector::MCMatchCandRefSelector ( const InputTag src) [inline, explicit]

Definition at line 20 of file MCMatchCandRefSelector.cc.

                                                           : 
        src_(src) { }

Member Function Documentation

void reco::modules::MCMatchCandRefSelector::newEvent ( const Event evt,
const EventSetup  
)
bool reco::modules::MCMatchCandRefSelector::operator() ( const CandidateBaseRef c) const

Definition at line 35 of file MCMatchCandRefSelector.cc.

References trackerHits::c, edm::Ref< C, T, F >::isNonnull(), and m.

                                                                            {
      GenParticleRef m = (*match_)[c];
      return m.isNonnull();
    }

Member Data Documentation

Definition at line 26 of file MCMatchCandRefSelector.cc.

Definition at line 25 of file MCMatchCandRefSelector.cc.