Forked from
atlas / athena
85097 commits behind the upstream repository.
-
Julie Kirk authoredJulie Kirk authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
test_trigID_mu_singlemu_larged0.py 2.70 KiB
#!/usr/bin/env python
# art-description: art job for mu_singlemu_larged0_pu
# art-type: grid
# art-include: master/Athena
# art-input: mc15_13TeV.107237.ParticleGenerator_mu_Pt4to100_vertxy20.recon.RDO.e3603_s2726_r7772
# art-input-nfiles: 10
# art-athena-mt: 4
# art-memory: 4096
# art-output: *.txt
# art-output: *.log
# art-output: log.*
# art-output: *.out
# art-output: *.err
# art-output: *.log.tar.gz
# art-output: *.new
# art-output: *.json
# art-output: *.root
# art-output: *.check*
# art-output: HLT*
# art-output: times*
# art-output: cost-perCall
# art-output: cost-perEvent
# art-output: cost-perCall-chain
# art-output: cost-perEvent-chain
# art-output: *.dat
from TrigValTools.TrigValSteering import Test, CheckSteps
from TrigInDetValidation.TrigInDetArtSteps import TrigInDetReco, TrigInDetAna, TrigInDetdictStep, TrigInDetCompStep, TrigInDetCpuCostStep
import sys,getopt
try:
opts, args = getopt.getopt(sys.argv[1:],"lxp",["local"])
except getopt.GetoptError:
print("Usage: ")
print("-l(--local) run locally with input file from art eos grid-input")
print("-x don't run athena or post post-processing, only plotting")
print("-p run post-processing, even if -x is set")
local=False
exclude=False
postproc=False
for opt,arg in opts:
if opt in ("-l", "--local"):
local=True
if opt=="-x":
exclude=True
if opt=="-p":
postproc=True
rdo2aod = TrigInDetReco()
rdo2aod.slices = ['muon']
rdo2aod.max_events = 20000
rdo2aod.threads = 1 # TODO: change to 4
rdo2aod.concurrent_events = 1 # TODO: change to 4
rdo2aod.perfmon = False
rdo2aod.timeout = 18*3600
if local:
rdo2aod.input = 'Single_mu_larged0_pu' # defined in TrigValTools/share/TrigValInputs.json
else:
rdo2aod.input = ''
rdo2aod.args += '--inputRDOFile=$ArtInFile '
test = Test.Test()
test.art_type = 'grid'
if (not exclude):
test.exec_steps = [rdo2aod]
test.exec_steps.append(TrigInDetAna()) # Run analysis to produce TrkNtuple
test.check_steps = CheckSteps.default_check_steps(test)
# Run Tidardict
if ((not exclude) or postproc ):
rdict = TrigInDetdictStep()
rdict.args='TIDAdata-run3.dat -f data-hists.root -p 13 -b Test_bin.dat '
test.check_steps.append(rdict)
# Now the comparitor steps
comp=TrigInDetCompStep('Comp_L2muon')
comp.flag = 'L2muon'
test.check_steps.append(comp)
comp2=TrigInDetCompStep('Comp_EFmuon')
comp2.flag = 'EFmuon'
test.check_steps.append(comp2)
# CPU cost steps
cpucost=TrigInDetCpuCostStep('CpuCostStep1')
test.check_steps.append(cpucost)
cpucost2=TrigInDetCpuCostStep('CpuCostStep2')
cpucost2.args += ' -p FastTrack'
cpucost2.output_dir = 'times-FTF'
test.check_steps.append(cpucost2)
import sys
sys.exit(test.run())