1 #ifndef DetectorDescription_DDCMS_DDCompactView_h
2 #define DetectorDescription_DDCMS_DDCompactView_h
25 #include <DD4hep/SpecParRegistry.h>
59 allSpecParSections.filter(filteredSpecParSections, parameterName);
60 for (
const auto& mySpecParSection : filteredSpecParSections) {
61 if (mySpecParSection.second->hasPath(nodePath)) {
62 return mySpecParSection.second->value<std::vector<T>>(parameterName);
66 return std::vector<T>();
76 const unsigned int parameterValueIndex) {
77 const std::vector<T>& allParameterValues =
78 getAllParameterValuesFromSpecParSections<T>(allSpecParSections, nodePath, parameterName);
79 if (parameterValueIndex < allParameterValues.size()) {
80 return allParameterValues.at(parameterValueIndex);