From 8bc1b41ab3ea2dc1d8d0573e7b72cefde73d0f49 Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Fri, 26 Jan 2024 09:55:36 +0100 Subject: [PATCH] Minor fix --- PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx b/PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx index 845ed87d434..aa9025ca287 100644 --- a/PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx +++ b/PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx @@ -179,8 +179,10 @@ struct derivedlambdakzeroanalysis { // histograms versus mass if(analyseK0Short) histos.add("h3dMassK0Short", "h3dMassK0Short", kTH3F, {axisCentrality, axisPt, axisK0Mass}); - histos.add("h3dMassLambda", "h3dMassLambda", kTH3F, {axisCentrality, axisPt, axisLambdaMass}); - histos.add("h3dMassAntiLambda", "h3dMassAntiLambda", kTH3F, {axisCentrality, axisPt, axisLambdaMass}); + if(analyseLambda) + histos.add("h3dMassLambda", "h3dMassLambda", kTH3F, {axisCentrality, axisPt, axisLambdaMass}); + if(analyseAntiLambda) + histos.add("h3dMassAntiLambda", "h3dMassAntiLambda", kTH3F, {axisCentrality, axisPt, axisLambdaMass}); // demo // fast histos.add("hMassK0Short", "hMassK0Short", kTH1F, {axisK0Mass});