Skip to content
Snippets Groups Projects
Commit d770a246 authored by Marcin Nowak's avatar Marcin Nowak :radioactive:
Browse files

Removed AthenaSealSvc and cleaned joboptions

SealSvc does not have any useful function any more
parent b9ffea6f
No related branches found
No related tags found
No related merge requests found
Showing
with 738 additions and 872 deletions
#!/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
#
import sys,os,traceback,time,commands,getopt
from PyCool import cool
......@@ -57,12 +57,6 @@ conddb.iovdbsvc.GlobalTag='%s'
from DBReplicaSvc.DBReplicaSvcConf import DBReplicaSvc
svcMgr+=DBReplicaSvc(UseCOOLSQLite=False)
#--------------------------------------------------------------
# Make sure AthenaSealSvc is loaded for dict check
#--------------------------------------------------------------
# include( "AthenaServices/AthenaSealSvc_joboptions.py" )
svcMgr.AthenaSealSvc.CheckDictionary=True
#--------------------------------------------------------------
# Private Application Configuration options
#--------------------------------------------------------------
......
#!/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
#
import sys,os,traceback,time,commands,getopt
......@@ -55,12 +55,6 @@ PoolSvc.SortReplicas=True
from DBReplicaSvc.DBReplicaSvcConf import DBReplicaSvc
svcMgr+=DBReplicaSvc(UseCOOLSQLite=False)
#--------------------------------------------------------------
# Make sure AthenaSealSvc is loaded for dict check
#--------------------------------------------------------------
# include( "AthenaServices/AthenaSealSvc_joboptions.py" )
svcMgr.AthenaSealSvc.CheckDictionary=True
#--------------------------------------------------------------
# Private Application Configuration options
#--------------------------------------------------------------
......
......@@ -20,12 +20,6 @@ import IOVDbSvc.IOVDb
svcMgr.IOVDbSvc.OutputLevel = 3
svcMgr.IOVDbSvc.ManageConnections=False
#--------------------------------------------------------------
# Make sure AthenaSealSvc is loaded for dict check
#--------------------------------------------------------------
# include( "AthenaServices/AthenaSealSvc_joboptions.py" )
svcMgr.AthenaSealSvc.CheckDictionary=True
#--------------------------------------------------------------
# Private Application Configuration options
#--------------------------------------------------------------
......
......@@ -20,12 +20,6 @@ import IOVDbSvc.IOVDb
svcMgr.IOVDbSvc.OutputLevel=3
svcMgr.IOVDbSvc.ManageConnections=False
#--------------------------------------------------------------
# Make sure AthenaSealSvc is loaded for dict check
#--------------------------------------------------------------
# include( "AthenaServices/AthenaSealSvc_joboptions.py" )
svcMgr.AthenaSealSvc.CheckDictionary=True
#--------------------------------------------------------------
# Private Application Configuration options
#--------------------------------------------------------------
......
......@@ -54,14 +54,6 @@ GeoModelSvc.MuonVersionOverride="MuonSpectrometer-R.01.01.Initial.Light"
svcMgr.EventSelector.InputCollections = [ "rfio:/castor/cern.ch/grid/atlas/t0/perm/M4cosmics/0020897/ESD/M4.0020897.debug.L1TT-b00000011.ESD.v13002507.part0013._lumi0000._0001.1" ]
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
# Add in dictionary name:
#AthenaSealSvc.DictNames += [ "SealCLHEPDict" ]
# Check the dictionary in memory for completeness
svcMgr.AthenaSealSvc.CheckDictionary = True
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
......@@ -105,7 +97,6 @@ print Stream1.ItemList
svcMgr.MessageSvc = Service( "MessageSvc" )
svcMgr.MessageSvc.OutputLevel = INFO
svcMgr.MessageSvc.debugLimit = 100000
svcMgr.AthenaSealSvc.OutputLevel = INFO
AthenaEventLoopMgr = Service( "AthenaEventLoopMgr" )
#AthenaEventLoopMgr.OutputLevel = DEBUG
......
###############################################################
#
# Job options file
#
## @file LArCellContWriter_jobOptions.py
##
## @brief For Athena POOL test: write out LArCellContainers
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
# MC Event Selector
include( "AthenaCommon/Atlas_Gen.UnixStandardJob.py" )
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
include( "AthenaServices/AthenaSealSvc_joboptions.py" )
# Dictionaries for AthenaSealSvc:
include( "EventInfo/EventInfoDict_joboptions.py" )
include( "AthenaPoolTestData/AthenaPoolTestDataDict_joboptions.py" )
# Add in dictionary name:
AthenaSealSvc = Service( "AthenaSealSvc" )
AthenaSealSvc.DictNames += [ "SealCLHEPDict" ]
# Check the dictionary in memory for completeness
#AthenaSealSvc.CheckDictionary = TRUE
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 5
#--------------------------------------------------------------
# Application: AthenaPoolTest options
#--------------------------------------------------------------
theApp.Dlls += [ "AthenaPoolTest" ]
theApp.TopAlg += [ "AthenaPoolTestDataWriter" ]
AthenaPoolTestDataWriter = Algorithm( "AthenaPoolTestDataWriter" )
AthenaPoolTestDataWriter.PartialCreate = TRUE
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# LAr Hit
# Converters:
include( "EventAthenaPool/EventAthenaPool_joboptions.py" )
include( "AthenaPoolTestAthenaPool/AthenaPoolTestAthenaPool_joboptions.py" )
# ItemList:
include( "EventAthenaPool/EventAthenaPoolItemList_joboptions.py" )
include( "AthenaPoolTestAthenaPool/AthenaPoolTestAthenaPoolItemList_joboptions.py" )
print fullItemList
# Stream's output file
Stream1 = Algorithm( "Stream1" )
Stream1.OutputFile = "SimplePoolFile1.root"
# List of DO's to write out
Stream1.ItemList += fullItemList
#Stream1.ItemList += ["EventInfo#*"]
#Stream1.ItemList += ["IAthenaPoolTestCollection#*"]
#Stream1.ItemList += ["AthenaPoolTestMatrix#*"]
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = 3
MessageSvc.debugLimit = 100000
ClassIDSvc = Service( "ClassIDSvc" )
ClassIDSvc.OutputLevel = 3
AthenaSealSvc.OutputLevel = 3
AthenaPoolTestDataWriter = Algorithm( "AthenaPoolTestDataWriter" )
AthenaPoolTestDataWriter.OutputLevel = 2
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
#
# Job options file
#
## @file LArCellContWriter_jobOptions.py
##
## @brief For Athena POOL test: write out LArCellContainers
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
# MC Event Selector
include( "AthenaCommon/Atlas_Gen.UnixStandardJob.py" )
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
include( "AthenaPoolTestData/AthenaPoolTestDataDict_joboptions.py" )
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 5
#--------------------------------------------------------------
# Application: AthenaPoolTest options
#--------------------------------------------------------------
theApp.Dlls += [ "AthenaPoolTest" ]
theApp.TopAlg += [ "AthenaPoolTestDataWriter" ]
AthenaPoolTestDataWriter = Algorithm( "AthenaPoolTestDataWriter" )
AthenaPoolTestDataWriter.PartialCreate = TRUE
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# LAr Hit
# Converters:
include( "EventAthenaPool/EventAthenaPool_joboptions.py" )
include( "AthenaPoolTestAthenaPool/AthenaPoolTestAthenaPool_joboptions.py" )
# ItemList:
include( "EventAthenaPool/EventAthenaPoolItemList_joboptions.py" )
include( "AthenaPoolTestAthenaPool/AthenaPoolTestAthenaPoolItemList_joboptions.py" )
print fullItemList
# Stream's output file
Stream1 = Algorithm( "Stream1" )
Stream1.OutputFile = "SimplePoolFile1.root"
# List of DO's to write out
Stream1.ItemList += fullItemList
#Stream1.ItemList += ["EventInfo#*"]
#Stream1.ItemList += ["IAthenaPoolTestCollection#*"]
#Stream1.ItemList += ["AthenaPoolTestMatrix#*"]
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = 3
MessageSvc.debugLimit = 100000
ClassIDSvc = Service( "ClassIDSvc" )
ClassIDSvc.OutputLevel = 3
AthenaPoolTestDataWriter = Algorithm( "AthenaPoolTestDataWriter" )
AthenaPoolTestDataWriter.OutputLevel = 2
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
###############################################################
#
# Job options file
#
## @file AthenaPoolTestStep2Write.py
##
## @brief For Athena POOL test: write out AthenaPoolTest data objects
## in a second file to test navigation
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
## basic job configuration
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 ApplicationManager
from AthenaCommon.AppMgr import theApp
## get a handle to the ServiceManager
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
import AthenaPoolCnvSvc.ReadAthenaPool
import AthenaPoolCnvSvc.WriteAthenaPool
#--------------------------------------------------------------
# Define the input parameters
#--------------------------------------------------------------
svcMgr.EventSelector.InputCollections = [ "SimplePoolFile.root" ]
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
# Check the dictionary in memory for completeness
svcMgr.AthenaSealSvc.CheckDictionary = True
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 5
#--------------------------------------------------------------
# Application: AthenaPoolTest options
#--------------------------------------------------------------
from AthenaPoolTest.AthenaPoolTestConf import AthenaPoolTestDataWriter
topSequence += AthenaPoolTestDataWriter( "AthenaPoolTestDataWriter" )
AthenaPoolTestDataWriter.PartialCreate = TRUE
AthenaPoolTestDataWriter.ReadOtherHalf = TRUE
# Try to also read in the first half that is going to be written out
# again => this should produce an error
#AthenaPoolTestDataWriter.ReadFirstHalf = TRUE
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# ItemList:
include( "EventAthenaPool/EventAthenaPoolItemList_joboptions.py" )
include( "AthenaPoolTestAthenaPool/AthenaPoolTestAthenaPoolItemList_joboptions.py" )
printfunc (fullItemList)
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
Stream1 = AthenaPoolOutputStream( "Stream1", noTag=True )
# Run OutputStream as an algorithm
topSequence += AthenaPoolOutputStream( "Stream1", noTag=True )
# Must make sure that no OutStream's have been declared
theApp.OutStream = [];
# Stream's output file
Stream1.WritingTool = "AthenaOutputStreamTool"
Stream1.OutputFile = "SimplePoolFile1.root"
# List of DO's to write out
#Stream1.ItemList += fullItemList
Stream1.ItemList += ["EventInfo#*"]
#Stream1.ItemList += ["IAthenaPoolTestCollection#*"]
# Write out only a new set of cols 1,2,3, and matrix
Stream1.ItemList += ["IAthenaPoolTestCollection#AthenaPoolTestCollection_1"]
Stream1.ItemList += ["IAthenaPoolTestCollection#AthenaPoolTestCollection_2"]
Stream1.ItemList += ["IAthenaPoolTestCollection#AthenaPoolTestCollection_3"]
Stream1.ItemList += ["AthenaPoolTestMatrix#*"]
printfunc (Stream1.ItemList)
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
svcMgr.MessageSvc.OutputLevel = WARNING
svcMgr.MessageSvc.debugLimit = 100000
#rds ClassIDSvc = Service( "ClassIDSvc" )
#rds ClassIDSvc.OutputLevel = 3
svcMgr.AthenaSealSvc.OutputLevel = WARNING
AthenaPoolTestDataWriter.OutputLevel = DEBUG
from AthenaServices import AthenaServicesConf
AthenaEventLoopMgr = AthenaServicesConf.AthenaEventLoopMgr()
AthenaEventLoopMgr.OutputLevel = INFO
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
#
# Job options file
#
## @file AthenaPoolTestStep2Write.py
##
## @brief For Athena POOL test: write out AthenaPoolTest data objects
## in a second file to test navigation
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
## basic job configuration
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 ApplicationManager
from AthenaCommon.AppMgr import theApp
## get a handle to the ServiceManager
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
import AthenaPoolCnvSvc.ReadAthenaPool
import AthenaPoolCnvSvc.WriteAthenaPool
#--------------------------------------------------------------
# Define the input parameters
#--------------------------------------------------------------
svcMgr.EventSelector.InputCollections = [ "SimplePoolFile.root" ]
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 5
#--------------------------------------------------------------
# Application: AthenaPoolTest options
#--------------------------------------------------------------
from AthenaPoolTest.AthenaPoolTestConf import AthenaPoolTestDataWriter
topSequence += AthenaPoolTestDataWriter( "AthenaPoolTestDataWriter" )
AthenaPoolTestDataWriter.PartialCreate = TRUE
AthenaPoolTestDataWriter.ReadOtherHalf = TRUE
# Try to also read in the first half that is going to be written out
# again => this should produce an error
#AthenaPoolTestDataWriter.ReadFirstHalf = TRUE
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# ItemList:
include( "EventAthenaPool/EventAthenaPoolItemList_joboptions.py" )
include( "AthenaPoolTestAthenaPool/AthenaPoolTestAthenaPoolItemList_joboptions.py" )
printfunc (fullItemList)
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
Stream1 = AthenaPoolOutputStream( "Stream1", noTag=True )
# Run OutputStream as an algorithm
topSequence += AthenaPoolOutputStream( "Stream1", noTag=True )
# Must make sure that no OutStream's have been declared
theApp.OutStream = [];
# Stream's output file
Stream1.WritingTool = "AthenaOutputStreamTool"
Stream1.OutputFile = "SimplePoolFile1.root"
# List of DO's to write out
#Stream1.ItemList += fullItemList
Stream1.ItemList += ["EventInfo#*"]
#Stream1.ItemList += ["IAthenaPoolTestCollection#*"]
# Write out only a new set of cols 1,2,3, and matrix
Stream1.ItemList += ["IAthenaPoolTestCollection#AthenaPoolTestCollection_1"]
Stream1.ItemList += ["IAthenaPoolTestCollection#AthenaPoolTestCollection_2"]
Stream1.ItemList += ["IAthenaPoolTestCollection#AthenaPoolTestCollection_3"]
Stream1.ItemList += ["AthenaPoolTestMatrix#*"]
printfunc (Stream1.ItemList)
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
svcMgr.MessageSvc.OutputLevel = WARNING
svcMgr.MessageSvc.debugLimit = 100000
#rds ClassIDSvc = Service( "ClassIDSvc" )
#rds ClassIDSvc.OutputLevel = 3
AthenaPoolTestDataWriter.OutputLevel = DEBUG
from AthenaServices import AthenaServicesConf
AthenaEventLoopMgr = AthenaServicesConf.AthenaEventLoopMgr()
AthenaEventLoopMgr.OutputLevel = INFO
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
......@@ -41,13 +41,6 @@ svcMgr.SecondaryEventSelector.InputCollections = [ "SimplePoolFile2.root" ]
svcMgr.DoubleEventSelector.OutputLevel = DEBUG
svcMgr.SecondaryEventSelector.OutputLevel = DEBUG
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
# Check the dictionary in memory for completeness
svcMgr.AthenaSealSvc.CheckDictionary = True
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
......@@ -102,7 +95,6 @@ PoolSvc.WriteCatalog = 'file:AthenaPoolTestStep2WriteDoubleSelector_catalog.xml'
#--------------------------------------------------------------
svcMgr.MessageSvc.OutputLevel = WARNING
svcMgr.MessageSvc.debugLimit = 100000
svcMgr.AthenaSealSvc.OutputLevel = WARNING
AthenaPoolTestDataWriter.OutputLevel = DEBUG
from AthenaServices import AthenaServicesConf
......
###############################################################
#
# Job options file
#
## @file AthenaPoolTestWrite.py
##
## @brief For Athena POOL test: write out AthenaPoolTest data objects
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
# MC Event Selector
## basic job configuration (for generator)
import AthenaCommon.AtlasUnixGeneratorJob
## 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
# Set handler for traceback
svcMgr.CoreDumpSvc.FatalHandler = 438
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
import AthenaPoolCnvSvc.WriteAthenaPool
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
# Add in dictionary name:
#svcMgr.AthenaSealSvc = Service( "AthenaSealSvc" )
#AthenaSealSvc.DictNames += [ "SealCLHEPDict" ]
# Check the dictionary in memory for completeness
svcMgr.AthenaSealSvc.CheckDictionary = True
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 5
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
# Set the following when reading back to adjust the run/event numbers
# (don't forget ApplicationMgr.EvtMax)
svcMgr.EventSelector.RunNumber = 1
svcMgr.EventSelector.EventsPerRun = 0x10000000000
svcMgr.EventSelector.FirstEvent = 0x100000000
svcMgr.EventSelector.EventsPerLB = 1
svcMgr.EventSelector.FirstLB = 1
svcMgr.EventSelector.InitialTimeStamp = 0
svcMgr.EventSelector.TimeStampInterval = 5
theApp.EvtMax = 2
svcMgr.EventSelector.OutputLevel = DEBUG
#--------------------------------------------------------------
# Application: AthenaPoolTest options
#--------------------------------------------------------------
# Load "user algorithm" top algorithms to be run, and the libraries that house them
from AthenaPoolTest.AthenaPoolTestConf import AthenaPoolTestDataWriter
topSequence += AthenaPoolTestDataWriter( "AthenaPoolTestDataWriter" )
AthenaPoolTestDataWriter.OutputLevel = DEBUG
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# LAr Hit
# Converters:
# ItemList:
include( "EventAthenaPool/EventAthenaPoolItemList_joboptions.py" )
include( "AthenaPoolTestAthenaPool/AthenaPoolTestAthenaPoolItemList_joboptions.py" )
printfunc (fullItemList)
# Stream's output file
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
Stream1 = AthenaPoolOutputStream( "Stream1", noTag=True )
Stream1.OutputFile = "SimplePoolFile.root"
# List of DO's to write out
Stream1.ItemList += fullItemList
# Remove dumm_A from itemlist
#Stream1.ItemList = [ o for o in Stream1.ItemList if not o in 'dummy_A#*' ]
#Stream1.ItemList = [ o for o in Stream1.ItemList if not o in 'AthenaPoolTestMap#*' ]
#Stream1.ItemList = [ o for o in Stream1.ItemList if not o == 'PileUpEventInfo#*' ]
printfunc (Stream1.ItemList)
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
svcMgr.MessageSvc.OutputLevel = WARNING
svcMgr.MessageSvc.debugLimit = 100000
#rds svcMgr.ClassIDSvc = Service( "ClassIDSvc" )
#rds svcMgr.ClassIDSvc.OutputLevel = 3
svcMgr.AthenaSealSvc.OutputLevel = WARNING
from AthenaServices import AthenaServicesConf
AthenaEventLoopMgr = AthenaServicesConf.AthenaEventLoopMgr()
AthenaEventLoopMgr.OutputLevel = INFO
#svcMgr.StoreGateSvc = Service( "StoreGateSvc" )
#svcMgr.StoreGateSvc.Dump = TRUE
#svcMgr.StoreGateSvc.OutputLevel = 2
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
#
# Job options file
#
## @file AthenaPoolTestWrite.py
##
## @brief For Athena POOL test: write out AthenaPoolTest data objects
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
# MC Event Selector
## basic job configuration (for generator)
import AthenaCommon.AtlasUnixGeneratorJob
## 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
# Set handler for traceback
svcMgr.CoreDumpSvc.FatalHandler = 438
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
import AthenaPoolCnvSvc.WriteAthenaPool
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 5
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
# Set the following when reading back to adjust the run/event numbers
# (don't forget ApplicationMgr.EvtMax)
svcMgr.EventSelector.RunNumber = 1
svcMgr.EventSelector.EventsPerRun = 0x10000000000
svcMgr.EventSelector.FirstEvent = 0x100000000
svcMgr.EventSelector.EventsPerLB = 1
svcMgr.EventSelector.FirstLB = 1
svcMgr.EventSelector.InitialTimeStamp = 0
svcMgr.EventSelector.TimeStampInterval = 5
theApp.EvtMax = 2
svcMgr.EventSelector.OutputLevel = DEBUG
#--------------------------------------------------------------
# Application: AthenaPoolTest options
#--------------------------------------------------------------
# Load "user algorithm" top algorithms to be run, and the libraries that house them
from AthenaPoolTest.AthenaPoolTestConf import AthenaPoolTestDataWriter
topSequence += AthenaPoolTestDataWriter( "AthenaPoolTestDataWriter" )
AthenaPoolTestDataWriter.OutputLevel = DEBUG
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# LAr Hit
# Converters:
# ItemList:
include( "EventAthenaPool/EventAthenaPoolItemList_joboptions.py" )
include( "AthenaPoolTestAthenaPool/AthenaPoolTestAthenaPoolItemList_joboptions.py" )
printfunc (fullItemList)
# Stream's output file
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
Stream1 = AthenaPoolOutputStream( "Stream1", noTag=True )
Stream1.OutputFile = "SimplePoolFile.root"
# List of DO's to write out
Stream1.ItemList += fullItemList
# Remove dumm_A from itemlist
#Stream1.ItemList = [ o for o in Stream1.ItemList if not o in 'dummy_A#*' ]
#Stream1.ItemList = [ o for o in Stream1.ItemList if not o in 'AthenaPoolTestMap#*' ]
#Stream1.ItemList = [ o for o in Stream1.ItemList if not o == 'PileUpEventInfo#*' ]
printfunc (Stream1.ItemList)
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
svcMgr.MessageSvc.OutputLevel = WARNING
svcMgr.MessageSvc.debugLimit = 100000
#rds svcMgr.ClassIDSvc = Service( "ClassIDSvc" )
#rds svcMgr.ClassIDSvc.OutputLevel = 3
from AthenaServices import AthenaServicesConf
AthenaEventLoopMgr = AthenaServicesConf.AthenaEventLoopMgr()
AthenaEventLoopMgr.OutputLevel = INFO
#svcMgr.StoreGateSvc = Service( "StoreGateSvc" )
#svcMgr.StoreGateSvc.Dump = TRUE
#svcMgr.StoreGateSvc.OutputLevel = 2
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
......@@ -28,13 +28,6 @@ from AthenaCommon.AppMgr import theApp
#--------------------------------------------------------------
import AthenaPoolCnvSvc.WriteAthenaPool
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
# Add in dictionary name:
# Check the dictionary in memory for completeness
svcMgr.AthenaSealSvc.CheckDictionary = True
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
......@@ -104,8 +97,6 @@ printfunc ("Stream2.ItemList ",Stream2.ItemList)
svcMgr.MessageSvc.OutputLevel = WARNING
svcMgr.MessageSvc.debugLimit = 100000
svcMgr.AthenaSealSvc.OutputLevel = WARNING
from AthenaServices import AthenaServicesConf
AthenaEventLoopMgr = AthenaServicesConf.AthenaEventLoopMgr()
AthenaEventLoopMgr.OutputLevel = INFO
......
......@@ -86,10 +86,6 @@ IKinematicDumper.cellLocation = "/Event/AtlfastPoolTestCells"
#--------------------------------------------------------------
# Input options
#--------------------------------------------------------------
# Include AthenaSealSvc and dicts that are
# not linked against converters (temporary)
include( "AthenaServices/AthenaSealSvc_joboptions.py" )
include( "FourMom/FourMomDict_joboptions.py" )
# Converters:
......
......@@ -82,10 +82,6 @@ AtlfastPoolTest.OutputLevel = 2
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# Include AthenaSealSvc and dicts that are
# not linked against converters (temporary)
include( "AthenaServices/AthenaSealSvc_joboptions.py" )
include( "FourMom/FourMomDict_joboptions.py" )
# Converters:
......
###############################################################
#
# Job options file
#
## @file CaloCluster2StepReader_jobOptions.py
##
## @brief For Athena POOL test: read back CaloClusterContainers and
## LArCellContainers using element links from across two files
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
#--------------------------------------------------------------
# Set flags and load det descr
#--------------------------------------------------------------
# For general flags
doAOD = False
doTrigger = False
DetDescrVersion = "ATLAS-CSC-01-01-00"
include( "RecExCond/RecExCommon_flags.py" )
# Set local flags - only need LAr DetDescr
DetFlags.detdescr.ID_setOff()
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOff()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
#--------------------------------------------------------------
# Define input
#--------------------------------------------------------------
EventSelector = Service( "EventSelector" )
EventSelector.InputCollections = [ "SimplePoolFile2.root" ]
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20
#--------------------------------------------------------------
# Application: AthenaPoolTest InDetRawData options
#--------------------------------------------------------------
theApp.Dlls += [ "AthenaPoolTest" ]
theApp.TopAlg += [ "CaloClusterFakeReader" ]
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
include( "AthenaServices/AthenaSealSvc_joboptions.py" )
# Check the dictionary in memory for completeness
#AthenaSealSvc.CheckDictionary = true;
#--------------------------------------------------------------
# Input options
#--------------------------------------------------------------
# Converters:
include( "EventAthenaPool/EventAthenaPool_joboptions.py" )
include( "CaloAthenaPool/CaloAthenaPool_joboptions.py" )
#include( "LArAthenaPool/LArAthenaPool_joboptions.py" )
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = INFO
MessageSvc.debugLimit = 100000
ClassIDSvc = Service( "ClassIDSvc" )
ClassIDSvc.OutputLevel = INFO
CaloClusterFakeReader = Algorithm( "CaloClusterFakeReader" )
CaloClusterFakeReader.OutputLevel = DEBUG
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
#
# Job options file
#
## @file CaloCluster2StepReader_jobOptions.py
##
## @brief For Athena POOL test: read back CaloClusterContainers and
## LArCellContainers using element links from across two files
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
#--------------------------------------------------------------
# Set flags and load det descr
#--------------------------------------------------------------
# For general flags
doAOD = False
doTrigger = False
DetDescrVersion = "ATLAS-CSC-01-01-00"
include( "RecExCond/RecExCommon_flags.py" )
# Set local flags - only need LAr DetDescr
DetFlags.detdescr.ID_setOff()
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOff()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
#--------------------------------------------------------------
# Define input
#--------------------------------------------------------------
EventSelector = Service( "EventSelector" )
EventSelector.InputCollections = [ "SimplePoolFile2.root" ]
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20
#--------------------------------------------------------------
# Application: AthenaPoolTest InDetRawData options
#--------------------------------------------------------------
theApp.Dlls += [ "AthenaPoolTest" ]
theApp.TopAlg += [ "CaloClusterFakeReader" ]
#--------------------------------------------------------------
# Input options
#--------------------------------------------------------------
# Converters:
include( "EventAthenaPool/EventAthenaPool_joboptions.py" )
include( "CaloAthenaPool/CaloAthenaPool_joboptions.py" )
#include( "LArAthenaPool/LArAthenaPool_joboptions.py" )
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = INFO
MessageSvc.debugLimit = 100000
ClassIDSvc = Service( "ClassIDSvc" )
ClassIDSvc.OutputLevel = INFO
CaloClusterFakeReader = Algorithm( "CaloClusterFakeReader" )
CaloClusterFakeReader.OutputLevel = DEBUG
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
###############################################################
#
# Job options file
#
## @file CaloClusterStep1Writer_jobOptions.py
##
## @brief For Athena POOL test: write out LArCellContainers to
## a first file as part of test of ElementLinks across files
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
# MC Event Selector
include( "AthenaCommon/Atlas_Gen.UnixStandardJob.py" )
#--------------------------------------------------------------
# Set flags and load det descr
#--------------------------------------------------------------
# For general flags
doAOD = False
doTrigger = False
DetDescrVersion = "ATLAS-CSC-01-01-00"
include( "RecExCond/RecExCommon_flags.py" )
# Set local flags - only need LAr DetDescr
DetFlags.detdescr.ID_setOff()
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOff()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20
#--------------------------------------------------------------
# Application: AthenaPoolTest InDetRawData options
#--------------------------------------------------------------
theApp.Dlls += [ "AthenaPoolTest" ]
theApp.TopAlg += [ "LArCellContFakeWriter" ]
#theApp.TopAlg += [ "CaloClusterFakeWriter" ]
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
include( "AthenaServices/AthenaSealSvc_joboptions.py" )
# Check the dictionary in memory for completeness
#AthenaSealSvc.CheckDictionary = true;
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# Converters:
include( "EventAthenaPool/EventAthenaPool_joboptions.py" )
include( "CaloAthenaPool/CaloAthenaPool_joboptions.py" )
#include( "LArAthenaPool/LArAthenaPool_joboptions.py" )
# Stream's output file
Stream1 = Algorithm( "Stream1" )
Stream1.OutputFile = "SimplePoolFile1.root"
# List of DO's to write out
Stream1.ItemList+=["CaloCellContainer#*"]
#Stream1.ItemList+=["CaloClusterContainer#*"]
Stream1.ItemList+=["EventInfo#*"]
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = INFO
MessageSvc.debugLimit = 100000
ClassIDSvc = Service( "ClassIDSvc" )
ClassIDSvc.OutputLevel = INFO
LArCellContFakeWriter = Algorithm( "LArCellContFakeWriter" )
LArCellContFakeWriter.OutputLevel = DEBUG
#CaloClusterFakeWriter = Algorithm( "CaloClusterFakeWriter" )
#CaloClusterFakeWriter.OutputLevel = 2
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
#
# Job options file
#
## @file CaloClusterStep1Writer_jobOptions.py
##
## @brief For Athena POOL test: write out LArCellContainers to
## a first file as part of test of ElementLinks across files
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
# MC Event Selector
include( "AthenaCommon/Atlas_Gen.UnixStandardJob.py" )
#--------------------------------------------------------------
# Set flags and load det descr
#--------------------------------------------------------------
# For general flags
doAOD = False
doTrigger = False
DetDescrVersion = "ATLAS-CSC-01-01-00"
include( "RecExCond/RecExCommon_flags.py" )
# Set local flags - only need LAr DetDescr
DetFlags.detdescr.ID_setOff()
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOff()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20
#--------------------------------------------------------------
# Application: AthenaPoolTest InDetRawData options
#--------------------------------------------------------------
theApp.Dlls += [ "AthenaPoolTest" ]
theApp.TopAlg += [ "LArCellContFakeWriter" ]
#theApp.TopAlg += [ "CaloClusterFakeWriter" ]
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# Converters:
include( "EventAthenaPool/EventAthenaPool_joboptions.py" )
include( "CaloAthenaPool/CaloAthenaPool_joboptions.py" )
#include( "LArAthenaPool/LArAthenaPool_joboptions.py" )
# Stream's output file
Stream1 = Algorithm( "Stream1" )
Stream1.OutputFile = "SimplePoolFile1.root"
# List of DO's to write out
Stream1.ItemList+=["CaloCellContainer#*"]
#Stream1.ItemList+=["CaloClusterContainer#*"]
Stream1.ItemList+=["EventInfo#*"]
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = INFO
MessageSvc.debugLimit = 100000
ClassIDSvc = Service( "ClassIDSvc" )
ClassIDSvc.OutputLevel = INFO
LArCellContFakeWriter = Algorithm( "LArCellContFakeWriter" )
LArCellContFakeWriter.OutputLevel = DEBUG
#CaloClusterFakeWriter = Algorithm( "CaloClusterFakeWriter" )
#CaloClusterFakeWriter.OutputLevel = 2
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
###############################################################
#
# Job options file
#
## @file CaloClusterStep2Writer_jobOptions.py
##
## @brief For Athena POOL test: write out CaloClusterContainers to
## a second file with ElemenetLinks to LArCellContainers in first file
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
#--------------------------------------------------------------
# Set flags and load det descr
#--------------------------------------------------------------
# For general flags
doAOD = False
doTrigger = False
DetDescrVersion = "ATLAS-CSC-01-01-00"
include( "RecExCond/RecExCommon_flags.py" )
# Set local flags - only need LAr DetDescr
DetFlags.detdescr.ID_setOff()
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOff()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
#--------------------------------------------------------------
# Define input
#--------------------------------------------------------------
EventSelector = Service( "EventSelector" )
EventSelector.InputCollections = [ "SimplePoolFile1.root" ]
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20
#--------------------------------------------------------------
# Application: AthenaPoolTest InDetRawData options
#--------------------------------------------------------------
theApp.Dlls += [ "AthenaPoolTest" ]
#theApp.TopAlg += [ "LArCellContFakeWriter" ]
theApp.TopAlg += [ "CaloClusterFakeWriter" ]
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
include( "AthenaServices/AthenaSealSvc_joboptions.py" )
# Check the dictionary in memory for completeness
#AthenaSealSvc.CheckDictionary = true;
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# Converters:
include( "EventAthenaPool/EventAthenaPool_joboptions.py" )
include( "CaloAthenaPool/CaloAthenaPool_joboptions.py" )
#include( "LArAthenaPool/LArAthenaPool_joboptions.py" )
# Run OutputStream as an algorithm
theApp.TopAlg += [ "AthenaOutputStream/Stream1" ]
# Must make sure that no OutStream's have been declared
theApp.OutStream = [];
# Stream's output file
Stream1 = Algorithm( "AthenaOutputStream/Stream1" )
Stream1.WritingTool = "AthenaOutputStreamTool"
Stream1.OutputFile = "SimplePoolFile2.root"
# List of DO's to write out
#Stream1.ItemList += ["CaloCellContainer#*"]
Stream1.ItemList += ["CaloClusterContainer#*"]
Stream1.ItemList += ["CaloCellLinkContainer#*"]
Stream1.ItemList += ["CaloShowerContainer#*"]
Stream1.ItemList += ["EventInfo#*"]
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = INFO
MessageSvc.debugLimit = 100000
ClassIDSvc = Service( "ClassIDSvc" )
ClassIDSvc.OutputLevel = INFO
#LArCellContFakeWriter = Algorithm( "LArCellContFakeWriter" )
#LArCellContFakeWriter.OutputLevel = DEBUG
CaloClusterFakeWriter = Algorithm( "CaloClusterFakeWriter" )
CaloClusterFakeWriter.OutputLevel = DEBUG
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
#
# Job options file
#
## @file CaloClusterStep2Writer_jobOptions.py
##
## @brief For Athena POOL test: write out CaloClusterContainers to
## a second file with ElemenetLinks to LArCellContainers in first file
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
#--------------------------------------------------------------
# Set flags and load det descr
#--------------------------------------------------------------
# For general flags
doAOD = False
doTrigger = False
DetDescrVersion = "ATLAS-CSC-01-01-00"
include( "RecExCond/RecExCommon_flags.py" )
# Set local flags - only need LAr DetDescr
DetFlags.detdescr.ID_setOff()
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOff()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
#--------------------------------------------------------------
# Define input
#--------------------------------------------------------------
EventSelector = Service( "EventSelector" )
EventSelector.InputCollections = [ "SimplePoolFile1.root" ]
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20
#--------------------------------------------------------------
# Application: AthenaPoolTest InDetRawData options
#--------------------------------------------------------------
theApp.Dlls += [ "AthenaPoolTest" ]
#theApp.TopAlg += [ "LArCellContFakeWriter" ]
theApp.TopAlg += [ "CaloClusterFakeWriter" ]
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# Converters:
include( "EventAthenaPool/EventAthenaPool_joboptions.py" )
include( "CaloAthenaPool/CaloAthenaPool_joboptions.py" )
#include( "LArAthenaPool/LArAthenaPool_joboptions.py" )
# Run OutputStream as an algorithm
theApp.TopAlg += [ "AthenaOutputStream/Stream1" ]
# Must make sure that no OutStream's have been declared
theApp.OutStream = [];
# Stream's output file
Stream1 = Algorithm( "AthenaOutputStream/Stream1" )
Stream1.WritingTool = "AthenaOutputStreamTool"
Stream1.OutputFile = "SimplePoolFile2.root"
# List of DO's to write out
#Stream1.ItemList += ["CaloCellContainer#*"]
Stream1.ItemList += ["CaloClusterContainer#*"]
Stream1.ItemList += ["CaloCellLinkContainer#*"]
Stream1.ItemList += ["CaloShowerContainer#*"]
Stream1.ItemList += ["EventInfo#*"]
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = INFO
MessageSvc.debugLimit = 100000
ClassIDSvc = Service( "ClassIDSvc" )
ClassIDSvc.OutputLevel = INFO
#LArCellContFakeWriter = Algorithm( "LArCellContFakeWriter" )
#LArCellContFakeWriter.OutputLevel = DEBUG
CaloClusterFakeWriter = Algorithm( "CaloClusterFakeWriter" )
CaloClusterFakeWriter.OutputLevel = DEBUG
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
###############################################################
#
# Job options file
#
## @file CaloClusterWriter_jobOptions.py
##
## @brief For Athena POOL test: write out CaloClusterContainers
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
# MC Event Selector
## basic job configuration (for generator)
import AthenaCommon.AtlasUnixGeneratorJob
## 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
#--------------------------------------------------------------
# Set flags and load det descr
#--------------------------------------------------------------
from AthenaCommon.GlobalFlags import globalflags
from AthenaCommon.DetFlags import DetFlags
from RecExConfig.RecFlags import rec
# For general flags
rec.doAOD = False
rec.doTrigger = False
rec.doWriteTAG = False
DetDescrVersion = "ATLAS-GEO-17-00-00"
# Set local flags - only need LAr DetDescr
DetFlags.detdescr.Calo_setOn()
DetFlags.detdescr.ID_setOff()
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOff()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
# the correct tag should be specified
from IOVDbSvc.CondDB import conddb
conddb.setGlobalTag("OFLCOND-SDR-BS7T-04-00")
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20
#--------------------------------------------------------------
# Application: AthenaPoolTest InDetRawData options
#--------------------------------------------------------------
from AthenaPoolTest.AthenaPoolTestConf import LArCellContFakeWriter
topSequence += LArCellContFakeWriter( "LArCellContFakeWriter" )
from AthenaPoolTest.AthenaPoolTestConf import CaloClusterFakeWriter
topSequence += CaloClusterFakeWriter( "CaloClusterFakeWriter" )
# Check the dictionary in memory for completeness
#AthenaSealSvc.CheckDictionary = true;
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# Stream's output file
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
Stream1 = AthenaPoolOutputStream( "Stream1" )
Stream1.OutputFile = "SimplePoolFile.root"
# List of DO's to write out
Stream1.ItemList+=["CaloCellContainer#*"]
Stream1.ItemList+=["CaloCellLinkContainer#*"]
Stream1.ItemList+=["CaloClusterContainer#*"]
Stream1.ItemList+=["CaloShowerContainer#*"]
Stream1.ItemList+=["EventInfo#*"]
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
svcMgr.MessageSvc.Format = "% F%30W%S%7W%R%T %0W%M"
svcMgr.MessageSvc.OutputLevel = WARNING
svcMgr.MessageSvc.debugLimit = 100000
svcMgr.MessageSvc.errorLimit = 100000
#svcMgr.ClassIDSvc.OutputLevel = DEBUG
LArCellContFakeWriter.OutputLevel = DEBUG
CaloClusterFakeWriter.OutputLevel = DEBUG
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
#
# Job options file
#
## @file CaloClusterWriter_jobOptions.py
##
## @brief For Athena POOL test: write out CaloClusterContainers
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
# MC Event Selector
## basic job configuration (for generator)
import AthenaCommon.AtlasUnixGeneratorJob
## 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
#--------------------------------------------------------------
# Set flags and load det descr
#--------------------------------------------------------------
from AthenaCommon.GlobalFlags import globalflags
from AthenaCommon.DetFlags import DetFlags
from RecExConfig.RecFlags import rec
# For general flags
rec.doAOD = False
rec.doTrigger = False
rec.doWriteTAG = False
DetDescrVersion = "ATLAS-GEO-17-00-00"
# Set local flags - only need LAr DetDescr
DetFlags.detdescr.Calo_setOn()
DetFlags.detdescr.ID_setOff()
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOff()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
# the correct tag should be specified
from IOVDbSvc.CondDB import conddb
conddb.setGlobalTag("OFLCOND-SDR-BS7T-04-00")
#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20
#--------------------------------------------------------------
# Application: AthenaPoolTest InDetRawData options
#--------------------------------------------------------------
from AthenaPoolTest.AthenaPoolTestConf import LArCellContFakeWriter
topSequence += LArCellContFakeWriter( "LArCellContFakeWriter" )
from AthenaPoolTest.AthenaPoolTestConf import CaloClusterFakeWriter
topSequence += CaloClusterFakeWriter( "CaloClusterFakeWriter" )
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# Stream's output file
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
Stream1 = AthenaPoolOutputStream( "Stream1" )
Stream1.OutputFile = "SimplePoolFile.root"
# List of DO's to write out
Stream1.ItemList+=["CaloCellContainer#*"]
Stream1.ItemList+=["CaloCellLinkContainer#*"]
Stream1.ItemList+=["CaloClusterContainer#*"]
Stream1.ItemList+=["CaloShowerContainer#*"]
Stream1.ItemList+=["EventInfo#*"]
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
svcMgr.MessageSvc.Format = "% F%30W%S%7W%R%T %0W%M"
svcMgr.MessageSvc.OutputLevel = WARNING
svcMgr.MessageSvc.debugLimit = 100000
svcMgr.MessageSvc.errorLimit = 100000
#svcMgr.ClassIDSvc.OutputLevel = DEBUG
LArCellContFakeWriter.OutputLevel = DEBUG
CaloClusterFakeWriter.OutputLevel = DEBUG
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
......@@ -70,9 +70,6 @@ if len(globalflags.ConditionsTag())!=0:
#--------------------------------------------------------------
import AthenaPoolCnvSvc.WriteAthenaPool
# Check the dictionary in memory for completeness
svcMgr.AthenaSealSvc.CheckDictionary = True
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
......
......@@ -69,14 +69,6 @@ theApp.EvtMax = 20
from AthenaPoolTest.AthenaPoolTestConf import InDetRawDataFakeWriter
topSequence += InDetRawDataFakeWriter( "InDetRawDataFakeWriter" )
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
# Check the dictionary in memory for completeness
#include( "AthenaServices/AthenaSealSvc_joboptions.py" )
svcMgr.AthenaSealSvc.CheckDictionary = True
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
......
###############################################################
#
# Job options file
#
## @file LArCellContReader_jobOptionsReg.py
##
## @brief For Athena POOL test: read in LArCellContainers via explicit collections
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
## basic job configuration
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
#--------------------------------------------------------------
# For general flags
doAOD = False
doTrigger = False
DetDescrVersion = "ATLAS-CSC-01-02-00"
include( "RecExCond/RecExCommon_flags.py" )
# Set local flags - only need LAr DetDescr
DetFlags.detdescr.ID_setOff()
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOff()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
# the correct tag should be specified
svcMgr.IOVDbSvc.GlobalTag="OFLCOND-CSC-00-01-00"
#--------------------------------------------------------------
# Define the output Db parameters (the default value are shown)
#--------------------------------------------------------------
#svcMgr.EventSelector.CollectionType = "ExplicitROOT"
svcMgr.EventSelector.InputCollections = [ "NewEventCollection" ]
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20
#--------------------------------------------------------------
# Application: AthenaPoolTest options
#--------------------------------------------------------------
from AthenaPoolTest.AthenaPoolTestConf import LArCellContFakeReader
topSequence += LArCellContFakeReader( "LArCellContFakeReader" )
from AthenaPoolTest.AthenaPoolTestConf import AthenaPoolTestAttrReader
topSequence += AthenaPoolTestAttrReader( "AthenaPoolTestAttrReader" )
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
svcMgr.MessageSvc.OutputLevel = INFO
svcMgr.MessageSvc.debugLimit = 100000
svcMgr.ClassIDSvc.OutputLevel = INFO
svcMgr.AthenaSealSvc.OutputLevel = INFO
svcMgr.MetaDataSvc.OutputLevel = DEBUG
#AthenaPoolTestAttrReader.OutputLevel = DEBUG
LArCellContFakeReader.OutputLevel = DEBUG
#StoreGateSvc = Service( "StoreGateSvc" )
#StoreGateSvc.Dump = TRUE
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
#
# Job options file
#
## @file LArCellContReader_jobOptionsReg.py
##
## @brief For Athena POOL test: read in LArCellContainers via explicit collections
##
## @author RD Schaffer <R.D.Schaffer@cern.ch>
#
#==============================================================
## basic job configuration
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
#--------------------------------------------------------------
# For general flags
doAOD = False
doTrigger = False
DetDescrVersion = "ATLAS-CSC-01-02-00"
include( "RecExCond/RecExCommon_flags.py" )
# Set local flags - only need LAr DetDescr
DetFlags.detdescr.ID_setOff()
DetFlags.detdescr.Tile_setOff()
DetFlags.detdescr.Muon_setOff()
# set up all detector description description
include ("RecExCond/AllDet_detDescr.py")
# the correct tag should be specified
svcMgr.IOVDbSvc.GlobalTag="OFLCOND-CSC-00-01-00"
#--------------------------------------------------------------
# Define the output Db parameters (the default value are shown)
#--------------------------------------------------------------
#svcMgr.EventSelector.CollectionType = "ExplicitROOT"
svcMgr.EventSelector.InputCollections = [ "NewEventCollection" ]
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20
#--------------------------------------------------------------
# Application: AthenaPoolTest options
#--------------------------------------------------------------
from AthenaPoolTest.AthenaPoolTestConf import LArCellContFakeReader
topSequence += LArCellContFakeReader( "LArCellContFakeReader" )
from AthenaPoolTest.AthenaPoolTestConf import AthenaPoolTestAttrReader
topSequence += AthenaPoolTestAttrReader( "AthenaPoolTestAttrReader" )
#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
#--------------------------------------------------------------
svcMgr.MessageSvc.OutputLevel = INFO
svcMgr.MessageSvc.debugLimit = 100000
svcMgr.ClassIDSvc.OutputLevel = INFO
svcMgr.MetaDataSvc.OutputLevel = DEBUG
#AthenaPoolTestAttrReader.OutputLevel = DEBUG
LArCellContFakeReader.OutputLevel = DEBUG
#StoreGateSvc = Service( "StoreGateSvc" )
#StoreGateSvc.Dump = TRUE
# No stats printout
include( "AthenaPoolTest/NoStats_jobOptions.py" )
#==============================================================
#
# End of job options file
#
###############################################################
......@@ -65,14 +65,6 @@ theApp.EvtMax = 20
from AthenaPoolTest.AthenaPoolTestConf import LArCellContFakeWriter
topSequence += LArCellContFakeWriter( "LArCellContFakeWriter" )
#--------------------------------------------------------------
# JobOptions for the loading of the AthenaSealSvc
#--------------------------------------------------------------
# Check the dictionary in memory for completeness
#include( "AthenaServices/AthenaSealSvc_joboptions.py" )
svcMgr.AthenaSealSvc.CheckDictionary = True
#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
......
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