Skip to content

Commit

Permalink
PWGEM/PhotonMeson: Fix wrong dimension when filling rotation histograms
Browse files Browse the repository at this point in the history
- Yesterdays PR removed two dimensions from the minv-pt histogram, but two zeros were still included in the filling of the rotation histogram, leading to Hyperloop tests to fail
- Removed the additional fill arguments, this should fix the issue
  • Loading branch information
nstrangm committed Jul 9, 2024
1 parent 2274aaa commit bf2e609
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PWGEM/PhotonMeson/Core/Pi0EtaToGammaGamma.h
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,10 @@ struct Pi0EtaToGammaGamma {
float openingAngle2 = std::acos(photon2.Vect().Dot(photon3.Vect()) / (photon2.P() * photon3.P()));

if (openingAngle1 > emccuts.minOpenAngle && abs(mother1.Rapidity()) < maxY) {
fRegistry.fill(HIST("Pair/rotation/hs"), mother1.M(), mother1.Pt(), 0.0, 0.0);
fRegistry.fill(HIST("Pair/rotation/hs"), mother1.M(), mother1.Pt());
}
if (openingAngle2 > emccuts.minOpenAngle && abs(mother2.Rapidity()) < maxY) {
fRegistry.fill(HIST("Pair/rotation/hs"), mother2.M(), mother2.Pt(), 0.0, 0.0);
fRegistry.fill(HIST("Pair/rotation/hs"), mother2.M(), mother2.Pt());
}
}
}
Expand Down Expand Up @@ -635,8 +635,8 @@ struct Pi0EtaToGammaGamma {
used_dileptonIds.emplace_back(tuple_tmp_id2);
}
ndiphoton++;
} // end of dielectron loop
} // end of g1 loop
} // end of dielectron loop
} // end of g1 loop
} else { // PCM-EMC, PCM-PHOS. Nightmare. don't run these pairs.
auto photons1_per_collision = photons1.sliceBy(perCollision1, collision.globalIndex());
auto photons2_per_collision = photons2.sliceBy(perCollision2, collision.globalIndex());
Expand Down Expand Up @@ -667,7 +667,7 @@ struct Pi0EtaToGammaGamma {
}
ndiphoton++;
} // end of pairing loop
} // end of pairing in same event
} // end of pairing in same event

// event mixing
if (!cfgDoMix || !(ndiphoton > 0)) {
Expand Down

0 comments on commit bf2e609

Please sign in to comment.