Skip to content
Snippets Groups Projects
Commit e55f92b8 authored by Thomas Strebler's avatar Thomas Strebler Committed by Melissa Yexley
Browse files

Clean up legacy configs test in SCT_ModuleDistortions

parent e059f192
No related branches found
No related tags found
No related merge requests found
......@@ -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 )
###############################################################
#
# 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
#
###############################################################
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