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
Copy file name to clipboardExpand all lines: Detectors/ITSMFT/common/workflow/include/ITSMFTWorkflow/DeadMapBuilderSpec.h
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,12 @@ class ITSMFTDeadMapBuilder : public Task
108
108
std::string mDataSource = "chipsstatus";
109
109
110
110
intmTFSampling = 350;
111
-
std::string mSamplingMode = "first-orbit-run"; // Use this default to ensure process of first TF. At the moment, use any other option to sample on absolute orbit value.
// Return true if the TF index (calculated as orbit/TF_length) falls within any interval [k * tf_sampling, k * tf_sampling + tolerance) for some integer k, provided no other TFs have been found in the same interval.
110
+
111
+
if (mTFSamplingTolerance < 1) {
112
+
return ((orbit / mTFLength) % mTFSampling == 0);
113
+
}
114
+
115
+
if ((orbit / mTFLength) % mTFSampling > mTFSamplingTolerance) {
116
+
returnfalse;
117
+
}
118
+
119
+
long sampling_index = orbit / mTFLength / mTFSampling;
120
+
121
+
if (mSampledTFs.find(sampling_index) == mSampledTFs.end()) {
122
+
123
+
mSampledTFs.insert(sampling_index);
124
+
mSampledHistory.push_back(sampling_index);
125
+
126
+
if (mSampledHistory.size() > mSampledSlidingWindowSize) {
0 commit comments