Skip to content

Commit f3418c3

Browse files
basiachBarbara Chytlaalibuild
authored
[PWGCF] FemtoUniverse - Removing double QA histos, unused valiable, changing comments for cascades (#12407)
Co-authored-by: Barbara Chytla <barbara.chytla@cern.ch> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 8f194f6 commit f3418c3

File tree

2 files changed

+14
-31
lines changed

2 files changed

+14
-31
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseCascadeSelection.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ class FemtoUniverseCascadeSelection
252252
femto_universe_selection::kLowerLimit, // cascade tran rad min
253253
femto_universe_selection::kUpperLimit, // cascade tran rad max
254254
femto_universe_selection::kUpperLimit, // cascade maximum distance of decay vertex to PV
255-
femto_universe_selection::kLowerLimit, // DCA pos to PV max
256-
femto_universe_selection::kLowerLimit, // DCA neg to PV max
257-
femto_universe_selection::kLowerLimit, // DCA bach to PV max
255+
femto_universe_selection::kLowerLimit, // DCA pos to PV min
256+
femto_universe_selection::kLowerLimit, // DCA neg to PV min
257+
femto_universe_selection::kLowerLimit, // DCA bach to PV min
258258
femto_universe_selection::kLowerLimit, // DCA v0 to PV max
259259
femto_universe_selection::kLowerLimit, // v0 mass min
260260
femto_universe_selection::kUpperLimit, // v0 mass max
@@ -276,10 +276,10 @@ class FemtoUniverseCascadeSelection
276276
"Minimum cascade transverse radius (cm)",
277277
"Maximum cascade transverse radius (cm)",
278278
"Maximum distance of cascade from primary vertex",
279-
"Maximum DCA of positive track form primary vertex",
280-
"Maximum DCA of negative track form primary vertex",
281-
"Maximum DCA of bachelor track form primary vertex",
282-
"Maximum DCA of v0 form primary vertex",
279+
"Minimum DCA of positive track form primary vertex",
280+
"Minimum DCA of negative track form primary vertex",
281+
"Minimum DCA of bachelor track form primary vertex",
282+
"Minimum DCA of v0 form primary vertex",
283283
"Minimum V0 mass",
284284
"Maximum V0 mass"}; ///< Helper information for the
285285
///< different selections

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackCascadeExtended.cxx

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ struct femtoUniversePairTaskTrackCascadeExtended {
5454
ConfigurableAxis confChildTempFitVarBins{"confChildTempFitVarBins", {300, -0.15, 0.15}, "V0 child: binning of the TempFitVar in the pT vs. TempFitVar plot"};
5555
Configurable<float> confCascInvMassLowLimit{"confCascInvMassLowLimit", 1.315, "Lower limit of the Casc invariant mass"};
5656
Configurable<float> confCascInvMassUpLimit{"confCascInvMassUpLimit", 1.325, "Upper limit of the Casc invariant mass"};
57-
Configurable<float> confCascTranRad{"confCascTranRad", 0.5, "Cascade transverse radius"};
5857

5958
Configurable<float> confNSigmaTPCPion{"confNSigmaTPCPion", 4, "NSigmaTPCPion"};
6059
Configurable<float> confNSigmaTPCProton{"confNSigmaTPCProton", 4, "NSigmaTPCProton"};
@@ -299,29 +298,17 @@ struct femtoUniversePairTaskTrackCascadeExtended {
299298
}
300299
}
301300

302-
void processCascades([[maybe_unused]] const FilteredFDCollision& col, const FemtoFullParticles& parts, const aod::FDCascParticles& fdcascs)
301+
void processCascadeQA([[maybe_unused]] const FilteredFDCollision& col, const FemtoFullParticles& parts, const aod::FDCascParticles& fdcascs)
303302
{
304-
// auto groupCascs = cascs->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
305-
// const int multCol = col.multNtr();
306-
307303
for (const auto& casc : fdcascs) {
308304
const auto& part = casc.fdParticle_as<FemtoFullParticles>();
309305
rXiQA.fill(HIST("hMassXi"), part.mLambda());
310306

311-
// if (!invMCascade(casc.mLambda(), casc.mAntiLambda()))
312-
// continue;
313-
314307
const auto& posChild = parts.iteratorAt(part.globalIndex() - 3 - parts.begin().globalIndex());
315308
const auto& negChild = parts.iteratorAt(part.globalIndex() - 2 - parts.begin().globalIndex());
316309
const auto& bachelor = parts.iteratorAt(part.globalIndex() - 1 - parts.begin().globalIndex());
317310

318-
// if (casc.transRadius() < confCascTranRad)
319-
// continue;
320-
// std::cout<<std::endl;
321-
// std::cout<<"TYPE:"<<std::endl;
322-
// std::cout<<casc.partType()<<std::endl;
323311
// nSigma selection for daughter and bachelor tracks
324-
325312
if (part.sign() < 0) {
326313
if (std::abs(posChild.tpcNSigmaPr()) > confNSigmaTPCProton) {
327314
continue;
@@ -356,13 +343,9 @@ struct femtoUniversePairTaskTrackCascadeExtended {
356343
rXiQA.fill(HIST("hDcaBachtoPV"), casc.dcabachtopv());
357344
rXiQA.fill(HIST("hDcaV0toPV"), casc.dcav0topv());
358345
rXiQA.fill(HIST("hInvMpT"), part.pt(), part.mLambda());
359-
360-
posChildHistos.fillQA<false, true>(posChild);
361-
negChildHistos.fillQA<false, true>(negChild);
362-
bachHistos.fillQABase<false, true>(bachelor, HIST("hBachelor"));
363346
}
364347
}
365-
PROCESS_SWITCH(femtoUniversePairTaskTrackCascadeExtended, processCascades, "Enable processing cascades", false);
348+
PROCESS_SWITCH(femtoUniversePairTaskTrackCascadeExtended, processCascadeQA, "Enable processing cascades", false);
366349

367350
template <class T>
368351
using hasSigma = decltype(std::declval<T&>().tpcNSigmaStorePr());
@@ -383,11 +366,6 @@ struct femtoUniversePairTaskTrackCascadeExtended {
383366
if (!invMCascade(part.mLambda(), part.mAntiLambda(), confCascType1)) /// mLambda stores Xi mass, mAntiLambda stores Omega mass
384367
continue;
385368

386-
if constexpr (std::experimental::is_detected<hasSigma, typename TableType::iterator>::value)
387-
cascQAHistos.fillQA<false, true>(part);
388-
else
389-
cascQAHistos.fillQA<false, false>(part);
390-
391369
const auto& posChild = parts.iteratorAt(part.globalIndex() - 3 - parts.begin().globalIndex());
392370
const auto& negChild = parts.iteratorAt(part.globalIndex() - 2 - parts.begin().globalIndex());
393371
const auto& bachelor = parts.iteratorAt(part.globalIndex() - 1 - parts.begin().globalIndex());
@@ -409,6 +387,11 @@ struct femtoUniversePairTaskTrackCascadeExtended {
409387
if ((!confCheckTOFBachelorOnly && ((posChild.pidCut() & (8u << CascChildTable[confCascType1][0])) == 0 || (negChild.pidCut() & (8u << CascChildTable[confCascType1][1])) == 0)) || (bachelor.pidCut() & (8u << CascChildTable[confCascType1][2])) == 0)
410388
continue;
411389

390+
if constexpr (std::experimental::is_detected<hasSigma, typename TableType::iterator>::value)
391+
cascQAHistos.fillQA<false, true>(part);
392+
else
393+
cascQAHistos.fillQA<false, false>(part);
394+
412395
posChildHistos.fillQA<false, false>(posChild);
413396
negChildHistos.fillQA<false, false>(negChild);
414397
bachHistos.fillQABase<false, false>(bachelor, HIST("hBachelor"));

0 commit comments

Comments
 (0)