Skip to content

Commit 690a48e

Browse files
committed
add_correlation_etaPrime
1 parent 2818161 commit 690a48e

1 file changed

Lines changed: 26 additions & 13 deletions

File tree

PWGJE/Tasks/photonChargedTriggerCorrelation.cxx

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ struct PhotonChargedTriggerCorrelation {
456456
}
457457

458458
// decay correlation extra info (just true level)
459-
const std::vector<std::string> assocMcCorrNamesMcDecayAddition = {"photonDecay", "photonDirect", "photonPi0", "photonEta", "omega", "photonOmega", "photonOtherMother"};
459+
const std::vector<std::string> assocMcCorrNamesMcDecayAddition = {"photonDecay", "photonDirect", "photonPi0", "photonEta",
460+
"omega", "photonOmega", "etaPrime", "photonEtaPrime", "photonOtherMother"};
460461
for (auto const& assocName : assocMcCorrNamesMcDecayAddition) {
461462
histos.add(std::format("mc/corr/h6_corr_true_{}", assocName).data(), std::format("h6_corr_true_{}", assocName).data(),
462463
kTHnSparseD, {axisDPhi, axisDEta, axisPtTrig, axisPtAssoc, axisZPvBinningMcTrue, axisMultBinningMcTrue}, true);
@@ -1239,48 +1240,50 @@ struct PhotonChargedTriggerCorrelation {
12391240
PhotonEta = 8,
12401241
Omega = 9,
12411242
PhotonOmega = 10,
1242-
PhotonOtherMother = 11 };
1243-
static constexpr const char* McTrueCorrHistPaths[5][2][12] = {
1243+
EtaPrime = 11,
1244+
PhotonEtaPrime = 12,
1245+
PhotonOtherMother = 13 };
1246+
static constexpr const char* McTrueCorrHistPaths[5][2][14] = {
12441247
{{"mc/corr/h6_corr_true_hadron", "mc/corr/h6_corr_true_pipm",
12451248
"mc/corr/h6_corr_true_photon", "mc/corr/h6_corr_true_photonDecay", "mc/corr/h6_corr_true_photonDirect",
12461249
"mc/corr/h6_corr_true_pi0", "mc/corr/h6_corr_true_photonPi0", "mc/corr/h6_corr_true_eta", "mc/corr/h6_corr_true_photonEta",
1247-
"mc/corr/h6_corr_true_omega", "mc/corr/h6_corr_true_photonOmega", "mc/corr/h6_corr_true_photonOtherMother"},
1250+
"mc/corr/h6_corr_true_omega", "mc/corr/h6_corr_true_photonOmega", "mc/corr/h6_corr_true_etaPrime", "mc/corr/h6_corr_true_photonEtaPrime", "mc/corr/h6_corr_true_photonOtherMother"},
12481251
{"mc/corr/h6_mix_true_hadron", "mc/corr/h6_mix_true_pipm",
12491252
"mc/corr/h6_mix_true_photon", "mc/corr/h6_mix_true_photonDecay", "mc/corr/h6_mix_true_photonDirect",
12501253
"mc/corr/h6_mix_true_pi0", "mc/corr/h6_mix_true_photonPi0", "mc/corr/h6_mix_true_eta", "mc/corr/h6_mix_true_photonEta",
1251-
"mc/corr/h6_mix_true_omega", "mc/corr/h6_mix_true_photonOmega", "mc/corr/h6_mix_true_photonOtherMother"}},
1254+
"mc/corr/h6_mix_true_omega", "mc/corr/h6_mix_true_photonOmega", "mc/corr/h6_mix_true_etaPrime", "mc/corr/h6_mix_true_photonEtaPrime", "mc/corr/h6_mix_true_photonOtherMother"}},
12521255
{{"mc/corr/h6_corr_trueAssocEv_hadron", "mc/corr/h6_corr_trueAssocEv_pipm",
12531256
"mc/corr/h6_corr_trueAssocEv_photon", "", "",
12541257
"mc/corr/h6_corr_trueAssocEv_pi0", "", "mc/corr/h6_corr_trueAssocEv_eta", "",
1255-
"", "", ""},
1258+
"", "", "", "", ""},
12561259
{"mc/corr/h6_mix_trueAssocEv_hadron", "mc/corr/h6_mix_trueAssocEv_pipm",
12571260
"mc/corr/h6_mix_trueAssocEv_photon", "", "",
12581261
"mc/corr/h6_mix_trueAssocEv_pi0", "", "mc/corr/h6_mix_trueAssocEv_eta", "",
1259-
"", "", ""}},
1262+
"", "", "", "", ""}},
12601263
{{"mc/corr/h6_corr_trueAssocEvRecoPtTrig_hadron", "mc/corr/h6_corr_trueAssocEvRecoPtTrig_pipm",
12611264
"mc/corr/h6_corr_trueAssocEvRecoPtTrig_photon", "", "",
12621265
"mc/corr/h6_corr_trueAssocEvRecoPtTrig_pi0", "", "mc/corr/h6_corr_trueAssocEvRecoPtTrig_eta", "",
1263-
"", "", ""},
1266+
"", "", "", "", ""},
12641267
{"mc/corr/h6_mix_trueAssocEvRecoPtTrig_hadron", "mc/corr/h6_mix_trueAssocEvRecoPtTrig_pipm",
12651268
"mc/corr/h6_mix_trueAssocEvRecoPtTrig_photon", "", "",
12661269
"mc/corr/h6_mix_trueAssocEvRecoPtTrig_pi0", "", "mc/corr/h6_mix_trueAssocEvRecoPtTrig_eta", "",
1267-
"", "", ""}},
1270+
"", "", "", "", ""}},
12681271
{{"", "",
12691272
"", "", "",
12701273
"mc/corr/h6_corr_trueMeasDecay_pi0", "", "", "",
1271-
"", "", ""},
1274+
"", "", "", "", ""},
12721275
{"", "",
12731276
"", "", "",
12741277
"mc/corr/h6_mix_trueMeasDecay_pi0", "", "", "",
1275-
"", "", ""}},
1278+
"", "", "", "", ""}},
12761279
{{"", "",
12771280
"", "", "",
12781281
"mc/corr/h6_corr_trueGeoAcc_pi0", "", "", "",
1279-
"", "", ""},
1282+
"", "", "", "", ""},
12801283
{"", "",
12811284
"", "", "",
12821285
"mc/corr/h6_mix_trueGeoAcc_pi0", "", "", "",
1283-
"", "", ""}}};
1286+
"", "", "", "", ""}}};
12841287
static constexpr const char* getMcTrueCorrHistPath(McCorrTruthLevel truthLevel, McCorrCorrelationType correlationType, McCorrAssocType assocType)
12851288
{
12861289
return McTrueCorrHistPaths[static_cast<int>(truthLevel)][static_cast<int>(correlationType)][static_cast<int>(assocType)];
@@ -1380,6 +1383,10 @@ struct PhotonChargedTriggerCorrelation {
13801383
histos.fill(HIST(getMcTrueCorrHistPath(truthLevel, correlationType, McCorrAssocType::PhotonOmega)),
13811384
dPhi, dEta, ptTrig, ptAssoc, posZ, mult, weight);
13821385
break;
1386+
case constants::physics::Pdg::kEtaPrime:
1387+
histos.fill(HIST(getMcTrueCorrHistPath(truthLevel, correlationType, McCorrAssocType::PhotonEtaPrime)),
1388+
dPhi, dEta, ptTrig, ptAssoc, posZ, mult, weight);
1389+
break;
13831390
default:
13841391
histos.fill(HIST(getMcTrueCorrHistPath(truthLevel, correlationType, McCorrAssocType::PhotonOtherMother)),
13851392
dPhi, dEta, ptTrig, ptAssoc, posZ, mult, weight);
@@ -1436,6 +1443,12 @@ struct PhotonChargedTriggerCorrelation {
14361443
dPhi, dEta, ptTrig, ptAssoc, posZ, mult, weight);
14371444
return;
14381445
}
1446+
// etaPrime
1447+
if (associated.pdgCode() == constants::physics::Pdg::kEtaPrime) {
1448+
histos.fill(HIST(getMcTrueCorrHistPath(truthLevel, correlationType, McCorrAssocType::EtaPrime)),
1449+
dPhi, dEta, ptTrig, ptAssoc, posZ, mult, weight);
1450+
return;
1451+
}
14391452
}
14401453

14411454
void processMcTrueCorr(CorrMcCollisions const& mcCollisions, aod::TriggerParticles const& triggerParticles, aod::JetParticles const& mcParticles)

0 commit comments

Comments
 (0)