From 503c4a92d3adf550ac1fd54408434bc349b5b79d Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Fri, 10 Feb 2017 10:26:10 +0100
Subject: [PATCH] DDRec: SubDetectorExtension: initialise variables in c'tor

---
 DDRec/src/SubdetectorExtensionImpl.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/DDRec/src/SubdetectorExtensionImpl.cpp b/DDRec/src/SubdetectorExtensionImpl.cpp
index 1be6ad287..ed95b645d 100644
--- a/DDRec/src/SubdetectorExtensionImpl.cpp
+++ b/DDRec/src/SubdetectorExtensionImpl.cpp
@@ -24,6 +24,7 @@ SubdetectorExtensionImpl::SubdetectorExtensionImpl(const Geometry::DetElement& d
 
 /// Copy constructor
 SubdetectorExtensionImpl::SubdetectorExtensionImpl(const SubdetectorExtensionImpl& e, const Geometry::DetElement& d) {
+	this->resetAll();
 	this->det = d;
 	if (e._setIsBarrel) {
 		this->setIsBarrel(e.isBarrel());
-- 
GitLab