Skip to content

Commit d14d640

Browse files
committed
GPU DPL Display: Add option to read inputs from ROOT files using InputHelper class
1 parent f14c4c9 commit d14d640

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

GPU/Workflow/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ o2_add_executable(display
1616
O2::DataFormatsGlobalTracking
1717
O2::TPCFastTransformation
1818
O2::TRDBase
19-
O2::TPCReconstruction)
19+
O2::TPCReconstruction
20+
O2::GlobalTrackingWorkflowHelpers)

GPU/Workflow/O2GPUDPLDisplay.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "GPUO2InterfaceConfiguration.h"
2222
#include "TPCFastTransform.h"
2323
#include "TPCReconstruction/TPCFastTransformHelperO2.h"
24+
#include "GlobalTrackingWorkflowHelpers/InputHelper.h"
2425

2526
using namespace o2::framework;
2627
using namespace o2::dataformats;
@@ -39,6 +40,8 @@ void customize(std::vector<ConfigParamSpec>& workflowOptions)
3940
{"enable-mc", o2::framework::VariantType::Bool, false, {"enable visualization of MC data"}},
4041
{"display-clusters", VariantType::String, "TPC", {"comma-separated list of clusters to display"}},
4142
{"display-tracks", VariantType::String, "TPC", {"comma-separated list of tracks to display"}},
43+
{"read-from-files", o2::framework::VariantType::Bool, false, {"comma-separated list of tracks to display"}},
44+
{"disable-root-input", o2::framework::VariantType::Bool, false, {"Disable root input overriding read-from-files"}},
4245
{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings ..."}}};
4346

4447
std::swap(workflowOptions, options);
@@ -116,6 +119,10 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
116119
dataRequest.requestTracks(srcTrk, useMC);
117120
dataRequest.requestClusters(srcCl, useMC);
118121

122+
if (cfgc.options().get<bool>("read-from-files")) {
123+
InputHelper::addInputSpecs(cfgc, specs, srcCl, srcTrk, srcTrk, useMC);
124+
}
125+
119126
specs.emplace_back(DataProcessorSpec{
120127
"o2-gpu-display",
121128
dataRequest.inputs,

0 commit comments

Comments
 (0)