Skip to content

Commit 2229a41

Browse files
committed
Attach CTP digits reader to tpc-reco-workflow for --lumi-type 1
1 parent d8bf8ee commit 2229a41

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Detectors/TPC/workflow/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ o2_add_library(TPCWorkflow
5252
O2::TPCCalibration O2::TPCSimulation
5353
O2::TPCQC O2::DetectorsCalibration
5454
O2::TPCReaderWorkflow
55+
O2::CTPWorkflowIO
5556
PRIVATE_LINK_LIBRARIES O2::GPUTracking # For the Zero Suppression includes
5657
O2::GPUWorkflow
5758
)

Detectors/TPC/workflow/src/RecoWorkflow.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include "TPCReaderWorkflow/ClusterReaderSpec.h"
4444
#include "TPCReaderWorkflow/TriggerReaderSpec.h"
4545
#include "TPCCalibration/CorrectionMapsLoader.h"
46-
46+
#include "CTPWorkflowIO/DigitReaderSpec.h"
4747
#include <string>
4848
#include <stdexcept>
4949
#include <fstream>
@@ -174,6 +174,9 @@ framework::WorkflowSpec getWorkflow(CompletionPolicyData* policyData, std::vecto
174174
}};
175175

176176
if (!disableRootInput || inputType == InputType::PassThrough) {
177+
if (sclOpts.lumiType == 1) { // need CTP digits (lumi) reader
178+
specs.emplace_back(o2::ctp::getDigitsReaderSpec(false));
179+
}
177180
// The OutputSpec of the PublisherSpec is configured depending on the input
178181
// type. Note that the configuration of the dispatch trigger in the main file
179182
// needs to be done in accordance. This means, if a new input option is added

0 commit comments

Comments
 (0)