Go to the documentation of this file.
15 switch (
cand.particleId()) {
25 if (ivertex == -1 || ivertex == 0) {
41 unsigned int index = 0;
42 unsigned int nFoundVertex = 0;
55 if (nFoundVertex > 0) {
56 if (nFoundVertex != 1)
57 edm::LogWarning(
"TrackOnTwoVertex") <<
"a track is shared by at least two verteces. Used to be an assert";
65 double ztrack =
pfcand.vertex().z();
66 bool foundVertex =
false;
69 double dz = fabs(ztrack -
iv->z());
std::vector< Vertex > VertexCollection
collection of Vertex objects
Log< level::Warning, false > LogWarning
void process(const PFCollection &pfCandidates, const reco::VertexCollection &vertices)
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