Skip to content

Commit 09fa1c4

Browse files
[PWGLF] Added phi MC THnSparse for QA (#17503)
Co-authored-by: 5ub-Man <imsubhadeepmandal@outlook.com>
1 parent 3f30a35 commit 09fa1c4

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

PWGLF/Tasks/Resonances/kstarqa.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,14 @@ struct Kstarqa {
391391
hInvMass.add("MCcorrections/hImpactParametervsMultiplicity", "Impact parameter vs multiplicity in reconstructed MC", kTH2F, {{impactParAxis}, {multiplicityAxis}});
392392
}
393393

394+
ConfigurableAxis etaAxis = {"etaAxis", {100, -1.0f, 1.0f}, "Eta axis"};
395+
ConfigurableAxis phiAxis = {"phiAxis", {100, -3.15f, 3.15f}, "Phi axis"};
396+
ConfigurableAxis subAxis = {"subAxis", {100, -1.0f, 1.0f}, "Difference axis"};
397+
398+
if (doprocessRecPhi) {
399+
hInvMass.add("PhiMCChecks", "PhiMCChecks", kTHnSparseF, {ptAxis, etaAxis, phiAxis, subAxis, subAxis, subAxis}); // pT, eta, phi, deltaEta, deltaPhi, deltaR
400+
}
401+
394402
// Signal Loss & Event Loss in Light Ion Collisions
395403
if (doprocessEvtLossSigLossLightIonMC) {
396404
hInvMass.add("MCcorrections/hImpactParameterGen", "Impact parameter of generated MC events", kTH1F, {impactParAxis});
@@ -3001,14 +3009,12 @@ struct Kstarqa {
30013009
}
30023010

30033011
double multiplicityRec = -1.0;
3004-
// multiplicityRec = collision.mcCollision_as<EventMCGenerated>().centFT0M();
30053012
const auto& mcCollisionRec = collision.mcCollision_as<EventMCGenerated>();
30063013
multiplicityRec = mcCollisionRec.centFT0M();
30073014

30083015
if (configGp.isINELgt0 && !collision.isInelGt0()) {
30093016
return;
30103017
}
3011-
// multiplicity = collision.centFT0M();
30123018

30133019
if (cSelectMultEstimator == kFT0M) {
30143020
multiplicity = collision.centFT0M();
@@ -3080,7 +3086,6 @@ struct Kstarqa {
30803086
int track2PDG = std::abs(mctrack2.pdgCode());
30813087
if (cQAplots) {
30823088
hPID.fill(HIST("Before/hTPCnsigKa_mult_pt"), track1.tpcNSigmaKa(), multiplicity, track1.pt());
3083-
// hPID.fill(HIST("Before/hTPCnsigPi_mult_pt"), track2.tpcNSigmaPi(), multiplicity, track2.pt());
30843089
hPID.fill(HIST("Before/hTOFnsigKa_mult_pt"), track1.tofNSigmaKa(), multiplicity, track1.pt());
30853090
hPID.fill(HIST("Before/hTOFnsigPi_mult_pt"), track2.tofNSigmaPi(), multiplicity, track2.pt());
30863091
}
@@ -3160,16 +3165,11 @@ struct Kstarqa {
31603165
daughter2 = ROOT::Math::PxPyPzMVector(track2.px(), track2.py(), track2.pz(), massKa);
31613166
mother = daughter1 + daughter2; // Phi meson
31623167

3163-
hInvMass.fill(HIST("h2KstarRecpt2"), mothertrack1.pt(), multiplicity, std::sqrt(mothertrack1.e() * mothertrack1.e() - mothertrack1.p() * mothertrack1.p()));
3164-
hInvMass.fill(HIST("h2KstarRecptCalib2"), mothertrack1.pt(), multiplicityRec, std::sqrt(mothertrack1.e() * mothertrack1.e() - mothertrack1.p() * mothertrack1.p()));
3165-
3166-
if (mother.Rapidity() >= configGp.rapidityMotherData) {
3167-
continue;
3168-
}
3168+
auto genpTPhi = mothertrack1.pt();
3169+
auto genEtaPhi = mothertrack1.eta();
3170+
auto genPhiPhi = mothertrack1.phi();
31693171

3170-
hInvMass.fill(HIST("h1KstarRecMass"), mother.M());
3171-
hInvMass.fill(HIST("h2KstarRecpt1"), mother.Pt(), multiplicity, mother.M());
3172-
hInvMass.fill(HIST("h2KstarRecptCalib1"), mother.Pt(), multiplicityRec, mother.M());
3172+
hInvMass.fill(HIST("PhiMCChecks"), mother.pt(), mother.eta(), mother.phi(), genpTPhi - mother.pt(), genEtaPhi - mother.eta(), genPhiPhi - mother.phi());
31733173
}
31743174
}
31753175
}

0 commit comments

Comments
 (0)