Skip to content

Commit

Permalink
PWGLF/hStrCorr: add extra debug/QA histos (AliceO2Group#7594)
Browse files Browse the repository at this point in the history
* PWGLF/hStrCorr: add extra debug/QA histos

@lhusova @kcui1 @ChiaraDeMartin95

* Update hStrangeCorrelation.cxx

add missing eta cut

* Please consider the following formatting changes (AliceO2Group#7595)

---------

Co-authored-by: ALICE Builder <[email protected]>
  • Loading branch information
2 people authored and fchinu committed Sep 18, 2024
1 parent 6544894 commit c7a364a
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,11 @@ struct correlateStrangeness {
}

// Some QA plots
histos.add("hGeneratedQAPtTrigger", "hGeneratedQAPtTrigger", kTH2F, {axisPtQA, {5, -0.5f, 4.5f}});
histos.add("hGeneratedQAPtAssociatedK0", "hGeneratedQAPtAssociatedK0", kTH2F, {axisPtQA, {5, -0.5f, 4.5f}});
histos.add("hClosureQAPtTrigger", "hClosureQAPtTrigger", kTH2F, {axisPtQA, {5, -0.5f, 4.5f}});
histos.add("hClosureQAPtAssociatedK0", "hClosureQAPtAssociatedK0", kTH2F, {axisPtQA, {5, -0.5f, 4.5f}});

histos.add("hTrackEtaVsPtVsPhi", "hTrackEtaVsPtVsPhi", kTH3F, {axisPtQA, axisEta, axisPhi});
histos.add("hK0ShortEtaVsPtVsPhi", "hK0ShortEtaVsPtVsPhi", kTH3F, {axisPtQA, axisEta, axisPhi});
histos.add("hK0ShortEtaVsPtVsPhiBg", "hK0ShortEtaVsPtVsPhiBg", kTH3F, {axisPtQA, axisEta, axisPhi});
Expand Down Expand Up @@ -1174,6 +1179,25 @@ struct correlateStrangeness {
{
histos.fill(HIST("hClosureTestEventCounter"), 2.5f);

for (auto const& mcParticle : mcParticles) {
Double_t geta = mcParticle.eta();
if (std::abs(geta) > 0.8f) {
continue;
}
Double_t gpt = mcParticle.pt();
if (abs(mcParticle.pdgCode()) == 211 || abs(mcParticle.pdgCode()) == 321 || abs(mcParticle.pdgCode()) == 2212 || abs(mcParticle.pdgCode()) == 11 || abs(mcParticle.pdgCode()) == 13) {
if (!doTriggPhysicalPrimary || mcParticle.isPhysicalPrimary()) {
histos.fill(HIST("hGeneratedQAPtTrigger"), gpt, 0.0f); // step 1: before all selections
}
}

if (!doAssocPhysicalPrimary || mcParticle.isPhysicalPrimary()) {
if (abs(mcParticle.pdgCode()) == 310 && doCorrelationK0Short) {
histos.fill(HIST("hGeneratedQAPtAssociatedK0"), gpt, 0.0f); // step 1: before all selections
}
}
}

for (auto const& mcParticle : mcParticles) {
if (!mcParticle.isPhysicalPrimary())
continue;
Expand Down Expand Up @@ -1250,6 +1274,25 @@ struct correlateStrangeness {

histos.fill(HIST("hClosureTestEventCounter"), 3.5f);

for (auto const& mcParticle : mcParticles) {
Double_t geta = mcParticle.eta();
if (std::abs(geta) > 0.8f) {
continue;
}
Double_t gpt = mcParticle.pt();
if (abs(mcParticle.pdgCode()) == 211 || abs(mcParticle.pdgCode()) == 321 || abs(mcParticle.pdgCode()) == 2212 || abs(mcParticle.pdgCode()) == 11 || abs(mcParticle.pdgCode()) == 13) {
if (!doTriggPhysicalPrimary || mcParticle.isPhysicalPrimary()) {
histos.fill(HIST("hGeneratedQAPtTrigger"), gpt, 1.0f); // step 2: after event selection
}
}

if (!doAssocPhysicalPrimary || mcParticle.isPhysicalPrimary()) {
if (abs(mcParticle.pdgCode()) == 310 && doCorrelationK0Short) {
histos.fill(HIST("hGeneratedQAPtAssociatedK0"), gpt, 1.0f); // step 2: before all selections
}
}
}

for (auto const& mcParticle : mcParticles) {
if (!mcParticle.isPhysicalPrimary()) {
continue;
Expand Down Expand Up @@ -1309,6 +1352,25 @@ struct correlateStrangeness {
std::vector<uint32_t> omegaMinusIndices;
std::vector<uint32_t> omegaPlusIndices;

for (auto const& mcParticle : mcParticles) {
Double_t geta = mcParticle.eta();
if (std::abs(geta) > 0.8f) {
continue;
}
Double_t gpt = mcParticle.pt();
if (abs(mcParticle.pdgCode()) == 211 || abs(mcParticle.pdgCode()) == 321 || abs(mcParticle.pdgCode()) == 2212 || abs(mcParticle.pdgCode()) == 11 || abs(mcParticle.pdgCode()) == 13) {
if (!doTriggPhysicalPrimary || mcParticle.isPhysicalPrimary()) {
histos.fill(HIST("hClosureQAPtTrigger"), gpt, 0.0f); // step 1: no event selection whatsoever
}
}

if (!doAssocPhysicalPrimary || mcParticle.isPhysicalPrimary()) {
if (abs(mcParticle.pdgCode()) == 310 && doCorrelationK0Short) {
histos.fill(HIST("hClosureQAPtAssociatedK0"), gpt, 0.0f); // step 1: no event selection whatsoever
}
}
}

histos.fill(HIST("hClosureTestEventCounter"), 0.5f);

int bestCollisionFT0Mpercentile = -1;
Expand Down Expand Up @@ -1339,6 +1401,25 @@ struct correlateStrangeness {

histos.fill(HIST("hClosureTestEventCounter"), 1.5f);

for (auto const& mcParticle : mcParticles) {
Double_t geta = mcParticle.eta();
if (std::abs(geta) > 0.8f) {
continue;
}
Double_t gpt = mcParticle.pt();
if (abs(mcParticle.pdgCode()) == 211 || abs(mcParticle.pdgCode()) == 321 || abs(mcParticle.pdgCode()) == 2212 || abs(mcParticle.pdgCode()) == 11 || abs(mcParticle.pdgCode()) == 13) {
if (!doTriggPhysicalPrimary || mcParticle.isPhysicalPrimary()) {
histos.fill(HIST("hClosureQAPtTrigger"), gpt, 1.0f); // step 2: after event selection
}
}

if (!doAssocPhysicalPrimary || mcParticle.isPhysicalPrimary()) {
if (abs(mcParticle.pdgCode()) == 310 && doCorrelationK0Short) {
histos.fill(HIST("hClosureQAPtAssociatedK0"), gpt, 1.0f); // step 2: after event selection
}
}
}

int iteratorNum = -1;
for (auto const& mcParticle : mcParticles) {
iteratorNum = iteratorNum + 1;
Expand Down

0 comments on commit c7a364a

Please sign in to comment.