From bb25f720fb24bc763221b34e9cf058662eabda5b Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Mon, 29 Apr 2019 12:16:36 +0200
Subject: [PATCH] Add properties to Geant4GDMLWriteAction to steer writing of
 regions, cuts and sensitive detectors. See github issue
 https://github.com/AIDASoft/DD4hep/issues/507

---
 DDG4/plugins/Geant4GDMLWriteAction.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDG4/plugins/Geant4GDMLWriteAction.cpp b/DDG4/plugins/Geant4GDMLWriteAction.cpp
index 9fab41ad4..5fb30f097 100644
--- a/DDG4/plugins/Geant4GDMLWriteAction.cpp
+++ b/DDG4/plugins/Geant4GDMLWriteAction.cpp
@@ -144,7 +144,7 @@ void Geant4GDMLWriteAction::writeGDML()   {
   unique_ptr<G4GDMLParser> parser(new G4GDMLParser());
   parser->SetRegionExport(m_exportRegions != 0);
   parser->SetEnergyCutsExport(m_exportEnergyCuts != 0);
-#if G4VERSION_NUMBER>=1020
+#if G4VERSION_NUMBER>=1030
   parser->SetSDExport(m_exportSensitiveDetectors != 0);
 #endif
   info("+++ Writing GDML file: %s", m_output.c_str());
-- 
GitLab