Skip to content

Commit a2d7b83

Browse files
committed
CTP RAW decoder always requests CCDB inputs
1 parent 4ed4dde commit a2d7b83

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Detectors/CTP/workflow/src/RawDecoderSpec.cxx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ o2::framework::DataProcessorSpec o2::ctp::reco_workflow::getRawDecoderSpec(bool
201201
}
202202

203203
std::vector<o2::framework::OutputSpec> outputs;
204+
inputs.emplace_back("ctpconfig", "CTP", "CTPCONFIG", 0, o2::framework::Lifetime::Condition, o2::framework::ccdbParamSpec("CTP/Config/Config", 1));
205+
inputs.emplace_back("trigoffset", "CTP", "Trig_Offset", 0, o2::framework::Lifetime::Condition, o2::framework::ccdbParamSpec("CTP/Config/TriggerOffsets"));
204206
if (digits) {
205-
inputs.emplace_back("ctpconfig", "CTP", "CTPCONFIG", 0, o2::framework::Lifetime::Condition, o2::framework::ccdbParamSpec("CTP/Config/Config", 1));
206-
inputs.emplace_back("trigoffset", "CTP", "Trig_Offset", 0, o2::framework::Lifetime::Condition, o2::framework::ccdbParamSpec("CTP/Config/TriggerOffsets"));
207207
outputs.emplace_back("CTP", "DIGITS", 0, o2::framework::Lifetime::Timeframe);
208208
}
209209
if (lumi) {
@@ -230,12 +230,10 @@ void RawDecoderSpec::updateTimeDependentParams(framework::ProcessingContext& pc)
230230
pc.inputs().get<o2::ctp::TriggerOffsetsParam*>("trigoffset");
231231
const auto& trigOffsParam = o2::ctp::TriggerOffsetsParam::Instance();
232232
LOG(info) << "updateing TroggerOffsetsParam: inputs L0_L1:" << trigOffsParam.L0_L1 << " classes L0_L1:" << trigOffsParam.L0_L1_classes;
233-
if (mDecodeinputs) {
234-
const auto ctpcfg = pc.inputs().get<o2::ctp::CTPConfiguration*>("ctpconfig");
235-
if (ctpcfg != nullptr) {
236-
mDecoder.setCTPConfig(*ctpcfg);
237-
LOG(info) << "ctpconfig for run done:" << mDecoder.getCTPConfig().getRunNumber();
238-
}
233+
const auto ctpcfg = pc.inputs().get<o2::ctp::CTPConfiguration*>("ctpconfig");
234+
if (ctpcfg != nullptr) {
235+
mDecoder.setCTPConfig(*ctpcfg);
236+
LOG(info) << "ctpconfig for run done:" << mDecoder.getCTPConfig().getRunNumber();
239237
}
240238
}
241239
}

0 commit comments

Comments
 (0)