Skip to content

Commit 2e6feb6

Browse files
committed
rct-updater defines dummy output to bind ccdb-populator
1 parent 73179de commit 2e6feb6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Detectors/GRP/workflows/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ o2_add_executable(workflow
3737
PUBLIC_LINK_LIBRARIES O2::Framework
3838
O2::CCDB
3939
O2::DetectorsBase
40+
O2::DetectorsCalibration
4041
O2::DataFormatsParameters)
4142

4243
o2_add_executable(grp-create

Detectors/GRP/workflows/src/rct-updater-workflow.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "Framework/InputSpec.h"
1616
#include "Framework/Task.h"
1717
#include "CommonUtils/ConfigurableParam.h"
18+
#include "DetectorsCalibration/Utils.h"
1819

1920
using namespace o2::framework;
2021

@@ -164,6 +165,9 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
164165
WorkflowSpec specs;
165166
o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
166167
std::vector<InputSpec> inputs{{"ctfdone", "CTF", "DONE", 0, Lifetime::Timeframe}};
168+
std::vector<OutputSpec> outputs;
169+
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBPayload, "RCTUPD_DUMMY"}, Lifetime::Sporadic);
170+
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBWrapper, "RCTUPD_DUMMY"}, Lifetime::Sporadic);
167171
auto ggRequest = std::make_shared<o2::base::GRPGeomRequest>(true, // orbitResetTime
168172
true, // GRPECS=true
169173
false, // GRPLHCIF
@@ -175,7 +179,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
175179
specs.push_back(DataProcessorSpec{
176180
"rct-updater",
177181
inputs,
178-
{},
182+
outputs,
179183
AlgorithmSpec{adaptFromTask<o2::rct::RCTUpdaterSpec>(ggRequest)},
180184
Options{
181185
{"update-interval", VariantType::Float, 1.f, {"update every ... seconds"}},

0 commit comments

Comments
 (0)