Skip to content

Commit bd2da9d

Browse files
committed
digitizer: Option to only produce digitization context
1 parent acfc74b commit bd2da9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Steer/DigitizerWorkflow/src/SimpleDigitizerWorkflow.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
140140
workflowOptions.push_back(
141141
ConfigParamSpec{"skipDet", VariantType::String, "none", {skiphelp}});
142142

143+
std::string onlyctxhelp("Produce only the digitization context; Don't actually digitize");
144+
workflowOptions.push_back(ConfigParamSpec{"only-context", o2::framework::VariantType::Bool, false, {onlyctxhelp}});
145+
143146
// we support only output type 'tracks' for the moment
144147
std::string tpcrthelp("deprecated option, please connect workflows on the command line by pipe");
145148
workflowOptions.push_back(
@@ -407,6 +410,10 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
407410
if (helpasked) {
408411
return true;
409412
}
413+
if (configcontext.options().get<bool>("only-context")) {
414+
// no detector necessary if we are asked to produce only the digitization context
415+
return false;
416+
}
410417
auto accepted = accept(id);
411418
bool is_ingrp = grp->isDetReadOut(id);
412419
if (gIsMaster) {

0 commit comments

Comments
 (0)