Skip to content

Commit 3842cb6

Browse files
committed
Add new process function for mixing
1 parent 264cff3 commit 3842cb6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,13 @@ struct lambdaspincorrderived {
202202
Configurable<std::string> ConfWeightPathLAL2{"ConfWeightPathLAL2", "Users/s/skundu/My/Object/spincorr/cent010LL", "Weight path 2"};
203203
Configurable<std::string> ConfWeightPathALL2{"ConfWeightPathALL2", "Users/s/skundu/My/Object/spincorr/cent010LL", "Weight path 2"};
204204

205+
205206
// Mixing /////////
206207

207208
Configurable<int> cfgV5NeighborPt{"cfgV5NeighborPt", 0, "v5: neighbor bins in pT (use symmetric ±N, edge-safe)"};
208209
Configurable<int> cfgV5NeighborEta{"cfgV5NeighborEta", 0, "v5: neighbor bins in eta (use symmetric ±N, edge-safe)"};
209210
Configurable<int> cfgV5NeighborPhi{"cfgV5NeighborPhi", 0, "v5: neighbor bins in phi (use symmetric ±N, periodic wrap)"};
211+
210212
Configurable<int> cfgV5MaxMatches{"cfgV5MaxMatches", 50, "v5: max ME replacements per SE pair (after all cuts)"};
211213
Configurable<uint64_t> cfgMixSeed{"cfgMixSeed", 0xdecafbadULL, "RNG seed for downsampling matches (deterministic)"};
212214
Configurable<float> centMin{"centMin", 0, "Minimum Centrality"};
@@ -1774,6 +1776,7 @@ struct lambdaspincorrderived {
17741776
out.erase(std::unique(out.begin(), out.end()), out.end());
17751777
}
17761778

1779+
17771780
static inline void collectNeighborBinsClamp(int b, int nBins, int nNeighbor, std::vector<int>& out)
17781781
{
17791782
out.clear();
@@ -1913,7 +1916,6 @@ struct lambdaspincorrderived {
19131916
continue; // same-event ordering
19141917
}
19151918

1916-
// no shared daughters (same-event)
19171919
if (t1.protonIndex() == t2.protonIndex())
19181920
continue;
19191921
if (t1.pionIndex() == t2.pionIndex())
@@ -2153,6 +2155,7 @@ struct lambdaspincorrderived {
21532155
continue;
21542156

21552157
const int status = mcacc::v0Status(t1);
2158+
21562159
if (status < 0 || status >= nStat) {
21572160
continue;
21582161
}

0 commit comments

Comments
 (0)