Skip to content

Commit

Permalink
revert vertex performance writer
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Oct 19, 2024
1 parent 51d5304 commit c3609a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Examples/Io/Root/src/VertexPerformanceWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ ProcessCode VertexPerformanceWriter::writeT(
fmap[vtxId].second += weight;
}
double truthMajorityVertexTrackWeights = 0;
SimVertexBarcode truthMajorityVertexId{0};
SimVertexBarcode truthMajorityVertexId = 0;
for (const auto& [vtxId, counter] : fmap) {
if (counter.second > truthMajorityVertexTrackWeights) {
truthMajorityVertexId = vtxId;
Expand Down Expand Up @@ -629,8 +629,7 @@ ProcessCode VertexPerformanceWriter::writeT(
// Count number of reconstructible tracks on truth vertex
int nTracksOnTruthVertex = 0;
for (const auto& particle : selectedParticles) {
if (static_cast<SimVertexBarcode>(particle.particleId().vertexId()) ==
truthVertex.vertexId()) {
if (particle.particleId().vertexId() == truthVertex.vertexId()) {
++nTracksOnTruthVertex;
}
}
Expand Down

0 comments on commit c3609a0

Please sign in to comment.