@@ -28,9 +28,8 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
2828 ConfigParamSpec{" configKeyValues" , VariantType::String, " " , {" Semicolon separated key=value strings" }},
2929 {" disable-root-output" , VariantType::Bool, false , {" disable root-files output writers" }},
3030 {" enable-unbinned-root-output" , VariantType::Bool, false , {" writing out unbinned track data" }},
31- {" tpc-only " , VariantType::Bool, false , {" use only tpc tracks as input " }},
31+ {" track-sources " , VariantType::String, std::string{o2::dataformats::GlobalTrackID::ALL} , {" comma-separated list of sources to use " }},
3232 {" material-type" , VariantType::Int, 2 , {" Type for the material budget during track propagation: 0=None, 1=Geo, 2=LUT" }}};
33-
3433 std::swap (workflowOptions, options);
3534}
3635
@@ -42,9 +41,9 @@ WorkflowSpec defineDataProcessing(ConfigContext const& config)
4241 o2::conf::ConfigurableParam::updateFromString (config.options ().get <std::string>(" configKeyValues" ));
4342 const bool disableWriter = config.options ().get <bool >(" disable-root-output" );
4443 const bool enableUnbinnedWriter = config.options ().get <bool >(" enable-unbinned-root-output" );
45- const bool tpcOnly = config.options ().get <bool >(" tpc-only " );
44+ auto src = o2::dataformats::GlobalTrackID::getSourcesMask ( config.options ().get <std::string >(" track-sources " ) );
4645 auto materialType = static_cast <o2::base::Propagator::MatCorrType>(config.options ().get <int >(" material-type" ));
47- workflow.emplace_back (o2::tpc::getTPCTimeSeriesSpec (disableWriter, materialType, enableUnbinnedWriter, tpcOnly ));
46+ workflow.emplace_back (o2::tpc::getTPCTimeSeriesSpec (disableWriter, materialType, enableUnbinnedWriter, src ));
4847 if (!disableWriter) {
4948 workflow.emplace_back (o2::tpc::getTPCTimeSeriesWriterSpec ());
5049 }
0 commit comments