Skip to content

Commit

Permalink
Make o2-tpc-file-reader to use the HBFUtilsInitializer
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Mar 8, 2024
1 parent 2e39217 commit 679a083
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Detectors/TPC/workflow/src/FileReaderWorkflow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@
#include "TPCReaderWorkflow/ClusterReaderSpec.h"
#include "TPCReaderWorkflow/TriggerReaderSpec.h"
#include "TPCReaderWorkflow/TrackReaderSpec.h"
#include "DetectorsRaw/HBFUtilsInitializer.h"
#include "Framework/CallbacksPolicy.h"

#include "Algorithm/RangeTokenizer.h"

#include "SimulationDataFormat/IOMCTruthContainerView.h"
#include "SimulationDataFormat/ConstMCTruthContainer.h"
#include "SimulationDataFormat/MCCompLabel.h"

void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
{
o2::raw::HBFUtilsInitializer::addNewTimeSliceCallback(policies);
}

// add workflow options, note that customization needs to be declared before
// including Framework/runDataProcessing
void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
Expand All @@ -29,8 +36,9 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)

std::vector<ConfigParamSpec> options{
{"input-type", VariantType::String, "clusters", {"clusters, tracks"}},
{"disable-mc", VariantType::Bool, false, {"disable sending of MC information"}}};

{"disable-mc", VariantType::Bool, false, {"disable sending of MC information"}},
{"configKeyValues", VariantType::String, "", {"semicolon separated key=value strings"}}};
o2::raw::HBFUtilsInitializer::addConfigOption(options);
std::swap(workflowOptions, options);
}

Expand Down Expand Up @@ -77,6 +85,6 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

specs.push_back(o2::tpc::getTPCTrackReaderSpec(doMC));
}

o2::raw::HBFUtilsInitializer hbfIni(cfgc, specs);
return std::move(specs);
}

0 comments on commit 679a083

Please sign in to comment.