From ce29ae1440bfbfa23dac986e7bea8543f6baa877 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 3 Mar 2016 12:36:06 +0000
Subject: [PATCH] DDSim: Fix for root6

Otherwise error for unknown function, reported by Marko,
Copied fix from DD4hep::DDG4.py
change is compatible with root5
---
 DDSim/DD4hepSimulation.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py
index 94f3b9726..e5e288241 100644
--- a/DDSim/DD4hepSimulation.py
+++ b/DDSim/DD4hepSimulation.py
@@ -235,7 +235,7 @@ class DD4hepSimulation(object):
   #    print " subset list of detectors given - will only instantiate these: " , detectorList
     trackers,calos = [],[]
     for i in lcdd.detectors():
-      det = DDG4.DetElement(i.second)
+      det = DDG4.DetElement(i.second.ptr())
       name = det.name()
       sd =  lcdd.sensitiveDetector( name )
       if sd.isValid():
-- 
GitLab