From e55f92b8d9d37f158df2abad76923b0dd8863667 Mon Sep 17 00:00:00 2001 From: Thomas Strebler <thomas.strebler@cern.ch> Date: Fri, 23 Feb 2024 14:57:20 +0100 Subject: [PATCH] Clean up legacy configs test in SCT_ModuleDistortions --- .../SCT_ModuleDistortions/CMakeLists.txt | 7 -- .../share/TestSCT_DistortionsTool.py | 76 ------------------- 2 files changed, 83 deletions(-) delete mode 100644 InnerDetector/InDetDetDescr/SCT_ModuleDistortions/share/TestSCT_DistortionsTool.py diff --git a/InnerDetector/InDetDetDescr/SCT_ModuleDistortions/CMakeLists.txt b/InnerDetector/InDetDetDescr/SCT_ModuleDistortions/CMakeLists.txt index 84b5cb005d51..f7ef4f35e195 100644 --- a/InnerDetector/InDetDetDescr/SCT_ModuleDistortions/CMakeLists.txt +++ b/InnerDetector/InDetDetDescr/SCT_ModuleDistortions/CMakeLists.txt @@ -20,12 +20,5 @@ atlas_add_component( SCT_ModuleDistortions LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaBaseComps AthenaKernel GaudiKernel GeoPrimitives Identifier InDetIdentifier InDetReadoutGeometry PathResolver SCT_ModuleDistortionsLib TrkEventPrimitives TrkParameters ) # Install files from the package: -atlas_install_joboptions( share/*.py ) atlas_install_runtime( share/*.txt ) -# Test(s) in the package: -atlas_add_test( TestSCT_DistortionsTool - SCRIPT athena.py --threads=5 SCT_ModuleDistortions/TestSCT_DistortionsTool.py - POST_EXEC_SCRIPT noerror.sh - PROPERTIES TIMEOUT 600 - ENVIRONMENT THREADS=5 ) diff --git a/InnerDetector/InDetDetDescr/SCT_ModuleDistortions/share/TestSCT_DistortionsTool.py b/InnerDetector/InDetDetDescr/SCT_ModuleDistortions/share/TestSCT_DistortionsTool.py deleted file mode 100644 index d11b503b40b3..000000000000 --- a/InnerDetector/InDetDetDescr/SCT_ModuleDistortions/share/TestSCT_DistortionsTool.py +++ /dev/null @@ -1,76 +0,0 @@ -############################################################### -# -# Job options file to test SCT module distortions tool -# -#============================================================== - - -from AthenaCommon.GlobalFlags import globalflags -from AthenaCommon.DetFlags import DetFlags - -#from AthenaCommon.AppMgr import ServiceMgr - -globalflags.DetGeo.set_Value_and_Lock('atlas') - -globalflags.DataSource.set_Value_and_Lock('geant4') - -# Just the SCT -#DetFlags.detdescr.pixel_setOn() - -DetFlags.detdescr.SCT_setOn() -DetFlags.SCT_setOn() - -# Select the geometry version. -# from AthenaCommon.GlobalFlags import globalflags -globalflags.DetDescrVersion='ATLAS-R2-2015-03-01-00' - -# Initialize geometry -from AtlasGeoModel import GeoModelInit -from AtlasGeoModel import SetGeometryVersion - - - -# Load algorithms Any algorithm that uses the tool will do -from AthenaCommon.AlgSequence import AlgSequence -topSequence = AlgSequence() - -from SCT_ModuleDistortions.SCT_ModuleDistortionsConf import SCT_TestDistortionsTool -topSequence+=SCT_TestDistortionsTool() -topSequence.SCT_TestDistortionsTool.OutputLevel = INFO - -from SCT_ModuleDistortions.SCT_ModuleDistortionsConf import SCT_DistortionsTool -ToolSvc += SCT_DistortionsTool() -ToolSvc.SCT_DistortionsTool.OutputLevel = INFO - -#ToolSvc.SCT_DistortionsTool.InputSource = 0 # None - -#-------------------------------------------------------------- -# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) -#-------------------------------------------------------------- -MessageSvc = Service( "MessageSvc" ) -MessageSvc.OutputLevel = INFO -#-------------------------------------------------------------- -# Event related parameters -#-------------------------------------------------------------- -# Number of events to be processed (default is 10) -theApp.EvtMax = 20 - -from GaudiSvc.GaudiSvcConf import THistSvc -ServiceMgr += THistSvc() -ServiceMgr.THistSvc.Output =["SCT_TestDistortionsTool DATAFILE='test.root' opt='RECREATE'"]; - -##-------------------------------------------------------------- -## Load IOVDbSvc -##-------------------------------------------------------------- -IOVDbSvc = Service("IOVDbSvc") -##IOVDbSvc.GlobalTag="HEAD" -# -IOVDbSvc.GlobalTag="OFLCOND-MC15c-SDR-09" - -#============================================================== -# -# End of job options file -# -############################################################### - - -- GitLab