Skip to content

Commit

Permalink
Align file-push consumers inputs to Sporadic sent by the proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Dec 5, 2023
1 parent dd97d50 commit efe84cb
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Detectors/DCS/testWorkflow/src/dcs-config-test-workflow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ DataProcessorSpec getDCSConsumerSpec(DetID det)
procName += det.getName();
return DataProcessorSpec{
procName,
Inputs{{"confFile", ConcreteDataTypeMatcher{det.getDataOrigin(), "DCS_CONFIG_FILE"}, Lifetime::Timeframe},
{"confFileName", ConcreteDataTypeMatcher{det.getDataOrigin(), "DCS_CONFIG_NAME"}, Lifetime::Timeframe}},
Inputs{{"confFile", ConcreteDataTypeMatcher{det.getDataOrigin(), "DCS_CONFIG_FILE"}, Lifetime::Sporadic},
{"confFileName", ConcreteDataTypeMatcher{det.getDataOrigin(), "DCS_CONFIG_NAME"}, Lifetime::Sporadic}},
Outputs{},
AlgorithmSpec{adaptFromTask<o2::dcs::DCSConfigConsumer>()},
Options{}};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ DataProcessorSpec getFDDDCSConfigProcessorSpec()

return DataProcessorSpec{
"fdd-dcs-config-processor",
Inputs{{"inputConfig", o2::header::gDataOriginFDD, "DCS_CONFIG_FILE", Lifetime::Timeframe},
{"inputConfigFileName", o2::header::gDataOriginFDD, "DCS_CONFIG_NAME", Lifetime::Timeframe}},
Inputs{{"inputConfig", o2::header::gDataOriginFDD, "DCS_CONFIG_FILE", Lifetime::Sporadic},
{"inputConfigFileName", o2::header::gDataOriginFDD, "DCS_CONFIG_NAME", Lifetime::Sporadic}},
outputs,
AlgorithmSpec{adaptFromTask<o2::fit::FITDCSConfigProcessor>("FDD", ddDChM)},
Options{{"use-verbose-mode", VariantType::Bool, false, {"Use verbose mode"}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ DataProcessorSpec getFT0DCSConfigProcessorSpec()

return DataProcessorSpec{
"ft0-dcs-config-processor",
Inputs{{"inputConfig", o2::header::gDataOriginFT0, "DCS_CONFIG_FILE", Lifetime::Timeframe},
{"inputConfigFileName", o2::header::gDataOriginFT0, "DCS_CONFIG_NAME", Lifetime::Timeframe}},
Inputs{{"inputConfig", o2::header::gDataOriginFT0, "DCS_CONFIG_FILE", Lifetime::Sporadic},
{"inputConfigFileName", o2::header::gDataOriginFT0, "DCS_CONFIG_NAME", Lifetime::Sporadic}},
outputs,
AlgorithmSpec{adaptFromTask<o2::ft0::FT0DCSConfigProcessor>("FT0", ddDChM)},
Options{{"use-verbose-mode", VariantType::Bool, false, {"Use verbose mode"}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ DataProcessorSpec getFV0DCSConfigProcessorSpec()

return DataProcessorSpec{
"fv0-dcs-config-processor",
Inputs{{"inputConfig", o2::header::gDataOriginFV0, "DCS_CONFIG_FILE", Lifetime::Timeframe},
{"inputConfigFileName", o2::header::gDataOriginFV0, "DCS_CONFIG_NAME", Lifetime::Timeframe}},
Inputs{{"inputConfig", o2::header::gDataOriginFV0, "DCS_CONFIG_FILE", Lifetime::Sporadic},
{"inputConfigFileName", o2::header::gDataOriginFV0, "DCS_CONFIG_NAME", Lifetime::Sporadic}},
outputs,
AlgorithmSpec{adaptFromTask<o2::fit::FITDCSConfigProcessor>("FV0", ddDChM)},
Options{{"use-verbose-mode", VariantType::Bool, false, {"Use verbose mode"}},
Expand Down
4 changes: 2 additions & 2 deletions Detectors/GRP/workflows/src/GRPLHCIFfileSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ DataProcessorSpec getGRPLHCIFfileSpec()
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBWrapper, "GRP_LHCIFData"}, Lifetime::Sporadic);
return DataProcessorSpec{
"grp-lhc-if-file-processor",
Inputs{{"inputConfig", "GRP", "DCS_CONFIG_FILE", Lifetime::Timeframe},
{"inputConfigFileName", "GRP", "DCS_CONFIG_NAME", Lifetime::Timeframe}},
Inputs{{"inputConfig", "GRP", "DCS_CONFIG_FILE", Lifetime::Sporadic},
{"inputConfigFileName", "GRP", "DCS_CONFIG_NAME", Lifetime::Sporadic}},
outputs,
AlgorithmSpec{adaptFromTask<o2::grp::GRPLHCIFfileProcessor>()},
Options{{"use-verbose-mode", VariantType::Bool, false, {"Use verbose mode"}}}};
Expand Down
4 changes: 2 additions & 2 deletions Detectors/ITSMFT/ITS/workflow/src/DCSParserSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,8 @@ DataProcessorSpec getITSDCSParserSpec()
{
o2::header::DataOrigin detOrig = o2::header::gDataOriginITS;
std::vector<InputSpec> inputs;
inputs.emplace_back("inString", detOrig, "DCS_CONFIG_FILE", 0, Lifetime::Timeframe);
inputs.emplace_back("nameString", detOrig, "DCS_CONFIG_NAME", 0, Lifetime::Timeframe);
inputs.emplace_back("inString", detOrig, "DCS_CONFIG_FILE", 0, Lifetime::Sporadic);
inputs.emplace_back("nameString", detOrig, "DCS_CONFIG_NAME", 0, Lifetime::Sporadic);

std::vector<OutputSpec> outputs;
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBPayload, "DCS_CONFIG"}, Lifetime::Sporadic);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ DataProcessorSpec getTOFDCSConfigProcessorSpec()

return DataProcessorSpec{
"tof-dcs-config-processor",
Inputs{{"inputConfig", o2::header::gDataOriginTOF, "DCS_CONFIG_FILE", Lifetime::Timeframe},
{"inputConfigFileName", o2::header::gDataOriginTOF, "DCS_CONFIG_NAME", Lifetime::Timeframe}},
Inputs{{"inputConfig", o2::header::gDataOriginTOF, "DCS_CONFIG_FILE", Lifetime::Sporadic},
{"inputConfigFileName", o2::header::gDataOriginTOF, "DCS_CONFIG_NAME", Lifetime::Sporadic}},
outputs,
AlgorithmSpec{adaptFromTask<o2::tof::TOFDCSConfigProcessor>()},
Options{{"use-verbose-mode", VariantType::Bool, false, {"Use verbose mode"}}}};
Expand Down
4 changes: 2 additions & 2 deletions Detectors/TPC/dcs/src/DCSConfigSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ DataProcessorSpec getDCSConfigSpec()

return DataProcessorSpec{
"tpc-dcs-config",
Inputs{{"inputConfig", o2::header::gDataOriginTPC, "DCS_CONFIG_FILE", Lifetime::Timeframe},
{"inputConfigFileName", o2::header::gDataOriginTPC, "DCS_CONFIG_NAME", Lifetime::Timeframe}},
Inputs{{"inputConfig", o2::header::gDataOriginTPC, "DCS_CONFIG_FILE", Lifetime::Sporadic},
{"inputConfigFileName", o2::header::gDataOriginTPC, "DCS_CONFIG_NAME", Lifetime::Sporadic}},
outputs,
AlgorithmSpec{adaptFromTask<DCSConfigDevice>()},
Options{
Expand Down
4 changes: 2 additions & 2 deletions Detectors/ZDC/calib/testWorkflow/ZDCDCSConfigProcessorSpec.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ DataProcessorSpec getZDCDCSConfigProcessorSpec()

return DataProcessorSpec{
"zdc-dcs-config-processor",
Inputs{{"inputConfig", o2::header::gDataOriginZDC, "DCS_CONFIG_FILE", Lifetime::Timeframe},
{"inputConfigFileName", o2::header::gDataOriginZDC, "DCS_CONFIG_NAME", Lifetime::Timeframe}},
Inputs{{"inputConfig", o2::header::gDataOriginZDC, "DCS_CONFIG_FILE", Lifetime::Sporadic},
{"inputConfigFileName", o2::header::gDataOriginZDC, "DCS_CONFIG_NAME", Lifetime::Sporadic}},
outputs,
AlgorithmSpec{adaptFromTask<o2::zdc::ZDCDCSConfigProcessor>()},
Options{{"use-verbose-mode", VariantType::Bool, false, {"Use verbose mode"}}}};
Expand Down

0 comments on commit efe84cb

Please sign in to comment.