24void customize(std::vector<ConfigParamSpec>& workflowOptions)
26 std::vector<ConfigParamSpec> options{
27 {
"enable-writer", VariantType::Bool,
false, {
"selection string input specs"}},
28 {
"use-global-tracks", VariantType::Bool,
false, {
"use global matched tracks instead of TPC only"}},
29 {
"disable-root-input", VariantType::Bool,
false, {
"disable root-files input reader"}},
32 std::swap(workflowOptions, options);
42 const auto useGlobal = config.
options().
get<
bool>(
"use-global-tracks");
45 const auto useMC =
false;
52 workflow.emplace_back(getMIPTrackFilterSpec(srcTracks));
54 if (config.
options().
get<
bool>(
"enable-writer")) {
55 const char* processName =
"tpc-mips-writer";
56 const char* defaultFileName =
"tpc-mips.root";
57 const char* defaultTreeName =
"tpcrec";
60 using TrackOutputType = std::vector<o2::tpc::TrackTPC>;
65 LOG(info) <<
"writing " << tracks.size() <<
" track(s)";
68 "TPCTracks",
"track-branch-name",
73 std::move(tracksdef))());
Global index for barrel track: provides provenance (detectors combination), index in respective array...
Workflow to filter MIP tracks and streams them to other devices.
Configurable generator for RootTreeWriter processor spec.
ConfigParamRegistry & options() const
T get(const char *key) const
Generate a processor spec for the RootTreeWriter utility.
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
Global TPC definitions and constants.
std::function< void(T const &)> Spectator
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
WorkflowSpec defineDataProcessing(ConfigContext const &config)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< ConfigParamSpec > &workflowOptions)