Skip to content

Commit 5952180

Browse files
nstrangmNicolas Strangmann
andauthored
[PWGJE] Fix EMC rotation BG bug (#9655)
Co-authored-by: Nicolas Strangmann <nicolas.strangmann@.cern.ch>
1 parent 3cd4429 commit 5952180

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

PWGJE/Tasks/emcalGammaGammaBcWise.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,9 @@ struct EmcalGammaGammaBcWise {
165165

166166
TVector3 lvRotationPion = (meson.pMeson).Vect(); // calculate rotation axis
167167
for (unsigned int ig3 = 0; ig3 < mPhotons.size(); ++ig3) {
168+
if (ig3 == ig1 || ig3 == ig2) // Skip if photon is one of the meson constituents
169+
continue;
168170
for (const unsigned int ig : {ig1, ig2}) {
169-
if (ig == ig3)
170-
continue;
171-
172171
TLorentzVector lvRotationPhoton(mPhotons[ig].px, mPhotons[ig].py, mPhotons[ig].pz, mPhotons[ig].e);
173172
lvRotationPhoton.Rotate(constants::math::PIHalf, lvRotationPion);
174173
Photon rotPhoton(lvRotationPhoton.Eta(), lvRotationPhoton.Phi(), lvRotationPhoton.E());

0 commit comments

Comments
 (0)