Exemple #1
0
# Number of events to be processed (default is 10)
theApp.EvtMax = 20
theApp.EvtSel = "EventSelector"

# Use auditors
theApp.Dlls += ["GaudiAud"]
#
# write out a summary of the time spent
#
from GaudiSvc.GaudiSvcConf import AuditorSvc
svcMgr += AuditorSvc()
from GaudiSvc.GaudiSvcConf import ChronoStatSvc
svcMgr += ChronoStatSvc()

from GaudiSvc.GaudiSvcConf import MessageSvc
svcMgr += MessageSvc(defaultLimit=100000000)

from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
Stream1 = AthenaPoolOutputStream("Stream1")
Stream1.OutputFile = "ctb_CaloESD.pool.root"
Stream1.ItemList += ["EventInfo#*"]
Stream1.ItemList += ["McEventCollection#*"]
Stream1.ItemList += ["CaloCalibrationHitContainer#*"]

from AthenaCommon.Logging import logging
logRecoOutputItemList_jobOptions = logging.getLogger(
    'py:RecoOutputItemList_jobOptions')
include("CaloRecEx/CaloRecOutputItemList_jobOptions.py")

Stream1.ItemList += CaloESDList
Exemple #2
0
theApp.EvtMax = EvtMax

if not 'RunNumber' in dir():
    RunNumber = 210319

svcMgr.EventSelector.RunNumber = RunNumber
svcMgr.EventSelector.EventsPerRun = 500000
svcMgr.EventSelector.FirstEvent = 0

if not 'OutputLevel' in dir():
    OutputLevel = 3

if not hasattr(svcMgr, 'MessageSvc'):
    from GaudiSvc.GaudiSvcConf import MessageSvc
    svcMgr += MessageSvc()
svcMgr.MessageSvc.defaultLimit = 1000000
svcMgr.MessageSvc.Format = "% F%50W%S%7W%R%T %0W%M"
svcMgr.MessageSvc.OutputLevel = OutputLevel

if not hasattr(svcMgr, 'HistorySvc'):
    from GaudiSvc.GaudiSvcConf import HistorySvc
    svcMgr += HistorySvc()
svcMgr.HistorySvc.OutputLevel = 4

#--- Detector flags -------------------------------------------
from AthenaCommon.GlobalFlags import GlobalFlags
from AthenaCommon.DetFlags import DetFlags

# - Select detectors
DetFlags.ID_setOff()
  include( "ParticleEventAthenaPool/AOD_PoolCnv_jobOptions.py" )

if usedRelease >= 12:
  include( "ParticleBuilderOptions/ESD_PoolCnv_jobOptions.py" )
  include( "ParticleBuilderOptions/AOD_PoolCnv_jobOptions.py" )
  include( "ParticleBuilderOptions/McAOD_PoolCnv_jobOptions.py" )
  include( "EventAthenaPool/EventAthenaPool_joboptions.py" )

#------------------------------------------------------------------------------
# Output level threshold: 1=VERBOSE 2=DEBUG 3=INFO 4=WARNING 5=ERROR 6=FATAL
#------------------------------------------------------------------------------

if usedRelease >= 13:
  if not hasattr( ServiceMgr , "MessageSvc" ):
    from GaudiSvc.GaudiSvcConf import MessageSvc
    ServiceMgr += MessageSvc()
  MessageSvc = ServiceMgr.MessageSvc
else:
  MessageSvc = Service( "MessageSvc" )

MessageSvc.OutputLevel  = outputLevel
MessageSvc.defaultLimit = 9999999 # all messages

#------------------------------------------------------------------------------
# Event related parameters
#------------------------------------------------------------------------------

if usedRelease >= 13:
  # The import and registration with ServiceMgr is done in AthenaPoolCnvSvc.ReadAthenaPool
  EventSelector = ServiceMgr.EventSelector
else: