Skip to content

Commit 899561c

Browse files
authored
[PWGJE] HadronPhotonCorrelation Task: Small bug fixes (#13471)
1 parent 3aff066 commit 899561c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

PWGJE/Tasks/hadronPhotonCorrelation.cxx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ struct HadronPhotonCorrelation {
120120

121121
// Particle ids for storing neutral hadrons
122122
std::map<std::string, int> pidCodes = {
123-
{"pi0", 1}, // pi0
124-
{"eta", 2}, // eta
125-
{"eta'", 3}, // eta'
126-
{"phi", 4}, // phi
127-
{"omega", 5}, // omega
128-
//{"Sigma0", 6}, // Sigma
123+
{"pi0", 1}, // pi0
124+
{"eta", 2}, // eta
125+
{"eta'", 3}, // eta'
126+
{"phi", 4}, // phi
127+
{"omega", 5}, // omega
128+
{"Sigma0", 6}, // Sigma
129129
{"Sigma0_bar", 6}};
130130

131131
std::map<int, int> pidToPdg = {
@@ -1018,6 +1018,9 @@ struct HadronPhotonCorrelation {
10181018
if (!initTrigParticle(track_trig)) {
10191019
continue;
10201020
}
1021+
if (track_trig == track_assoc) {
1022+
continue;
1023+
}
10211024
float dphi = RecoDecay::constrainAngle(daughter->Phi() - track_trig.phi(), -PIHalf);
10221025
registry.fill(HIST("generated/charged/hCocktailPhotonCorrelGen"), track_trig.pt(), track_assoc.pt(), daughter->Pt(), daughter->Eta() - track_trig.eta(), dphi, pidCodes[pdgParticle->GetName()], collision.weight());
10231026
}

0 commit comments

Comments
 (0)