Skip to content

Commit eb26e97

Browse files
committed
TPC reco: Only read CTP digits when tracking
should prevent reading CTP digits when merely clusterizing
1 parent 73bc03d commit eb26e97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Detectors/TPC/workflow/src/RecoWorkflow.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ framework::WorkflowSpec getWorkflow(CompletionPolicyData* policyData, std::vecto
159159

160160
WorkflowSpec specs;
161161

162+
bool produceTracks = isEnabled(OutputType::Tracks);
163+
162164
// We provide a special publishing method for labels which have been stored in a split format and need
163165
// to be transformed into a contiguous shareable container before publishing. For other branches/types this returns
164166
// false and the generic RootTreeWriter publishing proceeds
@@ -196,7 +198,7 @@ framework::WorkflowSpec getWorkflow(CompletionPolicyData* policyData, std::vecto
196198
if (sclOpts.needTPCScalersWorkflow()) { // for standalone tpc-reco workflow
197199
specs.emplace_back(o2::tpc::getTPCScalerSpec(sclOpts.lumiType == 2, sclOpts.enableMShapeCorrection));
198200
}
199-
if (sclOpts.requestCTPLumi) { // need CTP digits (lumi) reader
201+
if (produceTracks && sclOpts.requestCTPLumi) { // need CTP digits (lumi) reader
200202
specs.emplace_back(o2::ctp::getDigitsReaderSpec(false));
201203
}
202204
} else if (inputType == InputType::ClustersHardware) {
@@ -247,7 +249,6 @@ framework::WorkflowSpec getWorkflow(CompletionPolicyData* policyData, std::vecto
247249
// Note: the ClusterHardware format is probably a deprecated legacy format and also the
248250
// ClusterDecoderRawSpec
249251
bool produceCompClusters = isEnabled(OutputType::CompClusters);
250-
bool produceTracks = isEnabled(OutputType::Tracks);
251252
bool runGPUReco = (produceTracks || produceCompClusters || (isEnabled(OutputType::Clusters) && caClusterer) || inputType == InputType::CompClustersCTF) && inputType != InputType::CompClustersFlat;
252253
bool runHWDecoder = !caClusterer && (runGPUReco || isEnabled(OutputType::Clusters));
253254
bool runClusterer = !caClusterer && (runHWDecoder || isEnabled(OutputType::ClustersHardware));

0 commit comments

Comments
 (0)