15 switch (
cand.particleId()) {
25 if ((ivertex == -1 || ivertex == 0 ||
43 unsigned int index = 0;
44 unsigned int nFoundVertex = 0;
57 if (nFoundVertex > 0) {
58 if (nFoundVertex != 1)
59 edm::LogWarning(
"TrackOnTwoVertex") <<
"a track is shared by at least two verteces. Used to be an assert";
67 double ztrack =
pfcand.vertex().z();
68 bool foundVertex =
false;
71 double dz = fabs(ztrack -
iv->z());
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_
Abs< T >::type abs(const T &t)
PFCollection pfCandidatesFromPU_
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)
Log< level::Warning, false > LogWarning