@@ -166,6 +166,7 @@ struct Derivedupcanalysis {
166166 } casccuts;
167167 Configurable<bool > doBachelorBaryonCut{" doBachelorBaryonCut" , false , " Enable Bachelor-Baryon cut " };
168168 static constexpr float kNCtauCutsCasc [1 ][2 ] = {{6 ., 6 .}};
169+ static constexpr int kFirstCascadePartID = 3 ;
169170 Configurable<LabeledArray<float >> nCtauCutCasc{" nCtauCutCasc" , {kNCtauCutsCasc [0 ], 2 , {" lifetimecutXi" , " lifetimecutOmega" }}, " nCtauCutCasc" };
170171
171172 // UPC selections
@@ -330,7 +331,7 @@ struct Derivedupcanalysis {
330331 template <int partID>
331332 void addTopoHistograms (HistogramRegistry& histos)
332333 {
333- const bool isCascade = ( partID > 2.5 ) ? true : false ;
334+ const bool isCascade = partID >= kFirstCascadePartID ;
334335 if (isCascade) {
335336 histos.add (Form (" %s/hCascCosPA" , kParticlenames [partID].data ()), " hCascCosPA" , kTH2F , {axisPtCoarse, {100 , 0 .9f , 1 .0f }});
336337 histos.add (Form (" %s/hDCACascDaughters" , kParticlenames [partID].data ()), " hDCACascDaughters" , kTH2F , {axisPtCoarse, {44 , 0 .0f , 2 .2f }});
@@ -364,7 +365,7 @@ struct Derivedupcanalysis {
364365 template <int partID>
365366 void addTPCQAHistograms (HistogramRegistry& histos)
366367 {
367- const bool isCascade = ( partID > 2.5 ) ? true : false ;
368+ const bool isCascade = partID >= kFirstCascadePartID ;
368369 histos.add (Form (" %s/h3dPosNsigmaTPC" , kParticlenames [partID].data ()), " h3dPosNsigmaTPC" , kTH3F , {axisDetectors.axisFT0ampl , axisPtCoarse, axisNsigmaTPC});
369370 histos.add (Form (" %s/h3dNegNsigmaTPC" , kParticlenames [partID].data ()), " h3dNegNsigmaTPC" , kTH3F , {axisDetectors.axisFT0ampl , axisPtCoarse, axisNsigmaTPC});
370371 histos.add (Form (" %s/h3dPosTPCsignal" , kParticlenames [partID].data ()), " h3dPosTPCsignal" , kTH3F , {axisDetectors.axisFT0ampl , axisPtCoarse, axisTPCsignal});
@@ -395,7 +396,7 @@ struct Derivedupcanalysis {
395396 template <int partID>
396397 void addTOFQAHistograms (HistogramRegistry& histos)
397398 {
398- const bool isCascade = ( partID > 2.5 ) ? true : false ;
399+ const bool isCascade = partID >= kFirstCascadePartID ;
399400 histos.add (Form (" %s/h3dPosTOFdeltaT" , kParticlenames [partID].data ()), " h3dPosTOFdeltaT" , kTH3F , {axisDetectors.axisFT0ampl , axisPtCoarse, axisTOFdeltaT});
400401 histos.add (Form (" %s/h3dNegTOFdeltaT" , kParticlenames [partID].data ()), " h3dNegTOFdeltaT" , kTH3F , {axisDetectors.axisFT0ampl , axisPtCoarse, axisTOFdeltaT});
401402 histos.add (Form (" %s/h3dPosTOFdeltaTvsTrackPtot" , kParticlenames [partID].data ()), " h3dPosTOFdeltaTvsTrackPtot" , kTH3F , {axisDetectors.axisFT0ampl , axisPtCoarse, axisTOFdeltaT});
@@ -412,7 +413,7 @@ struct Derivedupcanalysis {
412413 template <int partID>
413414 void addKinematicQAHistograms (HistogramRegistry& histos)
414415 {
415- const bool isCascade = ( partID > 2.5 ) ? true : false ;
416+ const bool isCascade = partID >= kFirstCascadePartID ;
416417 histos.add (Form (" %s/h3dPosEtaPt" , kParticlenames [partID].data ()), " h3dPosEtaPt" , kTH3F , {axisPtCoarse, axisEta, axisSelGap});
417418 histos.add (Form (" %s/h3dNegEtaPt" , kParticlenames [partID].data ()), " h3dNegEtaPt" , kTH3F , {axisPtCoarse, axisEta, axisSelGap});
418419 histos.add (Form (" %s/h3dRapPt" , kParticlenames [partID].data ()), " h3dRapPt" , kTH3F , {axisPtCoarse, axisRap, axisSelGap});
@@ -424,7 +425,7 @@ struct Derivedupcanalysis {
424425 template <int partID>
425426 void addDetectorPropHistograms (HistogramRegistry& histos)
426427 {
427- const bool isCascade = ( partID > 2.5 ) ? true : false ;
428+ const bool isCascade = partID >= kFirstCascadePartID ;
428429 if (doDetectPropQA == 1 ) {
429430 if (isCascade) {
430431 histos.add (Form (" %s/h8dDetectPropVsCentrality" , kParticlenames [partID].data ()), " h8dDetectPropVsCentrality" , kTHnSparseF , {axisDetectors.axisFT0ampl , axisDetMapCoarse, axisITScluMapCoarse, axisDetMapCoarse, axisITScluMapCoarse, axisDetMapCoarse, axisITScluMapCoarse, axisPtCoarse});
0 commit comments