Skip to content
Snippets Groups Projects
Commit 5672772a authored by Johannes Junggeburth's avatar Johannes Junggeburth :dog2: Committed by Walter Lampl
Browse files

GeoModelXMLTool - Introduce deduplication flags

GeoModelXMLTool - Introduce deduplication flags
parent bc5f4854
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,15 @@ protected:
ServiceHandle<IGeoDbTagSvc> m_geoDbTagSvc{this, "GeoDbTagSvc", "GeoDbTagSvc", ""};
Gaudi::Property<std::string> m_dtdName{this, "OverrideDtdName", "", "Override standard .dtd file from GeoModelXml"};
Gaudi::Property<bool> m_deduplicateLogVol{this, "enableLogVolDeduplication", false,
"Remove duplications of equivalent logical volumes"};
Gaudi::Property<bool> m_deduplicatePhysVol{this, "enablePhysVolDeduplication", false,
"Remove duplications of equivalent physical volumes"};
Gaudi::Property<bool> m_deduplicateShape{this, "enableShapeDeduplication", false,
"Remove duplications of equivalent shapes"};
Gaudi::Property<bool> m_deduplicateTransf{this, "enableTransDeduplication", false,
"Remove duplications of equivalent transform nodes"};
private:
......
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#include "InDetGeoModelUtils/GeoModelXmlTool.h"
......@@ -162,6 +162,10 @@ void GeoModelXmlTool::createVolume(GeoPhysVol* world, GmxInterface& gmxInterface
}
out.close();
}
gmxInterface.enableLogVolDeDuplication(m_deduplicateLogVol);
gmxInterface.enablePhysVolDeDuplication(m_deduplicatePhysVol);
gmxInterface.enableShapeDeDuplication(m_deduplicateShape);
gmxInterface.enableTransformDeDuplication(m_deduplicateTransf);
Gmx2Geo gmx2Geo(gmxInput, world, gmxInterface, flags);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment