Skip to content

Commit 2c3728b

Browse files
authored
Merge branch 'master' into fixes-refactors-ppconfig
2 parents 495b88e + 82f5ed7 commit 2c3728b

11 files changed

Lines changed: 36 additions & 429 deletions

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include(GNUInstallDirs)
1313
# ---- Project ----
1414

1515
project(QualityControl
16-
VERSION 1.171.0
16+
VERSION 1.172.0
1717
DESCRIPTION "O2 Data Quality Control Framework"
1818
LANGUAGES C CXX)
1919

Framework/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ add_library(O2QualityControl
116116
src/UpdatePolicyManager.cxx
117117
src/AdvancedWorkflow.cxx
118118
src/QualitiesToFlagCollectionConverter.cxx
119-
src/Calculators.cxx
120119
src/DataSourceSpec.cxx
121120
src/RootFileSink.cxx
122121
src/RootFileSource.cxx
@@ -201,8 +200,6 @@ set(EXE_SRCS
201200
src/runRepositoryBenchmark.cxx
202201
src/runPostProcessing.cxx
203202
src/runPostProcessingOCC.cxx
204-
src/runLocationCalculator.cxx
205-
src/runMergerCalculator.cxx
206203
src/runUploadRootObjects.cxx
207204
src/runFileMerger.cxx
208205
src/runMetadataUpdater.cxx
@@ -219,8 +216,6 @@ set(EXE_NAMES
219216
o2-qc-repository-benchmark
220217
o2-qc-run-postprocessing
221218
o2-qc-run-postprocessing-occ
222-
o2-qc-location-calculator
223-
o2-qc-merger-calculator
224219
o2-qc-upload-root-objects
225220
o2-qc-file-merger
226221
o2-qc-metadata-updater
@@ -239,8 +234,6 @@ set(EXE_OLD_NAMES
239234
repositoryBenchmark
240235
qcRunPostProcessing
241236
qcRunPostProcessingOCC
242-
o2-qc-location-calculator
243-
o2-qc-merger-calculator
244237
o2-qc-upload-root-objects
245238
o2-qc-file-merger
246239
o2-qc-metadata-updater

Framework/example-default.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@
184184
}
185185
}
186186
},
187-
"dataSamplingPoliciesFile_comment": "In case that policies are stored in different file, specify its path below. When both dataSamplingPolicies and dataSamplingPoliciesFile are specified, the latter has higher priority",
188-
"dataSamplingPoliciesFile": "json:///home/genghiskhan/alice/QualityControl/dataSamplingConfig.json",
189-
"dataSamplingPolicies_comment": "this is ignored when dataSamplingPoliciesFile is specified",
190187
"dataSamplingPolicies": [
191188
{
192189
"id": "ex1",
@@ -215,4 +212,4 @@
215212
]
216213
}
217214
]
218-
}
215+
}

Framework/include/QualityControl/Calculators.h

Lines changed: 0 additions & 56 deletions
This file was deleted.

Framework/src/Calculators.cxx

Lines changed: 0 additions & 144 deletions
This file was deleted.

Framework/src/PostProcessingConfig.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ PostProcessingConfig::PostProcessingConfig(const std::string& id, const boost::p
6868
customParameters.set(key, value.get_value<std::string>());
6969
}
7070
}
71+
validityFromLastTriggerOnly = ppTree.get<bool>("validityFromLastTriggerOnly", false);
7172
}
7273

7374
} // namespace o2::quality_control::postprocessing

Framework/src/PostProcessingRunner.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ void PostProcessingRunner::reset()
251251

252252
void PostProcessingRunner::updateValidity(const Trigger& trigger)
253253
{
254+
if (mTaskConfig.validityFromLastTriggerOnly) {
255+
mActivity.mValidity = gInvalidValidityInterval;
256+
}
257+
254258
if (trigger == TriggerType::UserOrControl) {
255259
// we ignore it, because it would not make sense to use current time in tracking objects from the past,
256260
// especially in asynchronous postprocessing

0 commit comments

Comments
 (0)