@@ -64,6 +64,7 @@ struct HfTaskSigmac {
6464 Configurable<float > yCandRecoMax{" yCandRecoMax" , -1 , " Maximum Sc candidate rapidity" };
6565 Configurable<bool > enableTHn{" enableTHn" , false , " enable the usage of THn for Λc+ and Σc0,++" };
6666 Configurable<bool > addSoftPiDcaToSigmacSparse{" addSoftPiDcaToSigmacSparse" , false , " enable the filling of sof-pion dcaXY, dcaZ in the Σc0,++ THnSparse" };
67+ Configurable<float > deltaMassSigmacRecoMax{" deltaMassSigmacRecoMax" , 1000 , " Maximum allowed value for Sigmac deltaMass. Conceived to reduce the output size (i.e. reject background above a certain threshold)" };
6768
6869 bool isMc{};
6970 static constexpr std::size_t NDaughters{2u };
@@ -375,6 +376,12 @@ struct HfTaskSigmac {
375376 massSc = HfHelper::invMassScRecoLcToPKPi (candSc, candidateLc);
376377 massLc = HfHelper::invMassLcToPKPi (candidateLc);
377378 deltaMass = massSc - massLc;
379+
380+ if (deltaMass > deltaMassSigmacRecoMax) {
381+ // / the reconstructed deltaMass is too large, let's ignore this candidate for TH1 / THnSparse filling
382+ continue ;
383+ }
384+
378385 // / fill the histograms
379386 if (chargeSc == o2::aod::hf_cand_sigmac::ChargeNull) {
380387 registry.fill (HIST (" Data/hPtSc0" ), ptSc);
@@ -458,6 +465,12 @@ struct HfTaskSigmac {
458465 massSc = HfHelper::invMassScRecoLcToPiKP (candSc, candidateLc);
459466 massLc = HfHelper::invMassLcToPiKP (candidateLc);
460467 deltaMass = massSc - massLc;
468+
469+ if (deltaMass > deltaMassSigmacRecoMax) {
470+ // / the reconstructed deltaMass is too large, let's ignore this candidate for TH1 / THnSparse filling
471+ continue ;
472+ }
473+
461474 // / fill the histograms
462475 if (chargeSc == o2::aod::hf_cand_sigmac::ChargeNull) {
463476 registry.fill (HIST (" Data/hPtSc0" ), ptSc);
@@ -879,6 +892,11 @@ struct HfTaskSigmac {
879892 massLc = HfHelper::invMassLcToPKPi (candidateLc);
880893 deltaMass = massSc - massLc;
881894
895+ if (deltaMass > deltaMassSigmacRecoMax) {
896+ // / the reconstructed deltaMass is too large, let's ignore this candidate for TH1 / THnSparse filling
897+ continue ;
898+ }
899+
882900 // / Fill the histograms for reconstructed Σc0 signal
883901 registry.fill (HIST (" MC/reconstructed/hPtSc0Sig" ), ptSc, origin, channel);
884902 registry.fill (HIST (" MC/reconstructed/hPtGenSc0Sig" ), ptGenSc, origin, channel);
@@ -964,6 +982,11 @@ struct HfTaskSigmac {
964982 massLc = HfHelper::invMassLcToPiKP (candidateLc);
965983 deltaMass = massSc - massLc;
966984
985+ if (deltaMass > deltaMassSigmacRecoMax) {
986+ // / the reconstructed deltaMass is too large, let's ignore this candidate for TH1 / THnSparse filling
987+ continue ;
988+ }
989+
967990 // / Fill the histograms for reconstructed Σc0 signal
968991 registry.fill (HIST (" MC/reconstructed/hPtSc0Sig" ), ptSc, origin, channel);
969992 registry.fill (HIST (" MC/reconstructed/hPtGenSc0Sig" ), ptGenSc, origin, channel);
@@ -1086,6 +1109,11 @@ struct HfTaskSigmac {
10861109 massLc = HfHelper::invMassLcToPKPi (candidateLc);
10871110 deltaMass = massSc - massLc;
10881111
1112+ if (deltaMass > deltaMassSigmacRecoMax) {
1113+ // / the reconstructed deltaMass is too large, let's ignore this candidate for TH1 / THnSparse filling
1114+ continue ;
1115+ }
1116+
10891117 // / Fill the histograms for reconstructed Σc++ signal
10901118 registry.fill (HIST (" MC/reconstructed/hPtScPlusPlusSig" ), ptSc, origin, channel);
10911119 registry.fill (HIST (" MC/reconstructed/hPtGenScPlusPlusSig" ), ptGenSc, origin, channel);
@@ -1171,6 +1199,11 @@ struct HfTaskSigmac {
11711199 massLc = HfHelper::invMassLcToPiKP (candidateLc);
11721200 deltaMass = massSc - massLc;
11731201
1202+ if (deltaMass > deltaMassSigmacRecoMax) {
1203+ // / the reconstructed deltaMass is too large, let's ignore this candidate for TH1 / THnSparse filling
1204+ continue ;
1205+ }
1206+
11741207 // / Fill the histograms for reconstructed Σc++ signal
11751208 registry.fill (HIST (" MC/reconstructed/hPtScPlusPlusSig" ), ptSc, origin, channel);
11761209 registry.fill (HIST (" MC/reconstructed/hPtGenScPlusPlusSig" ), ptGenSc, origin, channel);
0 commit comments