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
{{ message }}
Repository navigation
Commit 1c73b3b
Browse filesBrowse the repository at this point in the historyBrowse files
authored
[PWGDQ] Adding functionality for event mixing across TFs (#16528)
Co-authored-by: Ionut Cristian Arsene <iarsene@cern.ch>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
// The function that performs the mixing is called outside this class, but the pool provides the events and tracks to be mixed and takes care of updating the events after mixing
139
+
// (e.g. incrementing the counters and removing the tracks that reached the pool depth for a given cut)
140
+
voidUpdatePool(const MixingEvent& event, short poolDepth)
@@ -54,10 +183,14 @@ class MixingHandler : public TNamed
54
183
// User options
55
184
boolfIsInitialized; // check if the mixing handler is initialized
56
185
57
-
std::vector<TArrayF> fVariableLimits;
58
-
std::vector<int> fVariables;
186
+
// bin limits for the variables used for mixing, the number of vectors corresponds to the number of variables and the content of each vector corresponds to the bin limits for that variable
187
+
std::vector<std::vector<float>> fVariableLimits;
188
+
std::map<int, int> fVariables; // key: variable, value: position in the internal variable list of the handler (used to map the variables to the values passed to FindEventCategory)
189
+
190
+
shortfPoolDepth; // number of events to be kept in each pool
191
+
std::map<int, MixingPool> fPools; // key: category, value: pool of events corresponding to that category
0 commit comments