CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::tau::xclean::FilterPFCandByParticleId Class Reference

#include <RecoTauCrossCleaning.h>

List of all members.

Public Member Functions

 FilterPFCandByParticleId (int particleId)
template<typename PFCandCompatiblePtrType >
bool operator() (const PFCandCompatiblePtrType &ptr) const

Private Attributes

int id_

Detailed Description

Definition at line 65 of file RecoTauCrossCleaning.h.


Constructor & Destructor Documentation

reco::tau::xclean::FilterPFCandByParticleId::FilterPFCandByParticleId ( int  particleId) [inline]

Definition at line 67 of file RecoTauCrossCleaning.h.

                                            :
      id_(particleId){};

Member Function Documentation

template<typename PFCandCompatiblePtrType >
bool reco::tau::xclean::FilterPFCandByParticleId::operator() ( const PFCandCompatiblePtrType &  ptr) const [inline]

Definition at line 70 of file RecoTauCrossCleaning.h.

References id_.

                                                                {
        PFCandidatePtr pfptr(ptr);
        return ptr->particleId() == id_;
      }

Member Data Documentation

Definition at line 75 of file RecoTauCrossCleaning.h.

Referenced by operator()().