1 #ifndef CommonTools_PFCandProducer_PFPileUpAlgo_ 2 #define CommonTools_PFCandProducer_PFPileUpAlgo_ double fDzCutForChargedFromPUVtxs_
std::vector< edm::FwdPtr< reco::PFCandidate > > PFCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
int chargedHadronVertex(const reco::VertexCollection &vertices, const reco::PFCandidate &pfcand) const
unsigned int fNumOfPUVtxsForCharged_
PFCollection pfCandidatesFromVtx_
void setCheckClosestZVertex(bool val)
void setDzCutForChargedFromPUVtxs(double val)
PFPileUpAlgo(bool checkClosestZVertex, bool verbose=false)
void setNumOfPUVtxsForCharged(unsigned int val)
PFCollection pfCandidatesFromPU_
const PFCollection & getPFCandidatesFromPU() const
const PFCollection & getPFCandidatesFromVtx() const
bool checkClosestZVertex_
use the closest z vertex if a track is not in a vertex
Particle reconstructed by the particle flow algorithm.
void process(const PFCollection &pfCandidates, const reco::VertexCollection &vertices)
void setVerbose(bool verbose)