Skip to content

Commit

Permalink
Attach CTP digits reader to tpc-reco-workflow for --lumi-type 1
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Nov 20, 2023
1 parent d8bf8ee commit 2229a41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Detectors/TPC/workflow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ o2_add_library(TPCWorkflow
O2::TPCCalibration O2::TPCSimulation
O2::TPCQC O2::DetectorsCalibration
O2::TPCReaderWorkflow
O2::CTPWorkflowIO
PRIVATE_LINK_LIBRARIES O2::GPUTracking # For the Zero Suppression includes
O2::GPUWorkflow
)
Expand Down
5 changes: 4 additions & 1 deletion Detectors/TPC/workflow/src/RecoWorkflow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include "TPCReaderWorkflow/ClusterReaderSpec.h"
#include "TPCReaderWorkflow/TriggerReaderSpec.h"
#include "TPCCalibration/CorrectionMapsLoader.h"

#include "CTPWorkflowIO/DigitReaderSpec.h"
#include <string>
#include <stdexcept>
#include <fstream>
Expand Down Expand Up @@ -174,6 +174,9 @@ framework::WorkflowSpec getWorkflow(CompletionPolicyData* policyData, std::vecto
}};

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

0 comments on commit 2229a41

Please sign in to comment.