Skip to content

Commit e1ff911

Browse files
committed
Add HBFUtilsConfig to allow standalone aggregation of TPC residuals
1 parent de1d18e commit e1ff911

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@
1414
#include "TPCInterpolationWorkflow/TPCResidualAggregatorSpec.h"
1515
#include "TPCInterpolationWorkflow/TPCUnbinnedResidualReaderSpec.h"
1616
#include "GlobalTrackingWorkflowHelpers/InputHelper.h"
17+
#include "DetectorsRaw/HBFUtilsInitializer.h"
18+
#include "Framework/CallbacksPolicy.h"
1719

1820
using namespace o2::framework;
1921
using GID = o2::dataformats::GlobalTrackID;
2022

23+
void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
24+
{
25+
o2::raw::HBFUtilsInitializer::addNewTimeSliceCallback(policies);
26+
}
27+
2128
// we need to add workflow options before including Framework/runDataProcessing
2229
void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
2330
{
@@ -27,6 +34,7 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
2734
{"enable-ctp", VariantType::Bool, false, {"Subscribe to lumi info from CTP"}},
2835
{"disable-root-input", VariantType::Bool, false, {"disable root-files input readers"}},
2936
{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings ..."}}};
37+
o2::raw::HBFUtilsInitializer::addConfigOption(options);
3038
std::swap(workflowOptions, options);
3139
}
3240

@@ -79,5 +87,8 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
7987
o2::globaltracking::InputHelper::addInputSpecs(configcontext, specs, maskClusters, maskNone, maskNone, false);
8088
}
8189

90+
// configure dpl timer to inject correct firstTForbit: start from the 1st orbit of TF containing 1st sampled orbit
91+
o2::raw::HBFUtilsInitializer hbfIni(configcontext, specs);
92+
8293
return specs;
8394
}

0 commit comments

Comments
 (0)