Skip to content

Commit 79024c4

Browse files
committed
TOF: Don't announce cluster MC labels when MC processing is disabled
1 parent c0605bd commit 79024c4

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Detectors/TOF/workflow/src/TOFClusterizerSpec.cxx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,20 @@ o2::framework::DataProcessorSpec getTOFClusterizerSpec(bool useMC, bool useCCDB)
146146
inputs.emplace_back("tofccdbLHCphase", o2::header::gDataOriginTOF, "LHCphase");
147147
inputs.emplace_back("tofccdbChannelCalib", o2::header::gDataOriginTOF, "ChannelCalib");
148148
}
149-
if (useMC)
149+
if (useMC) {
150150
inputs.emplace_back("tofdigitlabels", o2::header::gDataOriginTOF, "DIGITSMCTR", 0, Lifetime::Timeframe);
151+
}
152+
153+
std::vector<OutputSpec> outputs;
154+
outputs.emplace_back(o2::header::gDataOriginTOF, "CLUSTERS", 0, Lifetime::Timeframe);
155+
if (useMC) {
156+
outputs.emplace_back(o2::header::gDataOriginTOF, "CLUSTERSMCTR", 0, Lifetime::Timeframe);
157+
}
151158

152159
return DataProcessorSpec{
153160
"TOFClusterer",
154161
inputs,
155-
Outputs{OutputSpec{o2::header::gDataOriginTOF, "CLUSTERS", 0, Lifetime::Timeframe},
156-
OutputSpec{o2::header::gDataOriginTOF, "CLUSTERSMCTR", 0, Lifetime::Timeframe}},
162+
outputs,
157163
AlgorithmSpec{adaptFromTask<TOFDPLClustererTask>(useMC, useCCDB)},
158164
Options{/* for the moment no options */}};
159165
}

0 commit comments

Comments
 (0)