1 #ifndef CommonTools_PFCandProducer_PFPileUpAlgo_
2 #define CommonTools_PFCandProducer_PFPileUpAlgo_
const reco::PFCandidateCollection & getPFCandidatesFromPU() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
reco::PFCandidateCollection pfCandidatesFromVtx_
reco::PFCandidateCollection pfCandidatesFromPU_
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
void setCheckClosestZVertex(bool val)
PFPileUpAlgo(bool checkClosestZVertex, bool verbose=false)
const reco::PFCandidateCollection & getPFCandidatesFromVtx() const
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
int chargedHadronVertex(const reco::VertexCollection &vertices, const reco::PFCandidate &pfcand) const
bool checkClosestZVertex_
use the closest z vertex if a track is not in a vertex
void process(const reco::PFCandidateCollection &pfCandidates, const reco::VertexCollection &vertices, const edm::Handle< reco::PFCandidateCollection > *handle=0)
Particle reconstructed by the particle flow algorithm.
void setVerbose(bool verbose)