@@ -354,19 +354,6 @@ struct LambdaProtonBalanceFunction {
354354 {
355355 return RecoDecay::y (std::array<float , 3 >{track.px (), track.py (), track.pz ()}, kMassProton );
356356 }
357- // Fills both eta-space and rapidity-space rho2 histograms in one call.
358- // Separated guards prevent filling when either index is out of acceptance.
359- void fillRho2Pair (
360- std::shared_ptr<TH2 >& histEta, std::shared_ptr<TH2 >& histY,
361- int idxEta1, int idxEta2, int idxY1, int idxY2) const
362- {
363- if (idxEta1 >= 0 && idxEta2 >= 0 ) {
364- histEta->Fill (idxEta1, idxEta2);
365- }
366- if (idxY1 >= 0 && idxY2 >= 0 ) {
367- histY->Fill (idxY1, idxY2);
368- }
369- }
370357
371358 float displayDeltaPhi (float dPhi) const
372359 {
@@ -1174,7 +1161,6 @@ struct LambdaProtonBalanceFunction {
11741161 AxisSpec lambdaMassAxis = {200 , 1 .08f , 1 .15f , " #it{M}_{inv} [GeV/#it{c}^{2}]" };
11751162 AxisSpec vertexZAxis = {100 , -15 .f , 15 .f , " vrtx_{Z} [cm]" };
11761163 AxisSpec ptAxis = {100 , 0 .0f , 10 .0f , " #it{p}_{T} (GeV/#it{c})" };
1177- AxisSpec pzAxis = {200 , -10 .0f , 10 .0f , " p_{z} (GeV/#it{c})" };
11781164 AxisSpec axisP = {200 , 0 .0f , 6 .0f , " p (GeV/c)" };
11791165 // axisPTPC: TPC inner momentum — the variable that drives the proton PID selection logic.
11801166 // Used alongside axisP so both total-p and pTPC views are available for every diagnostic plot.
@@ -1188,7 +1174,6 @@ struct LambdaProtonBalanceFunction {
11881174 AxisSpec nsigmaAxis = {100 , -10 .0f , 10 .0f , " n#sigma" };
11891175 AxisSpec dcaAxis = {100 , -1 .0f , 1 .0f , " DCAxy (cm)" };
11901176 AxisSpec dcaZAxis = {100 , -1 .0f , 1 .0f , " DCAz (cm)" };
1191- AxisSpec massAxis = {200 , 1 .08f , 1 .15f , " M (GeV/#it{c}^{2})" };
11921177 AxisSpec dcaAxisWide = {200 , 0 .0f , 5 .0f , " DCA (cm)" };
11931178 AxisSpec multAxis = {100 , 0 .0f , 100 .0f , " FT0M Percentile (%)" };
11941179 AxisSpec etaAxis = {kRhoEtaBins , kRhoMin , kRhoMax , " #eta" };
@@ -1228,8 +1213,6 @@ struct LambdaProtonBalanceFunction {
12281213 registryOther.add (" hNPairs_AntiLambda_PrimProton" , " #bar{#Lambda}-p pairs per event (after q_{inv} cut);N_{pairs};Events" , {HistType::kTH1F , {{200 , 0 .0f , 200 .0f }}});
12291214 registryOther.add (" hNPairs_AntiLambda_PrimAntiProton" , " #bar{#Lambda}-#bar{p} pairs per event (after q_{inv} cut);N_{pairs};Events" , {HistType::kTH1F , {{200 , 0 .0f , 200 .0f }}});
12301215
1231- // ── Event cutflow ─────────────────────────────────────────
1232-
12331216 // ══════════════════════════════════════════════════════════════════════════
12341217 // NEW STAGED QA_Detec REGISTRATION
12351218 // ══════════════════════════════════════════════════════════════════════════
@@ -1241,7 +1224,6 @@ struct LambdaProtonBalanceFunction {
12411224 AxisSpec axisDecayR = {100 , 0 .0f , 50 .0f , " cm" };
12421225 AxisSpec axisCtau = {100 , 0 .0f , 50 .0f , " ctau (cm)" };
12431226 AxisSpec axisCutFlow = {14 , 0 .5f , 14 .5f , " Cut stage" };
1244- AxisSpec axisTOFMatchFrac = {50 , 0 .0f , 1 .0f , " TOF matching fraction" };
12451227
12461228 auto addProtonQAForStage = [&](const char * species, const char * stage) {
12471229 // Kinematics
@@ -1922,7 +1904,7 @@ struct LambdaProtonBalanceFunction {
19221904 // ══════════════════════════════════════════════════════════════════════
19231905 centSets.clear ();
19241906 centEdgesLocal = {0 .f , 5 .f , 10 .f , 20 .f , 40 .f , 60 .f , 80 .f };
1925- if (cFillCentHists.value && centEdgesLocal. size () >= 2 ) {
1907+ if (cFillCentHists.value ) {
19261908 const size_t nCent = centEdgesLocal.size () - 1 ;
19271909 centSets.resize (nCent);
19281910
@@ -2025,9 +2007,9 @@ struct LambdaProtonBalanceFunction {
20252007 // ALAp : trigger=AntiLambda,assoc=antiproton
20262008 // LL/LAL/ALL/ALAL: both V0s from respective selected lists (self-pairs rejected)
20272009 //
2028- // Each channel has BOTH eta-space (unrolledIndex) and
2029- // rapidity-space (unrolledIndexY) versions filled in the SAME loop.
2030- // fillRho2Pair() handles both fills atomically .
2010+ // Each channel has both eta-space (unrolledIndex) and
2011+ // rapidity-space (unrolledIndexY) versions filled in the same loop; the
2012+ // eta-space fills are gated by cFillEtaSpace .
20312013 // ─────────────────────────────────────────────────────────────────────
20322014
20332015 // ── Event cutflow bin 1 — enters process (after sel8 + posZ filters) ──
0 commit comments