Skip to content

Commit 432f7c9

Browse files
martenoledavidrohr
authored andcommitted
Add TPC residual aggregator CALIB workflow
1 parent 1d272d2 commit 432f7c9

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Detectors/GlobalTrackingWorkflow/tpcinterpolationworkflow/src/tpc-residual-aggregator.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ using namespace o2::framework;
1818
// we need to add workflow options before including Framework/runDataProcessing
1919
void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
2020
{
21+
std::vector<o2::framework::ConfigParamSpec> options{{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings ..."}}};
22+
std::swap(workflowOptions, options);
2123
}
2224

2325
// ------------------------------------------------------------------
@@ -26,6 +28,8 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
2628

2729
WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
2830
{
31+
o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
32+
2933
WorkflowSpec specs;
3034
specs.emplace_back(getTPCResidualAggregatorSpec());
3135
return specs;

prodtests/full-system-test/aggregator-workflow.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if [[ "0$GEN_TOPO_VERBOSE" == "01" ]]; then
3434
echo "CALIB_TRD_VDRIFTEXB = $CALIB_TRD_VDRIFTEXB" 1>&2
3535
echo "CALIB_TPC_TIMEGAIN = $CALIB_TPC_TIMEGAIN" 1>&2
3636
echo "CALIB_TPC_RESPADGAIN = $CALIB_TPC_RESPADGAIN" 1>&2
37+
echo "CALIB_TPC_SCDCALIB = $CALIB_TPC_SCDCALIB" 1>&2
3738
fi
3839

3940
# beamtype dependent settings
@@ -118,6 +119,11 @@ if [[ $AGGREGATOR_TASKS == BARREL_TF ]] || [[ $AGGREGATOR_TASKS == ALL ]]; then
118119
if [[ $CALIB_TPC_TIMEGAIN == 1 ]]; then
119120
add_W o2-tpc-calibrator-dedx "--min-entries-sector 3000 --min-entries-1d 200 --min-entries-2d 10000"
120121
fi
122+
if [[ $CALIB_TPC_SCDCALIB == 1 ]]; then
123+
# TODO: the residual aggregator should have --output-dir and --meta-output-dir defined
124+
# without that the residuals will be stored in the local working directory (and deleted after a week)
125+
add_W o2-calibration-residual-aggregator ""
126+
fi
121127
# TRD
122128
if [[ $CALIB_TRD_VDRIFTEXB == 1 ]]; then
123129
add_W o2-calibration-trd-vdrift-exb ""

0 commit comments

Comments
 (0)