You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
registry.add("eventcount", "bin", {HistType::kTH1F, {{4, 0, 4, "bin"}}}); // histogram to see how many events are in the same and mixed event
248
-
if (doprocessMCSame) {
248
+
if (doprocessMCSame && doprocessOntheflySame) {
249
+
LOGF(fatal, "Full simulation and on-the-fly processing of same event not supported");
250
+
}
251
+
if (doprocessMCMixed && doprocessOntheflyMixed) {
252
+
LOGF(fatal, "Full simulation and on-the-fly processing of mixed event not supported");
253
+
}
254
+
if (doprocessMCSame || doprocessOntheflySame) {
249
255
registry.add("MCTrue/MCeventcount", "MCeventcount", {HistType::kTH1F, {{4, 0, 4, "bin"}}}); // histogram to see how many events are in the same and mixed event
auto tracksTuple = std::make_tuple(mcParticles, mcParticles);
858
+
Pair<FilteredMcCollisions, FilteredMcParticles, FilteredMcParticles, MixedBinning> pair{binningOnVtxAndMult, cfgMixEventNumMin, -1, mcCollisions, tracksTuple, &cache}; // -1 is the number of the bin to skip
859
+
for (autoconst& [collision1, tracks1, collision2, tracks2] : pair) {
860
+
861
+
if (cfgSelCollByNch && (tracks1.size() < cfgCutMultMin || tracks1.size() >= cfgCutMultMax))
862
+
continue;
863
+
864
+
if (cfgSelCollByNch && (tracks2.size() < cfgCutMultMin || tracks2.size() >= cfgCutMultMax))
865
+
continue;
866
+
867
+
registry.fill(HIST("MCTrue/MCeventcount"), MixedEvent); // fill the mixed event in the 3 bin
0 commit comments