diff --git a/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_all_ttbar_pu40.py b/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_all_ttbar_pu40.py index 5fc1b0d683674bfd992688f32b7dd2313393e4d5..a426a5d7604693646bd0e6041239ca7406964c68 100755 --- a/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_all_ttbar_pu40.py +++ b/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_all_ttbar_pu40.py @@ -3,7 +3,6 @@ # art-description: art job for all_ttbar_pu40 # art-type: grid # art-include: master/Athena -# art-input-nfiles: 3 # art-athena-mt: 8 # art-memory: 4096 # art-html: https://idtrigger-val.web.cern.ch/idtrigger-val/TIDAWeb/TIDAart/?jobdir= @@ -26,103 +25,16 @@ # art-output: *.dat -from TrigValTools.TrigValSteering import Test, CheckSteps -from TrigInDetValidation.TrigInDetArtSteps import TrigInDetReco, TrigInDetAna, TrigInDetdictStep, TrigInDetCompStep, TrigInDetCpuCostStep +Slices = ['muon','electron','tau','bjet'] +RunEF = False +Events = 4000 +Threads = 8 +Slots = 8 +Input = 'ttbar_ID' # defined in TrigValTools/share/TrigValInputs.json +TrackReference = [ 'Offline' ] -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") +from AthenaCommon.Include import include +include("TrigInDetValidation/TrigInDetValidation_Base.py") - -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','electron','tau','bjet'] -rdo2aod.max_events = 4000 -rdo2aod.threads = 8 -rdo2aod.concurrent_events = 8 -rdo2aod.perfmon = False -rdo2aod.timeout = 18*3600 -rdo2aod.input = 'ttbar' # defined in TrigValTools/share/TrigValInputs.json - - -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-offline.dat -r Offline -f data-hists.root -b Test_bin.dat ' - test.check_steps.append(rdict) - - -# Now the comparitor steps -comp=TrigInDetCompStep('Comp_L2muon','L2','muon') -comp.test='ttbar' -test.check_steps.append(comp) - - -comp2=TrigInDetCompStep('Comp_EFmuon','EF','muon') -comp2.test='ttbar' -test.check_steps.append(comp2) - - -comp3=TrigInDetCompStep('Comp_L2bjet','L2','bjet') -comp3.test='ttbar' -test.check_steps.append(comp3) - -comp4=TrigInDetCompStep('Comp_EFbjet','EF','bjet') -comp4.test='ttbar' -test.check_steps.append(comp4) - -comp5=TrigInDetCompStep('Comp_L2tau','L2','tau') -comp5.test='ttbar' -test.check_steps.append(comp5) - -comp6=TrigInDetCompStep('Comp_EFtau','EF','tau') -comp6.test='ttbar' -test.check_steps.append(comp6) - -comp7=TrigInDetCompStep('Comp_L2ele','L2','electron') -comp7.test='ttbar' -test.check_steps.append(comp7) - -comp8=TrigInDetCompStep('Comp_EFele','EF','electron') -comp8.test='ttbar' -test.check_steps.append(comp8) - -comp9=TrigInDetCompStep('Comp_L2FS','L2','FS') -comp9.test='ttbar' -test.check_steps.append(comp9) - -# CPU cost steps -cpucost=TrigInDetCpuCostStep('CpuCostStep1', ftf_times=False) -test.check_steps.append(cpucost) - -cpucost2=TrigInDetCpuCostStep('CpuCostStep2') -test.check_steps.append(cpucost2) - - -import sys -sys.exit(test.run()) diff --git a/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_all_ttbar_pu40_old.py b/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_all_ttbar_pu40_old.py new file mode 100755 index 0000000000000000000000000000000000000000..def488af358b44b6b6337202a578b6afe5961f46 --- /dev/null +++ b/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_all_ttbar_pu40_old.py @@ -0,0 +1,128 @@ +#!/usr/bin/env python + +# art-description: art job for all_ttbar_pu40 +# art-type: grid +# art-include: master/Athena +# art-input-nfiles: 3 +# art-athena-mt: 8 +# art-memory: 4096 +# art-html: https://idtrigger-val.web.cern.ch/idtrigger-val/TIDAWeb/TIDAart/?jobdir= +# 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','electron','tau','bjet'] +rdo2aod.max_events = 4000 +rdo2aod.threads = 8 +rdo2aod.concurrent_events = 8 +rdo2aod.perfmon = False +rdo2aod.timeout = 18*3600 +rdo2aod.input = 'ttbar_ID' # defined in TrigValTools/share/TrigValInputs.json + + +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-offline.dat -r Offline -f data-hists.root -b Test_bin.dat ' + test.check_steps.append(rdict) + + +# Now the comparitor steps +comp=TrigInDetCompStep('Comp_L2muon','L2','muon') +comp.test='ttbar' +test.check_steps.append(comp) + + +comp2=TrigInDetCompStep('Comp_EFmuon','EF','muon') +comp2.test='ttbar' +test.check_steps.append(comp2) + + +comp3=TrigInDetCompStep('Comp_L2bjet','L2','bjet') +comp3.test='ttbar' +test.check_steps.append(comp3) + +comp4=TrigInDetCompStep('Comp_EFbjet','EF','bjet') +comp4.test='ttbar' +test.check_steps.append(comp4) + +comp5=TrigInDetCompStep('Comp_L2tau','L2','tau') +comp5.test='ttbar' +test.check_steps.append(comp5) + +comp6=TrigInDetCompStep('Comp_EFtau','EF','tau') +comp6.test='ttbar' +test.check_steps.append(comp6) + +comp7=TrigInDetCompStep('Comp_L2ele','L2','electron') +comp7.test='ttbar' +test.check_steps.append(comp7) + +comp8=TrigInDetCompStep('Comp_EFele','EF','electron') +comp8.test='ttbar' +test.check_steps.append(comp8) + +comp9=TrigInDetCompStep('Comp_L2FS','L2','FS') +comp9.test='ttbar' +test.check_steps.append(comp9) + +# CPU cost steps +cpucost=TrigInDetCpuCostStep('CpuCostStep1', ftf_times=False) +test.check_steps.append(cpucost) + +cpucost2=TrigInDetCpuCostStep('CpuCostStep2') +test.check_steps.append(cpucost2) + + +import sys +sys.exit(test.run()) diff --git a/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_bjet_pu40.py b/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_bjet_pu40.py index 116ba343c7087b289777a60d0459c96e48af70fb..a84877afef6fb398bae9e28c5308db1025406a3a 100755 --- a/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_bjet_pu40.py +++ b/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_bjet_pu40.py @@ -61,7 +61,7 @@ rdo2aod.threads = 4 rdo2aod.concurrent_events = 4 rdo2aod.perfmon = False rdo2aod.timeout = 18*3600 -rdo2aod.input = 'ttbar' # defined in TrigValTools/share/TrigValInputs.json +rdo2aod.input = 'ttbar_ID' # defined in TrigValTools/share/TrigValInputs.json test = Test.Test() diff --git a/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_el_zee_pu40_short.py b/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_el_zee_pu40_short.py new file mode 100755 index 0000000000000000000000000000000000000000..067583cddad61c3cc978c1b264f7d868402daa1d --- /dev/null +++ b/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_el_zee_pu40_short.py @@ -0,0 +1,125 @@ +#!/usr/bin/env python + +# art-description: art job for el_zee_pu40_short +# art-type: grid +# art-include: master/Athena +# art-input: mc15_13TeV.361106.PowhegPythia8EvtGen_AZNLOCTEQ6L1_Zee.recon.RDO.e3601_s2665_s2183_r7191 +# art-input-nfiles: 8 +# art-athena-mt: 8 +# art-memory: 4096 +# art-html: https://idtrigger-val.web.cern.ch/idtrigger-val/TIDAWeb/TIDAart/?jobdir= +# 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 = ['electron'] +rdo2aod.max_events = 8000 +rdo2aod.threads = 8 +rdo2aod.concurrent_events = 8 +rdo2aod.perfmon = False +rdo2aod.timeout = 18*3600 +if local: + rdo2aod.input = 'Zee_pu40' # 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 11 -b Test_bin.dat ' + test.check_steps.append(rdict) + rdict2 = TrigInDetdictStep('TrigInDetDict2') + rdict2.args='TIDAdata-run3-offline.dat -r Offline -f data-hists-offline.root -b Test_bin.dat ' + test.check_steps.append(rdict2) + + +# Now the comparitor steps +comp=TrigInDetCompStep('Comp_L2ele','L2','electron') +test.check_steps.append(comp) + +comp2=TrigInDetCompStep('Comp_EFele','EF','electron') +test.check_steps.append(comp2) + +comp3=TrigInDetCompStep('Comp_L2eleLowpt','L2','electron',lowpt=True) +test.check_steps.append(comp3) + +comp4=TrigInDetCompStep('Comp_EFeleLowpt','EF','electron',lowpt=True) +test.check_steps.append(comp4) + +comp5=TrigInDetCompStep('Comp_L2ele_off','L2','electron') +comp5.type = 'offline' +test.check_steps.append(comp5) + +comp6=TrigInDetCompStep('Comp_EFele_off','EF','electron') +comp6.type = 'offline' +test.check_steps.append(comp6) + +comp7=TrigInDetCompStep('Comp_L2eleLowpt_off','L2','electron',lowpt=True) +comp7.type = 'offline' +test.check_steps.append(comp7) + +comp8=TrigInDetCompStep('Comp_EFeleLowpt_off','EF','electron',lowpt=True) +comp8.type = 'offline' +test.check_steps.append(comp8) + +# CPU cost steps +cpucost=TrigInDetCpuCostStep('CpuCostStep1', ftf_times=False) +test.check_steps.append(cpucost) + +cpucost2=TrigInDetCpuCostStep('CpuCostStep2') +test.check_steps.append(cpucost2) + +import sys +sys.exit(test.run()) diff --git a/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_mu_zmumu_pu40_short.py b/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_mu_zmumu_pu40_short.py new file mode 100755 index 0000000000000000000000000000000000000000..296bd53e6e459b274d6e85435d5246918870f40e --- /dev/null +++ b/Trigger/TrigValidation/TrigInDetValidation/test/test_trigID_mu_zmumu_pu40_short.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python + +# art-description: art job for mu_Zmumu_pu40 +# art-type: grid +# art-include: master/Athena +# art-input: mc15_13TeV.361107.PowhegPythia8EvtGen_AZNLOCTEQ6L1_Zmumu.recon.RDO.e3601_s2576_s2132_r7143 +# art-input-nfiles: 4 +# art-athena-mt: 8 +# art-memory: 4096 +# art-html: https://idtrigger-val.web.cern.ch/idtrigger-val/TIDAWeb/TIDAart/?jobdir= +# 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 + + +Slices = ['muon'] +RunEF = True +Events = 2000 +Threads = 8 +Slots = 8 +Input = 'Zmumu_pu40' # defined in TrigValTools/share/TrigValInputs.json +GridFiles=True + +Args = " -p 13 " +TrackReference = [ 'Truth', 'Offline' ] +Lowpt = [ False, True ] + +from AthenaCommon.Include import include +include("TrigInDetValidation/TrigInDetValidation_Base.py") + + + diff --git a/Trigger/TrigValidation/TrigValTools/share/TrigValInputs.json b/Trigger/TrigValidation/TrigValTools/share/TrigValInputs.json index 052c31a0e3690490b53b053a4731ae152d9bd839..883713657388b21389002c470e4b40fcb744700d 100644 --- a/Trigger/TrigValidation/TrigValTools/share/TrigValInputs.json +++ b/Trigger/TrigValidation/TrigValTools/share/TrigValInputs.json @@ -56,6 +56,20 @@ "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TriggerTest/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.merge.RDO.e4993_s3214_r11315/RDO.17533168._000002.pool.root.1" ] }, + "ttbar_ID": { + "source": "mc", + "format": "RDO", + "paths": [ + "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigInDetValidation/samples/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.digit.RDO.e4993_s3214_d1581/RDO.22537845._000016.pool.root.1", + "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigInDetValidation/samples/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.digit.RDO.e4993_s3214_d1581/RDO.22537845._000054.pool.root.1", + "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigInDetValidation/samples/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.digit.RDO.e4993_s3214_d1581/RDO.22537845._000059.pool.root.1", + "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigInDetValidation/samples/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.digit.RDO.e4993_s3214_d1581/RDO.22537845._000072.pool.root.1", + "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigInDetValidation/samples/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.digit.RDO.e4993_s3214_d1581/RDO.22537845._000087.pool.root.1", + "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigInDetValidation/samples/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.digit.RDO.e4993_s3214_d1581/RDO.22537845._000114.pool.root.1", + "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigInDetValidation/samples/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.digit.RDO.e4993_s3214_d1581/RDO.22537845._000135.pool.root.1", + "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigInDetValidation/samples/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.digit.RDO.e4993_s3214_d1581/RDO.22537845._000145.pool.root.1" + ] + }, "ttbar_pu80": { "source": "mc", "format": "RDO",