Go to the documentation of this file.
14 switch (
cand.particleId()) {
24 if (ivertex == -1 || ivertex == 0) {
40 unsigned int index = 0;
41 unsigned int nFoundVertex = 0;
54 if (nFoundVertex > 0) {
55 if (nFoundVertex != 1)
56 edm::LogWarning(
"TrackOnTwoVertex") <<
"a track is shared by at least two verteces. Used to be an assert";
64 double ztrack =
pfcand.vertex().z();
65 bool foundVertex =
false;
68 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