@@ -1112,6 +1112,8 @@ struct HfTaskSigmac {
11121112 // / THn for candidate Σc0,++ cut variation
11131113 if (enableTHn) {
11141114 int8_t particleAntiparticle = candSc.particleAntiparticle ();
1115+ const float softPiAbsDcaXY = std::abs (candSc.softPiDcaXY ());
1116+ const float softPiAbsDcaZ = std::abs (candSc.softPiDcaZ ());
11151117 if constexpr (useMl) {
11161118 // / fill with ML information
11171119 // / BDT index 0: bkg score; BDT index 2: non-prompt score
@@ -1120,10 +1122,18 @@ struct HfTaskSigmac {
11201122 outputMl.at (0 ) = candidateLc.mlProbLcToPKPi ()[0 ]; // / bkg score
11211123 outputMl.at (1 ) = candidateLc.mlProbLcToPKPi ()[2 ]; // / non-prompt score
11221124 }
1123- registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, outputMl.at (0 ), outputMl.at (1 ), origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle);
1125+ if (addSoftPiDcaToSigmacSparse) {
1126+ registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, outputMl.at (0 ), outputMl.at (1 ), origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle, softPiAbsDcaXY, softPiAbsDcaZ);
1127+ } else {
1128+ registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, outputMl.at (0 ), outputMl.at (1 ), origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle);
1129+ }
11241130 } else {
11251131 // / fill w/o BDT information
1126- registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, decLengthLc, decLengthXYLc, cpaLc, cpaXYLc, origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle);
1132+ if (addSoftPiDcaToSigmacSparse) {
1133+ registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, decLengthLc, decLengthXYLc, cpaLc, cpaXYLc, origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle, softPiAbsDcaXY, softPiAbsDcaZ);
1134+ } else {
1135+ registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, decLengthLc, decLengthXYLc, cpaLc, cpaXYLc, origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle);
1136+ }
11271137 }
11281138 }
11291139
@@ -1185,6 +1195,8 @@ struct HfTaskSigmac {
11851195 // / THn for candidate Σc0,++ cut variation
11861196 if (enableTHn) {
11871197 int8_t particleAntiparticle = candSc.particleAntiparticle ();
1198+ const float softPiAbsDcaXY = std::abs (candSc.softPiDcaXY ());
1199+ const float softPiAbsDcaZ = std::abs (candSc.softPiDcaZ ());
11881200 if constexpr (useMl) {
11891201 // / fill with ML information
11901202 // / BDT index 0: bkg score; BDT index 2: non-prompt score
@@ -1193,10 +1205,18 @@ struct HfTaskSigmac {
11931205 outputMl.at (0 ) = candidateLc.mlProbLcToPiKP ()[0 ]; // / bkg score
11941206 outputMl.at (1 ) = candidateLc.mlProbLcToPiKP ()[2 ]; // / non-prompt score
11951207 }
1196- registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, outputMl.at (0 ), outputMl.at (1 ), origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle);
1208+ if (addSoftPiDcaToSigmacSparse) {
1209+ registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, outputMl.at (0 ), outputMl.at (1 ), origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle, softPiAbsDcaXY, softPiAbsDcaZ);
1210+ } else {
1211+ registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, outputMl.at (0 ), outputMl.at (1 ), origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle);
1212+ }
11971213 } else {
11981214 // / fill w/o BDT information
1199- registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, decLengthLc, decLengthXYLc, cpaLc, cpaXYLc, origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle);
1215+ if (addSoftPiDcaToSigmacSparse) {
1216+ registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, decLengthLc, decLengthXYLc, cpaLc, cpaXYLc, origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle, softPiAbsDcaXY, softPiAbsDcaZ);
1217+ } else {
1218+ registry.get <THnSparse>(HIST (" hnSigmaC" ))->Fill (ptLc, deltaMass, decLengthLc, decLengthXYLc, cpaLc, cpaXYLc, origin, channel, ptSc, std::abs (chargeSc), candSc.ptBhadMotherPart (), sigmacSpecies, particleAntiparticle);
1219+ }
12001220 }
12011221 }
12021222
0 commit comments