Skip to content

Commit 68b2b50

Browse files
author
Zhihe Han
committed
[PWGCF] Handle kSecondaryFromPhi in the FemtoDream QA history
kSecondaryFromPhi was added together with kSecondaryFromHF/LF, but the FemtoDream QA switch statements did not know it, so any V0 candidate from a phi decay chain hit the fatal branch in fillQA_MC and killed the whole workflow. - add hCPA_SecondaryFromHF/LF/Phi registration for V0 candidates - add the three cases to both V0 switches (debug and non-debug) - add the Phi case and its histograms to the kaon switches Note: the cascade branches keep their pre-existing gap for the HF/LF/Phi origins; they are not touched here to keep the scope minimal.
1 parent 67e1449 commit 68b2b50

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

‎PWGCF/FemtoDream/Core/femtoDreamParticleHisto.h‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ class FemtoDreamParticleHisto
236236
if (std::abs(mPDG) == kKPlus) {
237237
mHistogramRegistry->add((folderName + folderSuffix + "/Debug/hPDGmother_SecondaryFromHF").c_str(), "; PDG mother; Entries", o2::framework::HistType::kTH1I, {{12001, -6000.5, 6000.5}});
238238
mHistogramRegistry->add((folderName + folderSuffix + "/Debug/hPDGmother_SecondaryFromLF").c_str(), "; PDG mother; Entries", o2::framework::HistType::kTH1I, {{12001, -6000.5, 6000.5}});
239+
mHistogramRegistry->add((folderName + folderSuffix + "/Debug/hPDGmother_SecondaryFromPhi").c_str(), "; PDG mother; Entries", o2::framework::HistType::kTH1I, {{12001, -6000.5, 6000.5}});
239240
mHistogramRegistry->add((folderName + folderSuffix + "/hDCAxy_SecondaryFromHF").c_str(), "; #it{p}_{T} (GeV/#it{c}); DCA_{xy} (cm)", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, dcazAxis, multAxis});
240241
mHistogramRegistry->add((folderName + folderSuffix + "/hDCAxy_SecondaryFromLF").c_str(), "; #it{p}_{T} (GeV/#it{c}); DCA_{xy} (cm)", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, dcazAxis, multAxis});
242+
mHistogramRegistry->add((folderName + folderSuffix + "/hDCAxy_SecondaryFromPhi").c_str(), "; #it{p}_{T} (GeV/#it{c}); DCA_{xy} (cm)", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, dcazAxis, multAxis});
241243
}
242244

243245
mHistogramRegistry->add((folderName + folderSuffix + "/hDCAxy_Primary").c_str(), "; #it{p}_{T} (GeV/#it{c}); DCA_{xy} (cm)", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, dcazAxis, multAxis});
@@ -254,6 +256,7 @@ class FemtoDreamParticleHisto
254256
if (std::abs(mPDG) == kKPlus) {
255257
mHistogramRegistry->add((folderName + folderSuffix + "/hDCAxy_SecondaryFromHF").c_str(), "; #it{p}_{T} (GeV/#it{c}); DCA_{xy} (cm)", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
256258
mHistogramRegistry->add((folderName + folderSuffix + "/hDCAxy_SecondaryFromLF").c_str(), "; #it{p}_{T} (GeV/#it{c}); DCA_{xy} (cm)", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
259+
mHistogramRegistry->add((folderName + folderSuffix + "/hDCAxy_SecondaryFromPhi").c_str(), "; #it{p}_{T} (GeV/#it{c}); DCA_{xy} (cm)", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
257260
}
258261
mHistogramRegistry->add((folderName + folderSuffix + "/hDCAxy_Secondary").c_str(), "; #it{p}_{T} (GeV/#it{c}); DCA_{xy} (cm)", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
259262
mHistogramRegistry->add((folderName + folderSuffix + "/hDCAxy_Material").c_str(), "; #it{p}_{T} (GeV/#it{c}); DCA_{xy} (cm)", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
@@ -274,6 +277,9 @@ class FemtoDreamParticleHisto
274277
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_WrongCollision").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, multAxis});
275278
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_Fake").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, multAxis});
276279
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_Else").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, multAxis});
280+
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_SecondaryFromHF").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, multAxis});
281+
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_SecondaryFromLF").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, multAxis});
282+
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_SecondaryFromPhi").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, multAxis});
277283
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_Secondary_SIGMA0").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, multAxis});
278284
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_Secondary_XIMinus").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, multAxis});
279285
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_Secondary_XI0").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTHnSparseF, {tempFitVarpTAxis, tempFitVarAxis, multAxis});
@@ -284,6 +290,9 @@ class FemtoDreamParticleHisto
284290
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_WrongCollision").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
285291
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_Fake").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
286292
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_Else").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
293+
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_SecondaryFromHF").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
294+
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_SecondaryFromLF").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
295+
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_SecondaryFromPhi").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
287296
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_Secondary_SIGMA0").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
288297
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_Secondary_XIMinus").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
289298
mHistogramRegistry->add((folderName + folderSuffix + "/hCPA_Secondary_XI0").c_str(), "; #it{p}_{T} (GeV/#it{c}); CPA", o2::framework::HistType::kTH2F, {tempFitVarpTAxis, tempFitVarAxis});
@@ -617,6 +626,11 @@ class FemtoDreamParticleHisto
617626
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hDCAxy_SecondaryFromLF"),
618627
part.pt(), part.tempFitVar(), part.dcaZ(), mult);
619628
break;
629+
case (o2::aod::femtodreamMCparticle::kSecondaryFromPhi):
630+
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/Debug/hPDGmother_SecondaryFromPhi"), part.fdExtMCParticle().motherPDG());
631+
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hDCAxy_SecondaryFromPhi"),
632+
part.pt(), part.tempFitVar(), part.dcaZ(), mult);
633+
break;
620634
case (o2::aod::femtodreamMCparticle::kMaterial):
621635
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/Debug/hPDGmother_Material"), part.fdExtMCParticle().motherPDG());
622636
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hDCAxy_Material"),
@@ -673,6 +687,10 @@ class FemtoDreamParticleHisto
673687
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hDCAxy_SecondaryFromLF"),
674688
part.pt(), part.tempFitVar());
675689
break;
690+
case (o2::aod::femtodreamMCparticle::kSecondaryFromPhi):
691+
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hDCAxy_SecondaryFromPhi"),
692+
part.pt(), part.tempFitVar());
693+
break;
676694
case (o2::aod::femtodreamMCparticle::kMaterial):
677695
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hDCAxy_Material"),
678696
part.pt(), part.tempFitVar());
@@ -745,6 +763,18 @@ class FemtoDreamParticleHisto
745763
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hCPA_Secondary_XI0"),
746764
part.pt(), part.tempFitVar(), mult);
747765
break;
766+
case (o2::aod::femtodreamMCparticle::kSecondaryFromHF):
767+
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hCPA_SecondaryFromHF"),
768+
part.pt(), part.tempFitVar(), mult);
769+
break;
770+
case (o2::aod::femtodreamMCparticle::kSecondaryFromLF):
771+
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hCPA_SecondaryFromLF"),
772+
part.pt(), part.tempFitVar(), mult);
773+
break;
774+
case (o2::aod::femtodreamMCparticle::kSecondaryFromPhi):
775+
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hCPA_SecondaryFromPhi"),
776+
part.pt(), part.tempFitVar(), mult);
777+
break;
748778
default:
749779
LOG(fatal) << "femtodreamparticleMC: not known value for ParticleOriginMCTruth - please check. Quitting!";
750780
}
@@ -786,6 +816,18 @@ class FemtoDreamParticleHisto
786816
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hCPA_Secondary_XI0"),
787817
part.pt(), part.tempFitVar());
788818
break;
819+
case (o2::aod::femtodreamMCparticle::kSecondaryFromHF):
820+
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hCPA_SecondaryFromHF"),
821+
part.pt(), part.tempFitVar());
822+
break;
823+
case (o2::aod::femtodreamMCparticle::kSecondaryFromLF):
824+
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hCPA_SecondaryFromLF"),
825+
part.pt(), part.tempFitVar());
826+
break;
827+
case (o2::aod::femtodreamMCparticle::kSecondaryFromPhi):
828+
mHistogramRegistry->fill(HIST(o2::aod::femtodreamparticle::ParticleTypeName[mParticleType]) + HIST(mFolderSuffix[mFolderSuffixType]) + HIST("_MC/hCPA_SecondaryFromPhi"),
829+
part.pt(), part.tempFitVar());
830+
break;
789831
default:
790832
LOG(fatal) << "femtodreamparticleMC: not known value for ParticleOriginMCTruth - please check. Quitting!";
791833
}

0 commit comments

Comments
 (0)