Skip to content

Commit acfc74b

Browse files
committed
digitizer: call initTPC only for TPC
1 parent 770d50c commit acfc74b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Steer/DigitizerWorkflow/src/SimpleDigitizerWorkflow.cxx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,16 +419,14 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
419419

420420
std::vector<o2::detectors::DetID> detList; // list of participating detectors
421421

422-
// the TPC part
423-
// we need to init this anyway since TPC is treated a bit special (for the moment)
424-
if (!helpasked && ismaster) {
425-
initTPC();
426-
}
427-
428422
// keeps track of which tpc sectors to process
429423
std::vector<int> tpcsectors;
430424

431425
if (isEnabled(o2::detectors::DetID::TPC)) {
426+
if (!helpasked && ismaster) {
427+
initTPC();
428+
}
429+
432430
tpcsectors = o2::RangeTokenizer::tokenize<int>(configcontext.options().get<std::string>("tpc-sectors"));
433431
// only one lane for the help printout
434432
auto lanes = helpasked ? 1 : getNumTPCLanes(tpcsectors, configcontext);

0 commit comments

Comments
 (0)