From 1cb22bd8bf1d4367c5c2061638d1cce2c2c87152 Mon Sep 17 00:00:00 2001 From: Barthelemy Date: Fri, 21 Mar 2025 13:23:08 +0100 Subject: [PATCH] [1272] Add missing beam type (cosmic) --- Framework/src/runnerUtils.cxx | 2 ++ doc/Advanced.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Framework/src/runnerUtils.cxx b/Framework/src/runnerUtils.cxx index 4532ef33d8..7408ddb63b 100644 --- a/Framework/src/runnerUtils.cxx +++ b/Framework/src/runnerUtils.cxx @@ -101,6 +101,8 @@ std::string translateBeamType(const std::string& pdpBeamType) result = "Pb-Pb"; } else if (pdpBeamType == "pPb") { result = "Pb-PROTON"; + } else if (pdpBeamType == "cosmic") { + result = "cosmic"; } else { ILOG(Warning, Ops) << "Failed to convert the pdp beam type ('" << pdpBeamType << "'), returning an empty string" << ENDM; } diff --git a/doc/Advanced.md b/doc/Advanced.md index 38c67576e5..6203b85ec6 100644 --- a/doc/Advanced.md +++ b/doc/Advanced.md @@ -1310,7 +1310,7 @@ The new syntax is ``` It allows to have variations of the parameters depending on the run and beam types. The proper run types can be found here: [ECSDataAdapters.h](https://github.com/AliceO2Group/AliceO2/blob/dev/DataFormats/Parameters/include/DataFormatsParameters/ECSDataAdapters.h#L54). The `default` can be used to ignore the run or the beam type. -The beam type is one of the following: `PROTON-PROTON`, `Pb-Pb`, `Pb-PROTON` +The beam type is one of the following: `PROTON-PROTON`, `Pb-Pb`, `Pb-PROTON`, `cosmic`. The values can be accessed in various ways described in the following sub-sections.