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
voidsetCheckDeltaIntervalInfiniteSlot(uint64_t v) { mCheckDeltaIntervalInfiniteSlot = v < 1 ? mCheckIntervalInfiniteSlot : v; } // if the delta is 0, we ignore it
42
45
43
46
TFType getFirstTF() const { returnmFirstTF; }
44
47
voidsetFirstTF(TFType v) { mFirstTF = v; }
@@ -83,12 +86,16 @@ class TimeSlotCalibration
83
86
uint64_tmSlotLength = 1;
84
87
uint64_tmMaxSlotsDelay = 3;
85
88
boolmUpdateAtTheEndOfRunOnly = false;
86
-
uint64_tmUpdateInterval = 1; // will be used if the TF length is INFINITE_TF_int64 to decide
87
-
// when to check if to call the finalize; otherwise it is called
88
-
// at every new TF; note that this is an approximation,
89
-
// since TFs come in async order
90
-
TFType mLastCheckedTF = 0; // will be used if the TF length is INFINITE_TF_int64 to book-keep
91
-
// the last TF at which we tried to calibrate
89
+
uint64_tmCheckIntervalInfiniteSlot = 1; // will be used if the TF length is INFINITE_TF_int64 to decide
90
+
// when to check if to call the finalize; otherwise it is called
91
+
// at every new TF; note that this is an approximation,
92
+
// since TFs come in async order
93
+
TFType mLastCheckedTFInfiniteSlot = 0; // will be used if the TF length is INFINITE_TF_int64 to book-keep
94
+
// the last TF at which we tried to calibrate
95
+
uint64_tmCheckDeltaIntervalInfiniteSlot = 1; // will be used if the TF length is INFINITE_TF_int64 when
96
+
// the check on the statistics returned false, to determine
97
+
// after how many TF to check again.
98
+
boolmWasCheckedInfiniteSlot = false; // flag to know whether the statistics of the infinite slot was already checked
if (x.bin(0).lower() > binmax && chinsectormin == chinsectormax) { // all others also will be > but only if chmin = chmax; in the other cases, we should jump to the next row,which for now we cannot do in boost
if ( (x.bin(0).upper() > binmin) && (x.bin(0).lower() <= binmax) && (x.index(1) >= chinsectormin)) { // I have to keep the condition "&& (x.bin(0).lower() <= binmax)" because I can break only if chmin == chmax
301
-
res1 += x.get();
302
-
//if (x.get() != 0) LOG(INFO) << "ind = " << counts << " will add bin " << x.index(0)
303
-
// << " along x (in [" << x.bin(0).lower() << ", "
304
-
// << x.bin(0).upper() << "], and bin " << x.index(1) << " along y" << " with content " << x.get() << " --> res1 = " << res1;
305
-
}
306
-
}
307
-
//t2.Stop();
308
-
//LOG(DEBUG) << "Time for integral looping over restricted range (result = " << res1 << "):";
if (x.index(0) > binxmax && chinsectormin == chinsectormax) { // all others also will be > but only if chmin = chmax; in the other cases, we should jump to the next row,which for now we cannot do in boost
if ( (x.index(0) >= binxmin) && (x.index(0) <= binxmax) && (x.index(1) >= chinsectormin)) { // I have to keep the condition "&& (x.bin(0).lower() <= binmax)" because I can break only if chmin == chmax
422
-
res1 += x.get();
423
-
// if (x.get() != 0)
424
-
// LOG(INFO) << "ind = " << counts << " will add bin " << x.index(0)
425
-
// << " along x (in [" << x.bin(0).lower() << ", "
426
-
// << x.bin(0).upper() << "], and bin " << x.index(1) << " along y" << " with content " << x.get()
427
-
// << " --> res1 = " << res1;
428
-
}
429
-
}
430
-
//t2.Stop();
431
-
//LOG(DEBUG) << "Time for integral looping over restricted range (result = " << res1 << "):";
0 commit comments