1 #ifndef CommonTools_PFCandProducer_PFPileUpAlgo_
2 #define CommonTools_PFCandProducer_PFPileUpAlgo_
16 typedef std::vector< edm::FwdPtr<reco::PFCandidate> >
PFCollection;
const PFCollection & getPFCandidatesFromVtx() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
PFCollection pfCandidatesFromVtx_
void setCheckClosestZVertex(bool val)
PFPileUpAlgo(bool checkClosestZVertex, bool verbose=false)
PFCollection pfCandidatesFromPU_
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
std::vector< edm::FwdPtr< reco::PFCandidate > > PFCollection
Particle reconstructed by the particle flow algorithm.
void process(const PFCollection &pfCandidates, const reco::VertexCollection &vertices)
const PFCollection & getPFCandidatesFromPU() const
void setVerbose(bool verbose)