Skip to content

Commit c9426c3

Browse files
committed
set global reader default tracks/clusters request to none
1 parent 4ed4115 commit c9426c3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Detectors/GlobalTrackingWorkflow/helpers/src/GlobalTrackClusterReader.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ void customize(std::vector<ConfigParamSpec>& workflowOptions)
2222
{
2323
std::vector<o2::framework::ConfigParamSpec> options{
2424
{"disable-mc", o2::framework::VariantType::Bool, false, {"disable visualization of MC data"}},
25-
{"track-types", VariantType::String, std::string{GlobalTrackID::ALL}, {"comma-separated list of track sources to read"}},
26-
{"cluster-types", VariantType::String, std::string{GlobalTrackID::ALL}, {"comma-separated list of cluster sources to read"}},
25+
{"track-types", VariantType::String, std::string{GlobalTrackID::NONE}, {"comma-separated list of track sources to read"}},
26+
{"cluster-types", VariantType::String, std::string{GlobalTrackID::NONE}, {"comma-separated list of cluster sources to read"}},
2727
{"disable-root-input", o2::framework::VariantType::Bool, false, {"disable reading root files, essentially making this workflow void, but needed for compatibility"}},
2828
{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings ..."}}};
2929

@@ -40,6 +40,9 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
4040
bool useMC = !cfgc.options().get<bool>("disable-mc");
4141
GlobalTrackID::mask_t srcTrk = GlobalTrackID::getSourcesMask(cfgc.options().get<std::string>("track-types"));
4242
GlobalTrackID::mask_t srcCl = GlobalTrackID::getSourcesMask(cfgc.options().get<std::string>("cluster-types"));
43+
if (!cfgc.helpOnCommandLine() && srcTrk.none() && srcCl.none()) {
44+
throw std::runtime_error("no tracks or clusters requested");
45+
}
4346
InputHelper::addInputSpecs(cfgc, specs, srcCl, srcTrk, srcTrk, useMC);
4447

4548
return std::move(specs);

0 commit comments

Comments
 (0)