Skip to content
Snippets Groups Projects
Commit 09d83fbc authored by Nicolas Koehler's avatar Nicolas Koehler Committed by Adam Edward Barton
Browse files

Add vp1NSWAGDDFiles option to VP1 to allow reading from local AGDD xml file

parent 6c6e51d6
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ if not 'vp1Cavern' in dir(): vp1Cavern=False
if not 'vp1NoAutoConf' in dir(): vp1NoAutoConf=False
if not 'vp1Trig' in dir(): vp1Trig=False
if not 'vp1NSW' in dir(): vp1NSW=False
if not 'vp1NSWAGDDFiles' in dir(): vp1NSWAGDDFiles=[]
def vp1CfgErr(s): print "VP1 CONFIGURATION ERROR: %s" % s
......@@ -272,6 +273,19 @@ DetFlags.Print()
# --- GeoModel
from AtlasGeoModel import SetGeometryVersion
from AtlasGeoModel import GeoModelInit
from AthenaCommon.AppMgr import ToolSvc
if vp1Muon and len(vp1NSWAGDDFiles)>0:
print "*** VP1 NOTE *** You specified custom vp1NSWAGDDFiles, creating NSWAGDDTool to read NSWAGDD information from custom file(s) instead from built-in geometry"
from AthenaCommon.AppMgr import theApp
from AGDD2GeoSvc.AGDD2GeoSvcConf import AGDDtoGeoSvc
AGDD2Geo = AGDDtoGeoSvc()
theApp.CreateSvc += ["AGDDtoGeoSvc"]
svcMgr += AGDD2Geo
from AthenaCommon import CfgMgr
from MuonAGDD.MuonAGDDConf import NSWAGDDTool
NSWAGDDTool = CfgMgr.NSWAGDDTool("NewSmallWheel", DefaultDetector="Muon", ReadAGDD=False, XMLFiles=vp1NSWAGDDFiles, Volumes=["NewSmallWheel"])
AGDD2Geo.Builders += [ NSWAGDDTool ]
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
......
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