Skip to content

Commit

Permalink
code check
Browse files Browse the repository at this point in the history
  • Loading branch information
ahinzmann committed Aug 23, 2021
1 parent 838904e commit 315f88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CommonTools/RecoAlgos/src/PrimaryVertexAssignment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ std::pair<int, PrimaryVertexAssignment::Quality> PrimaryVertexAssignment::charge
}

double firstVertexDz = std::numeric_limits<double>::max();
if (vertices.size() > 0)
if (!vertices.empty())
firstVertexDz = std::abs(track->dz(vertices.at(0).position()));
// recover cases where the primary vertex is split
if (useVertexFit_ && (iVertex > 0) && (iVertex <= fNumOfPUVtxsForCharged_) &&
Expand Down

0 comments on commit 315f88f

Please sign in to comment.