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
1820using namespace o2 ::framework;
1921using 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
2229void 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