diff --git a/DDDB/include/Detector/DetectorElement.h b/DDDB/include/Detector/DetectorElement.h index 5e2020702542955b810df29325b22ee6b83c45e2..3ffbc7fd0a3474bfafd7127de2c509db87785313 100644 --- a/DDDB/include/Detector/DetectorElement.h +++ b/DDDB/include/Detector/DetectorElement.h @@ -215,7 +215,7 @@ namespace gaudi { { return params().parameter(nam, throw_if_not_present); } /// Type dependent accessor to a named parameter template <typename T> T param(const std::string& nam, bool throw_if_not_present=true) const - { return params().template param<T>(nam, throw_if_not_present); } + { return parameter(nam, throw_if_not_present).template get<T>(); } /// Access the parent detector element DetElement parent() const { return static_data().detector.parent(); }