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
Configurable<LabeledArray<int>> doTypeBC{"doTypeBC", {defaulFlags[0], NBCCategories, {"BCA", "BCB", "BCC", "BCE", "BCL", "BCSLFDD", "BCSLFT0", "BCNL", "BCNSLFDD", "BCNSLFT0"}}, "Create and fill histograms for different BC types"};
77
77
78
-
Configurable<int> numEmptyBCsBeforeLeadingBC{"numEmptyBCsBeforeLeadingBC", 5, "Number of empty (SL) or non-B (L) BCs before a (super)leading BC"};
78
+
Configurable<int> numEmptyBCsBeforeLeadingBC{"numEmptyBCsBeforeLeadingBC", 5, "Number of empty BCs before a (super)leading BC"};
79
79
Configurable<int> bcShiftFDDForData2023{"bcShiftFDDForData2023", 7, "Number of bc to shift for FDD to be applied for 2023 data only"};
for (int iBC = 0; iBC < o2::constants::lhc::LHCMaxBunches; iBC++) {
205
205
if (bcPatternB[iBC]) { // Check if current BC is of type B
206
-
intnonBBCsBefore = 0; // Count how many consecutive BCs before this one are NOT type B
206
+
intemptyBCsBefore = 0; // Count how many consecutive BCs before this one are empty
207
207
for (int j = 1; j <= numEmptyBCsBeforeLeadingBC; j++) {
208
208
int prevBC = (iBC - j + o2::constants::lhc::LHCMaxBunches) % o2::constants::lhc::LHCMaxBunches; // Protection for BCs at small indices to check the end of the orbit
209
-
if (!bcPatternB[prevBC]) {
210
-
nonBBCsBefore++;
209
+
if (bcPatternE[prevBC]) {
210
+
emptyBCsBefore++;
211
211
} else {
212
-
break; // Stop counting if we hit a type B BC
212
+
break; // Stop counting if we hit a non-empty BC
213
213
}
214
214
}
215
-
if (nonBBCsBefore >= numEmptyBCsBeforeLeadingBC) { // If we found at least numEmptyBCsBeforeLeadingBC empty BCs before this one, mark it as leading
215
+
if (emptyBCsBefore >= numEmptyBCsBeforeLeadingBC) { // If we found at least numEmptyBCsBeforeLeadingBC empty BCs before this one, mark it as leading
0 commit comments