Skip to content
Snippets Groups Projects
Commit 280c859f authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'asg/pool' into 'master'

CP algs: Use POOL access for now and unify Athena tests

See merge request atlas/athena!39393
parents 5330376a a8af5475
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!39393CP algs: Use POOL access for now and unify Athena tests
Showing
with 33 additions and 55 deletions
......@@ -22,7 +22,7 @@ inputfile = {"data": 'ASG_TEST_FILE_DATA',
"afii": 'ASG_TEST_FILE_MC_AFII'}
# Set up the reading of the input file:
import AthenaRootComps.ReadAthenaxAODHybrid
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
......
......@@ -21,7 +21,7 @@ inputfile = {"mc": 'ASG_TEST_FILE_MC',
"afii": 'ASG_TEST_FILE_MC_AFII'}
# Set up the reading of the input file:
import AthenaRootComps.ReadAthenaxAODHybrid
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
......
......@@ -22,7 +22,7 @@ inputfile = {"data": 'ASG_TEST_FILE_DATA',
"afii": 'ASG_TEST_FILE_MC_AFII'}
# Set up the reading of the input file:
import AthenaRootComps.ReadAthenaxAODHybrid
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
......
......@@ -22,7 +22,7 @@ inputfile = {"data": 'ASG_TEST_FILE_DATA',
"afii": 'ASG_TEST_FILE_MC_AFII'}
# Set up the reading of the input file:
import AthenaRootComps.ReadAthenaxAODHybrid
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
......
......@@ -22,7 +22,7 @@ inputfile = {"data": 'ASG_TEST_FILE_DATA',
"afii": 'ASG_TEST_FILE_MC_AFII'}
# Set up the reading of the input file:
import AthenaRootComps.ReadAthenaxAODHybrid
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
......
......@@ -24,7 +24,7 @@ inputfile = {"data": 'ASG_TEST_FILE_DATA',
jetContainer = "AntiKt4EMTopoJets"
# Set up the reading of the input file:
import AthenaRootComps.ReadAthenaxAODHybrid
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
......
......@@ -24,7 +24,7 @@ inputfile = {"data": 'ASG_TEST_FILE_DATA',
jetContainer = "AntiKt4EMTopoJets"
# Set up the reading of the input file:
import AthenaRootComps.ReadAthenaxAODHybrid
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
......
......@@ -22,7 +22,7 @@ inputfile = {"data": 'ASG_TEST_FILE_DATA',
"afii": 'ASG_TEST_FILE_MC_AFII'}
# Set up the reading of the input file:
import AthenaRootComps.ReadAthenaxAODHybrid
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
......
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
#
# @author Nils Krumnack, Will Buttinger
# @author Nils Krumnack
#User options, which can be set from command line after a "-" character
#athena MuonAnalysisAlgorithmsTest_jobOptions.py - --myOption ...
# User options, which can be set from command line after a "-" character
# athena MuonAnalysisAlgorithmsTest_jobOptions.py - --myOption ...
from AthenaCommon.AthArgumentParser import AthArgumentParser
athArgsParser = AthArgumentParser()
athArgsParser.add_argument("--data-type",action="store",dest="data_type",
default="data",
help="Type of data to run over. Valid options are data, mc, afii")
athArgsParser.add_argument("--write-xaod",action="store",dest="write_xaod",
default=False,
help="Specify if you want xaod writing to happen (which means slower access mode for now)")
athArgsParser.add_argument("--data-type", action = "store", dest = "data_type",
default = "data",
help = "Type of input to run over. Valid options are 'data', 'mc', 'afii'")
athArgs = athArgsParser.parse_args()
if athArgs.write_xaod:
#currently we must use POOLAccess mode when writing an xAOD
jps.AthenaCommonFlags.AccessMode = "POOLAccess"
else:
#ClassAccess is much faster than POOLAccess
jps.AthenaCommonFlags.AccessMode = "ClassAccess"
dataType = athArgs.data_type
if not dataType in ["data", "mc", "afii"] :
raise Exception ("invalid data type: " + dataType)
# Set up a histogram/tree output file for the job:
jps.AthenaCommonFlags.HistOutputs = ["ANALYSIS:MuonAnalysisAlgorithmsTest." + dataType + ".hist.root"]
svcMgr.THistSvc.MaxFileSize=-1 #make job run faster by disabling file size check
#set a default file and number of events to process
#can override with standard athena command line options (--evtMax and --filesInput)
jps.AthenaCommonFlags.EvtMax = 500
if dataType=="data":
testFile = os.getenv ('ASG_TEST_FILE_DATA')
elif dataType=="mc":
testFile = os.getenv ('ASG_TEST_FILE_MC')
elif dataType=="afii":
testFile = os.getenv ('ASG_TEST_FILE_MC_AFII')
jps.AthenaCommonFlags.FilesInput = [testFile]
print("Running on data type: " + dataType)
inputfile = {"data": 'ASG_TEST_FILE_DATA',
"mc": 'ASG_TEST_FILE_MC',
"afii": 'ASG_TEST_FILE_MC_AFII'}
# Set up the reading of the input file:
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
from MuonAnalysisAlgorithms.MuonAnalysisAlgorithmsTest import makeSequence
algSeq = makeSequence (dataType)
......@@ -50,17 +34,11 @@ print (algSeq) # For debugging
# Add all algorithms from the sequence to the job.
athAlgSeq += algSeq
# Write a mini-xAOD if requested:
if athArgs.write_xaod:
from OutputStreamAthenaPool.MultipleStreamManager import MSMgr
minixAOD = MSMgr.NewPoolRootStream( 'AAOD_MUON',
FileName = 'MuonAnalysisAlgorithmsTest.AAOD_MUON.pool.root' )
minixAOD.AddItem(
[ 'xAOD::EventInfo#EventInfo',
'xAOD::EventAuxInfo#EventInfoAux.-',
'xAOD::MuonContainer#AnalysisMuons_NOSYS',
'xAOD::AuxContainerBase#AnalysisMuons_NOSYSAux.eta.phi.pt' ] )
# Set up a histogram output file for the job:
ServiceMgr += CfgMgr.THistSvc()
ServiceMgr.THistSvc.Output += [
"ANALYSIS DATAFILE='MuonAnalysisAlgorithmsTest." + dataType + ".hist.root' OPT='RECREATE'"
]
# Reduce the printout from Athena:
include( "AthAnalysisBaseComps/SuppressLogging.py" )
......@@ -22,7 +22,7 @@ inputfile = {"data": 'ASG_TEST_FILE_DATA',
"afii": 'ASG_TEST_FILE_MC_AFII'}
# Set up the reading of the input file:
import AthenaRootComps.ReadAthenaxAODHybrid
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
......
......@@ -22,7 +22,7 @@ inputfile = {"data": 'ASG_TEST_FILE_DATA',
"afii": 'ASG_TEST_FILE_MC_AFII'}
# Set up the reading of the input file:
import AthenaRootComps.ReadAthenaxAODHybrid
import AthenaPoolCnvSvc.ReadAthenaPool
theApp.EvtMax = 500
testFile = os.getenv ( inputfile[dataType] )
svcMgr.EventSelector.InputCollections = [testFile]
......
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