Go to the documentation of this file. 1 #ifndef CommonTools_PFCandProducer_PFPileUpAlgo_
2 #define CommonTools_PFCandProducer_PFPileUpAlgo_
std::vector< Vertex > VertexCollection
collection of Vertex objects
const PFCollection & getPFCandidatesFromVtx() const
PFPileUpAlgo(bool checkClosestZVertex, bool verbose=false)
const PFCollection & getPFCandidatesFromPU() const
void process(const PFCollection &pfCandidates, const reco::VertexCollection &vertices)
static constexpr int verbose
void setVerbose(bool verbose)
PFCollection pfCandidatesFromPU_
PFCollection pfCandidatesFromVtx_
Particle reconstructed by the particle flow algorithm.
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
void setCheckClosestZVertex(bool val)