Skip to content
Snippets Groups Projects
Commit 58d97975 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

MuonAGDD: delete legacy config

Closes ATLASRECTS-7962.
parent 5ee98e06
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( MuonAGDD )
......@@ -19,6 +19,3 @@ atlas_add_component( MuonAGDD
src/components/*.cxx
LINK_LIBRARIES AGDDControl GaudiKernel StoreGateLib AGDDKernel AGDDModel GeoModelInterfaces MuonAGDDBase MuonReadoutGeometry MuonDetDescrUtils RDBAccessSvcLib ${extra_lib} )
# Install files from the package:
atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
atlas_install_joboptions( share/*.py )
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
from AthenaCommon import CfgMgr
def MuonAGDDTool(name="MuonSpectrometer", **kwargs):
kwargs.setdefault("BuildNSW", False)
return CfgMgr.MuonAGDDTool(name, **kwargs)
def NSWAGDDTool(name="NewSmallWheel", **kwargs):
kwargs.setdefault("Locked", False)
kwargs.setdefault("Volumes", ["NewSmallWheel"])
kwargs.setdefault("DefaultDetector", "Muon")
return CfgMgr.NSWAGDDTool(name, **kwargs)
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.CfgGetter import addTool
addTool("MuonAGDD.MuonAGDDConfig.MuonAGDDTool", "MuonSpectrometer")
addTool("MuonAGDD.MuonAGDDConfig.NSWAGDDTool", "NewSmallWheel")
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
#
# Create MuonAGDDTool from local amdb file (input_amdb_simrec) containing AGDD xml block
#
from MuonAGDD.MuonAGDDConfig import MuonAGDDTool
MuonAGDDDumperFromAMDBFile = MuonAGDDTool(name="AGDDDumperFromAMDBFile")
MuonAGDDDumperFromAMDBFile.WriteAGDDFile=True # creates Out.AmdcOracle.AM.AGDDtemp.data and Out.AmdcOracle.AM.AGDD.PREsql
MuonAGDDDumperFromAMDBFile.BuildNSW=False
MuonAGDDDumperFromAMDBFile.Locked=True
#
# Create MuonAGDDTool reading AGDD from database
#
from MuonAGDD.MuonAGDDConfig import MuonAGDDTool
MuonAGDDDumperFromDB = MuonAGDDTool(name="AGDDDumperFromDB")
MuonAGDDDumperFromDB.DumpAGDD=True # write blob from DB in Generated_AGDD_pool.txt
MuonAGDDDumperFromDB.BuildNSW=False
MuonAGDDDumperFromDB.Locked=True
from AGDD2GeoSvc.AGDD2GeoSvcConf import AGDDtoGeoSvc
AGDD2Geo = AGDDtoGeoSvc()
AGDD2Geo.Builders += [MuonAGDDDumperFromAMDBFile]
AGDD2Geo.Builders += [MuonAGDDDumperFromDB]
theApp.CreateSvc += ["AGDDtoGeoSvc"]
ServiceMgr += AGDD2Geo
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
from MuonAGDD.MuonAGDDConfig import MuonAGDDTool
MuonAGDDDumper = MuonAGDDTool(name="AGDDDumper")
MuonAGDDDumper.WriteAGDDFile=True
MuonAGDDDumper.BuildNSW=False
MuonAGDDDumper.Locked=True
try:
if input_agdd_xml:
MuonAGDDDumper.ReadAGDD = False # turn off reading from data base (true means read from DB)
MuonAGDDDumper.XMLFiles=[input_agdd_xml]
try:
if amdc_name: MuonAGDDDumper.AmdcName=amdc_name
except NameError:
pass
except NameError:
pass
from AGDD2GeoSvc.AGDD2GeoSvcConf import AGDDtoGeoSvc
AGDD2Geo = AGDDtoGeoSvc()
AGDD2Geo.Builders += [MuonAGDDDumper]
theApp.CreateSvc += ["AGDDtoGeoSvc"]
ServiceMgr += AGDD2Geo
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
#
# Create NSWAGDDTool reading xml from database
#
from MuonAGDD.MuonAGDDConfig import NSWAGDDTool
NSWAGDDDumperFromDB = NSWAGDDTool(name="NSWAGDDDumperFromDB")
NSWAGDDDumperFromDB.ReadAGDD=True
NSWAGDDDumperFromDB.DumpAGDD=True # write blob from DB in Generated_NSWD_pool.txt
NSWAGDDDumperFromDB.Locked=False
NSWAGDDDumperFromDB.Volumes=["NewSmallWheel"] # for the NSWAGDDTool volumes must always be given ("NewSmallWheel" usually includes everything)
NSWAGDDDumperFromDB.DefaultDetector="Muon"
from AGDD2GeoSvc.AGDD2GeoSvcConf import AGDDtoGeoSvc
from AthenaCommon.AppMgr import ServiceMgr, theApp
#
# Create AGDDtoGeoSvc for NSWAGDDTool reading from database
#
AGDD2Geo = AGDDtoGeoSvc()
AGDD2Geo.Builders += [NSWAGDDDumperFromDB]
theApp.CreateSvc += ["AGDDtoGeoSvc"]
ServiceMgr += AGDD2Geo
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
try:
if muonLayout:
from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
GeoModelSvc = GeoModelSvc()
GeoModelSvc.MuonVersionOverride=muonLayout
except NameError:
pass
from MuonAGDD.MuonAGDDConfig import NSWAGDDTool
NSWAGDDDumper = NSWAGDDTool(name="NSWAGDDDumper")
NSWAGDDDumper.WriteAGDDFile=True # creates Out.AmdcOracle.AM.AGDDtemp.data and Out.AmdcOracle.AM.AGDD.PREsql
NSWAGDDDumper.Locked=False
try:
if input_nsw_xml:
NSWAGDDDumper.ReadAGDD = False # turn off reading from data base (true means read from DB)
NSWAGDDDumper.XMLFiles=[input_nsw_xml]
except NameError:
pass
NSWAGDDDumper.Volumes=["NewSmallWheel"] # for the NSWAGDDTool volumes must always be given ("NewSmallWheel" usually includes everything)
NSWAGDDDumper.DefaultDetector="Muon"
from AGDD2GeoSvc.AGDD2GeoSvcConf import AGDDtoGeoSvc
AGDD2Geo = AGDDtoGeoSvc()
AGDD2Geo.Builders += [NSWAGDDDumper]
theApp.CreateSvc += ["AGDDtoGeoSvc"]
ServiceMgr += AGDD2Geo
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