Forked from
atlas / athena
84948 commits behind the upstream repository.
-
R D Schaffer authored
removing getRunNumber as no longer needed, and adding additional BeginRun for potentially new run numbers, small fix for AthenaPoolTest
R D Schaffer authoredremoving getRunNumber as no longer needed, and adding additional BeginRun for potentially new run numbers, small fix for AthenaPoolTest
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
EventInfoRead.py 3.49 KiB
###############################################################
#
# Job options file
#
## @file EventInfoRead.py
##
## @brief For Athena POOL test: read back EventInfo tags
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
import AthenaCommon.AtlasUnixStandardJob
## get a handle to the default top-level algorithm sequence
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
## get a handle to the ServiceManager
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
## get a handle to the ApplicationManager
from AthenaCommon.AppMgr import theApp
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
import AthenaPoolCnvSvc.ReadAthenaPool
#--------------------------------------------------------------
# Set flags and load det descr
#--------------------------------------------------------------
from AthenaCommon.GlobalFlags import globalflags
from RecExConfig.RecFlags import rec
# For general flags
rec.doAOD = False
rec.doTrigger = False
rec.doWriteTAG = False
#DetDescrVersion = "ATLAS-GEO-17-00-00"
include( "RecExCond/RecExCommon_flags.py" )
# Set local flags - only need LAr DetDescr
#DetFlags.detdescr.ID_setOff()
#DetFlags.detdescr.Calo_setOff()
#DetFlags.detdescr.LAr_setOff()
#DetFlags.detdescr.Tile_setOff()
#DetFlags.detdescr.Muon_setOff()
DetFlags.detdescr.all_setOff()
DetFlags.detdescr.Calo_setOn()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
include( "IOVDbSvc/IOVRecExCommon.py" )
#--------------------------------------------------------------
# Define the output Db parameters (the default value are shown)
#--------------------------------------------------------------
input = locals().get('inputFile', "SimplePoolFile4.root")
svcMgr.EventSelector.InputCollections = [ input ]
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 25
#--------------------------------------------------------------
# Application: load TagInfoMgr
#--------------------------------------------------------------
import EventInfoMgt.EventInfoMgtInit
#--------------------------------------------------------------
# Application: AthenaPoolTest options
#--------------------------------------------------------------
# Load "user algorithm" top algorithms to be run, and the libraries that house them
from AthenaPoolTest.AthenaPoolTestConf import EventInfoReader
topSequence += EventInfoReader( "EventInfoReader" )
#--------------------------------------------------------------
# Input options
#--------------------------------------------------------------
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
svcMgr.MessageSvc.OutputLevel = INFO
svcMgr.MessageSvc.debugLimit = 100000
from AthenaServices import AthenaServicesConf
AthenaEventLoopMgr = AthenaServicesConf.AthenaEventLoopMgr()
AthenaEventLoopMgr.OutputLevel = INFO
EventInfoReader.OutputLevel = DEBUG
svcMgr.TagInfoMgr.OutputLevel = DEBUG
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################