diff --git a/InnerDetector/InDetDetDescr/SCT_ReadoutGeometry/SCT_ReadoutGeometry/SCT_ModuleSideDesign.h b/InnerDetector/InDetDetDescr/SCT_ReadoutGeometry/SCT_ReadoutGeometry/SCT_ModuleSideDesign.h index d29c37ee6cafc207ab40ab42b5bda1aae15008e7..ea6d530b51f43acbf80fe00a8e0a789a02a94d32 100755 --- a/InnerDetector/InDetDetDescr/SCT_ReadoutGeometry/SCT_ReadoutGeometry/SCT_ModuleSideDesign.h +++ b/InnerDetector/InDetDetDescr/SCT_ReadoutGeometry/SCT_ReadoutGeometry/SCT_ModuleSideDesign.h @@ -177,7 +177,7 @@ public: void setMother(SCT_ModuleSideDesign* mother); const SCT_ModuleSideDesign * getMother() const; - std::map<int, const SCT_ModuleSideDesign *> getChildren() const; + const std::map<int, const SCT_ModuleSideDesign *>& getChildren() const; void addChildDesign(int index, const SCT_ModuleSideDesign * element); virtual std::pair<int,int> getStripRow(SiCellId id) const; /** Test if point is in the active part of the detector with specified tolerances */ @@ -284,7 +284,7 @@ inline int SCT_ModuleSideDesign::strip1Dim(int strip, int /*row not used */) con return m_motherDesign; } - inline std::map<int, const SCT_ModuleSideDesign *> SCT_ModuleSideDesign::getChildren() const { + inline const std::map<int, const SCT_ModuleSideDesign *>& SCT_ModuleSideDesign::getChildren() const { return m_childDesigns; }