From b06f4fca6622dad8d056150e5c8ea913828e0a07 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <frank.winklmeier@cern.ch> Date: Wed, 13 Mar 2019 16:20:19 +0100 Subject: [PATCH] TriggerTest: Remove obsolete files Delete obsolete files that were related to trigtest.pl, RTT and some very old code to programmatically create test job options. --- .../TrigValidation/TriggerTest/CMakeLists.txt | 5 +- .../TriggerTest/Testing/TriggerTest.conf | 452 ------------------ .../Testing/compareXMLvsDBconfig.sh | 98 ---- .../TriggerTest/Testing/faketest.pl | 55 --- .../CheckForHLTChainAllZero_TriggerTest.py | 16 - .../CheckForHLTTEAllZero_TriggerTest.py | 16 - .../python/CheckForL1AllZero_TriggerTest.py | 16 - .../CheckForTrigCostD3PD_TriggerTest.py | 16 - .../python/CheckLog_TriggerTest.py | 16 - .../python/CreateIgprofReport_TriggerTest.py | 16 - .../TriggerTest/python/LogTail_TriggerTest.py | 16 - .../python/RttScriptRunner_TriggerTest.py | 91 ---- .../TriggerTest/python/TrigValConfigBlock.py | 38 -- .../python/TrigValDetectorBlock.py | 81 ---- .../python/TrigValExecutableBlock.py | 106 ---- .../TriggerTest/python/TrigValInputBlock.py | 90 ---- .../python/TrigValJobOptionBlock.py | 70 --- .../python/TrigValJobOptionBuilder.py | 202 -------- .../TriggerTest/python/TrigValMakeTestConf.py | 91 ---- .../TriggerTest/python/TrigValMenuBlock.py | 57 --- .../TriggerTest/python/TrigValOutputBlock.py | 172 ------- .../TriggerTest/python/TrigValPrintRegtest.py | 65 --- .../TriggerTest/python/TrigValRegtestFile.py | 19 - .../python/TrigValRegtestLibrary.py | 151 ------ .../TriggerTest/python/TrigValSliceBlock.py | 296 ------------ .../python/TrigValSpecialFlagsBlock.py | 74 --- .../python/TrigValTemporaryFixBlock.py | 41 -- .../python/TrigValValidationBlock.py | 33 -- .../python/TruncateLog_TriggerTest.py | 16 - .../python/ValGrindPostScript_TriggerTest.py | 19 - .../ValgrindAnalysisScript_TriggerTest.py | 50 -- .../TriggerTest/python/__init__.py | 3 - .../python/trigValMakeJobOptions.py | 174 ------- .../TriggerTest/python/trigValMakeTests.py | 282 ----------- 34 files changed, 2 insertions(+), 2941 deletions(-) delete mode 100644 Trigger/TrigValidation/TriggerTest/Testing/TriggerTest.conf delete mode 100755 Trigger/TrigValidation/TriggerTest/Testing/compareXMLvsDBconfig.sh delete mode 100755 Trigger/TrigValidation/TriggerTest/Testing/faketest.pl delete mode 100755 Trigger/TrigValidation/TriggerTest/python/CheckForHLTChainAllZero_TriggerTest.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/CheckForHLTTEAllZero_TriggerTest.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/CheckForL1AllZero_TriggerTest.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/CheckForTrigCostD3PD_TriggerTest.py delete mode 100644 Trigger/TrigValidation/TriggerTest/python/CheckLog_TriggerTest.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/CreateIgprofReport_TriggerTest.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/LogTail_TriggerTest.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/RttScriptRunner_TriggerTest.py delete mode 100644 Trigger/TrigValidation/TriggerTest/python/TrigValConfigBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValDetectorBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValExecutableBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValInputBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValJobOptionBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValJobOptionBuilder.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValMakeTestConf.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValMenuBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValOutputBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValPrintRegtest.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValRegtestFile.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValRegtestLibrary.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValSliceBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValSpecialFlagsBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValTemporaryFixBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TrigValValidationBlock.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/TruncateLog_TriggerTest.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/ValGrindPostScript_TriggerTest.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/ValgrindAnalysisScript_TriggerTest.py delete mode 100644 Trigger/TrigValidation/TriggerTest/python/__init__.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/trigValMakeJobOptions.py delete mode 100755 Trigger/TrigValidation/TriggerTest/python/trigValMakeTests.py diff --git a/Trigger/TrigValidation/TriggerTest/CMakeLists.txt b/Trigger/TrigValidation/TriggerTest/CMakeLists.txt index 4e6aee869bc..a1fc922d3ed 100644 --- a/Trigger/TrigValidation/TriggerTest/CMakeLists.txt +++ b/Trigger/TrigValidation/TriggerTest/CMakeLists.txt @@ -10,8 +10,7 @@ atlas_depends_on_subdirs( PUBLIC TestPolicy ) # Install files from the package: -atlas_install_python_modules( python/__init__.py ) atlas_install_joboptions( share/*.py ) -atlas_install_runtime( python/RttScriptRunner_TriggerTest.py share/*.cxx python/CheckLog_TriggerTest.py python/LogTail_TriggerTest.py python/CheckForTrigCostD3PD_TriggerTest.py python/CheckForHLTChainAllZero_TriggerTest.py python/CheckForHLTTEAllZero_TriggerTest.py python/CheckForL1AllZero_TriggerTest.py python/CreateIgprofReport_TriggerTest.py python/TruncateLog_TriggerTest.py python/ValGrindPostScript_TriggerTest.py python/ValgrindAnalysisScript_TriggerTest.py Testing/*.conf ) -atlas_install_scripts( Testing/*.sh Testing/*.pl test/exec*.sh test/test*sh ) +atlas_install_runtime( share/*.cxx Testing/*.conf ) +atlas_install_scripts( test/exec*.sh test/test*.sh ) diff --git a/Trigger/TrigValidation/TriggerTest/Testing/TriggerTest.conf b/Trigger/TrigValidation/TriggerTest/Testing/TriggerTest.conf deleted file mode 100644 index c30834d027c..00000000000 --- a/Trigger/TrigValidation/TriggerTest/Testing/TriggerTest.conf +++ /dev/null @@ -1,452 +0,0 @@ -# Configuration file for regression tests based on algorithm output -# - "test" keyword marks the start of a new test configuration -# must be followed by an identifier that is unique in this file -# - test names must also be unique; tests can be refered to by name or number -# - indentation is optional but is recommended for clarity -# - white space is ignored -# - key words, on the left, must be lower case, -# and exactly match to one of the known keywords -# - usually, any characters are valid for values, except white space -# - white space is a separater when multiple values are needed -# - except for regtest, if key words are repeated, the last one will override -# the others -# - multiple regtest can be specified -# See example and documentation at end for more details -# tests for trigger QA and nightly builds -# see other conf files for more tests - - -################################################################################################################################################### -#1 #Standalone and co block ~1h -#test 1-10 moved to P1Test - -################################################################################################################################################### -#2 #Full Menu jobs (as these run forever MC 25mins actually - so try running these 3 in parallel please) - -test 20 - name AthenaTrigRDO_MC_pp_v6 - doc MC_pp_v6 - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'from TriggerJobOpts.TriggerFlags import TriggerFlags as TF;TF.run2Config.set_Value_and_Lock("2016"); menu="MC_pp_v6" ; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(5); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"] ' - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaRDO_MC_pp_v6.TrigChainMoniValidation.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_MC_pp_v6.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_MC_pp_v6.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 21 - name AthenaTrigRDO_Physics_pp_v7 - doc Physics_pp_v7 - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'RunningRTT=TRUE ; menu="Physics_pp_v7" ; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(5); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"] ' - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaRDO_Physics_pp_v7.TrigChainMoniValidation.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_Physics_pp_v7.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_Physics_pp_v7.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 22 - name AthenaTrigRDO_Physics_HI_v3 - doc Physics_HI_v3 - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(5);menu="Physics_HI_v3"; jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/mc15_5TeV.420000.Hijing_PbPb_5p02TeV_MinBias_Flow_JJFV6.recon.RDO.e3754_s2633_r7161/RDO.06677682._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaRDO_Physics_HI_v3.TrigChainMoniValidation.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_Physics_HI_v3.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_Physics_HI_v3.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 23 - name AthenaTrigRDO_Physics_HI_v4 - doc Physics_HI_v4 on ttbar - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(5);menu="Physics_HI_v4"; jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaRDO_Physics_HI_v4.TrigChainMoniValidation.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_Physics_HI_v4.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_Physics_HI_v4.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 24 - name AthenaTrigRDO_MC_HI_v4 - doc AthenaTrigRDO_MC_HI_v4 on ttbar - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(5);menu="MC_HI_v4"; jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaRDO_MC_HI_v4.TrigChainMoniValidation.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_MC_HI_v4.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_MC_HI_v4.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 25 - name AthenaTrigRDO_MC_pp_v6_no_prescale_toxAOD_FTK - doc FTK_MC_pp_v6_no_prescale - joboptions testCommonSliceAthenaTrigRDOtoAOD.py - athena_args -c 'from TriggerJobOpts.TriggerFlags import TriggerFlags as TF;TF.run2Config.set_Value_and_Lock("2016"); enableCostMonitoring=True;RunningRTT=True;menu="MC_pp_v6_no_prescale";jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(3);jp.Rec.OutputLevel=WARNING;LVL1OutputLevel=WARNING;HLTOutputLevel=WARNING;jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/RDO_FTK.10733709._000019.pool.root.1"];from TriggerJobOpts.TriggerFlags import TriggerFlags;TriggerFlags.doFTK=True;from RecExConfig.RecFlags import rec;rec.doFTK.set_Value_and_Lock(True)' - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_FTK_MC_pp_v6_no_prescale.TrigChainMoniValidation.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_FTK_MC_pp_v6_no_prescale.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_FTK_MC_pp_v6_no_prescale.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 26 - name AthenaTrigRDO_MC_pp_v7 - doc MC_pp_v7 - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'menu="MC_pp_v7" ; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(5); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"] ' - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaRDO_MC_pp_v7.TrigChainMoniValidation.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_MC_pp_v7.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_MC_pp_v7.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - extra_failure_codes ATHENA_ERROR_IN_LOG - -test 27 - name AthenaTrigRDO_MC_pp_v7_no_prescale_toxAOD_FTK - doc FTK_MC_pp_v7_no_prescale - joboptions testCommonSliceAthenaTrigRDOtoAOD.py - athena_args -c "enableCostMonitoring=True;RunningRTT=True;menu='MC_pp_v7_no_prescale';jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(3);jp.Rec.OutputLevel=WARNING;LVL1OutputLevel=WARNING;HLTOutputLevel=WARNING;jp.AthenaCommonFlags.FilesInput=['root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/RDO_FTK.10733709._000019.pool.root.1'];from TriggerJobOpts.TriggerFlags import TriggerFlags;TriggerFlags.doFTK=True;from RecExConfig.RecFlags import rec;rec.doFTK.set_Value_and_Lock(True)" - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_FTK_MC_pp_v7_no_prescale.TrigChainMoniValidation.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_FTK_MC_pp_v7_no_prescale.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_FTK_MC_pp_v7_no_prescale.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - - -################################################################################################################################################### -#currently NOT needed anymore -#3 #create a new pseudo-test directory (ALWAYS called AthenaTrigRDO) a sym/soft link to one of the above - -test 30 - name link_AthenaTrigRDO_MC - doc run ln -s AthenaTrigRDO_MC_pp_v7 ../AthenaTrigRDO - athena_cmd echo "Not running athena" - pre_condition if [[ $(find ../AthenaTrigRDO_MC_pp_v7/expert-monitoring.root -type f -size +1000000c 2>/dev/null) ]] ; then test -e ../AthenaTrigRDO_MC_pp_v7/expert-monitoring.root ; else test -e non_existing_file ; fi - post_command ln -s AthenaTrigRDO_MC_pp_v7 ../AthenaTrigRDO - -test 31 - name link_AthenaTrigRDO_Physics - doc run ln -s AthenaTrigRDO_Physics_pp_v7 ../AthenaTrigRDO - athena_cmd echo "Not running athena" - pre_condition if [[ $(find ../AthenaTrigRDO_Physics_pp_v7/expert-monitoring.root -type f -size +1000000c 2>/dev/null) ]] ; then test -e ../AthenaTrigRDO_Physics_pp_v7/expert-monitoring.root ; else test -e non_existing_file ; fi - post_command ln -s AthenaTrigRDO_Physics_pp_v7 ../AthenaTrigRDO - -################################################################################################################################################### -#4 #the below tests run AthenaTrigRDO with splc. additions - running in OPT builds only! - -test 40 - name AthenaTrigRDO_leakcheck - doc --leak-check-execute, otherwise standare, REGTEST wrt AthenaTrigRDO - joboptions testCommonSliceAthenaTrigRDO.py - #this export of the LD_PRELOAD path somehow aint working in the perl-script so do it in the xml setup file now - athena_args --stdcmalloc --leak-check-execute -c 'checkLeak="True";jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(3);include("TriggerTest/TriggerTestSilence.py")' - checklog --config checklogTriggerTest.conf --showexcludestats -# regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST ../AthenaTrigRDO/triggertest_AthenaTrigRDO.TrigChainMoniValidation.reference -# rootcomp /afs/cern.ch/atlas/project/trigger ../AthenaTrigRDO/expert-monitoring.root -# checkcount ../AthenaTrigRDO/expert-monitoring.root 0 - pre_command RecExCommon_links.sh - -test 41 - name AthenaTrigRDO_StatusCodes - doc standard trigger job, will crash on status codes - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'StatusCodeSvc.AbortOnError=True' - checklog --config checklogTriggerTest.conf --showexcludestats - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 42 - name AthenaTrigRDO_noFPE - doc standard trigger job no Floating Point Exceptions - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'jp.Rec.doFloatingPointException=True;AbortOnError=True' - checklog --config checklogTriggerTest.conf --showexcludestats - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -################################################################################################################################################### -#5 #compare chain-order up and down - choose Phys or MC in the CONF - -test 50 - name AthenaTrigRDO_chainOrderAscend - doc changes order of chains, based on AthenaTrigRDO - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'chainOrderOption=-1' - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaRDO_chainOrderAscend.TrigChainMoniValidation.reference - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 51 - name AthenaTrigRDO_chainOrderDescend - doc changes order of chains based on AthenaTrigRDO - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'chainOrderOption=1' - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaRDO_chainOrderDescend.TrigChainMoniValidation.reference - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 52 - name AthenaTrigRDO_chainOrder_compare - doc compare result of chainOrderAscend/Descend tests - athena_cmd echo "Not running athena" - pre_condition if [[ $(find ../AthenaTrigRDO_chainOrderAscend/expert-monitoring.root -type f -size +1000000c 2>/dev/null) ]] ; then test -e ../AthenaTrigRDO_chainOrderAscend/expert-monitoring.root ; else test -e non_existing_file ; fi - pre_condition if [[ $(find ../AthenaTrigRDO_chainOrderDescend/expert-monitoring.root -type f -size +1000000c 2>/dev/null) ]] ; then test -e ../AthenaTrigRDO_chainOrderDescend/expert-monitoring.root ; else test -e non_existing_file ; fi - post_command ln -s ../AthenaTrigRDO_chainOrderDescend/expert-monitoring.root - checkcount ../AthenaTrigRDO_chainOrderAscend/expert-monitoring.root 0 BOTH - rootcomp ../AthenaTrigRDO_chainOrderAscend/expert-monitoring.root ../AthenaTrigRDO_chainOrderDescend/expert-monitoring.root - extra_failure_codes CHECKCOUNTS_FAILED - -################################################################################################################################################### -#6+ (->8)#Signature/Slice tests - dont depend on anything really - so could in priciple run all by themselves: -#6) MC_Menu (each of the 2 blocks runs ~1h) & 7)special setups: - -################################################################################################################################################### -#6 #MC_Menu - -test 60 - name BjetSliceAthenaTrigRDO - doc Bjet slice on top - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'menu="MC_pp_v7_TriggerValidation_mc_prescale"; sliceName="bjet" ; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(10); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"] ' - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_BjetSliceAthenaTrigRDO.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_BjetSliceAthenaTrigRDO.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_BjetSliceAthenaTrigRDO.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 61 - name BphysicsSliceAthenaTrigRDO - doc Bphysics on top - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'menu="MC_pp_v7_TriggerValidation_mc_prescale"; sliceName="bphysics"; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(10); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_BphysicsSliceAthenaTrigRDO.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_BphysicsSliceAthenaTrigRDO.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_BphysicsSliceAthenaTrigRDO.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 62 - name ElectronSliceAthenaTrigRDO - doc runs electron slice only on top - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'menu="MC_pp_v7_TriggerValidation_mc_prescale"; sliceName="egamma" ; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(10); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_ElectronSliceAthenaTrigRDO.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_ElectronSliceAthenaTrigRDO.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_ElectronSliceAthenaTrigRDO.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 63 - name JetSliceAthenaTrigRDO - doc Jet slice on top - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'menu="MC_pp_v7_TriggerValidation_mc_prescale"; sliceName="jet" ; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(10); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_JetSliceAthenaTrigRDO.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_JetSliceAthenaTrigRDO.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_JetSliceAthenaTrigRDO.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 64 - name METSliceAthenaTrigRDO - doc MET slice on top - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'menu="MC_pp_v7_TriggerValidation_mc_prescale"; sliceName="met" ; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(10); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_METSliceAthenaTrigRDO.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_METSliceAthenaTrigRDO.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_METSliceAthenaTrigRDO.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 65 - name MinBiasSliceAthenaTrigRDO - doc minbias slice, does not use top events - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(100) ; menu="Physics_pp_v7"; sliceName="minbias" ; LVL1OutputLevel=DEBUG ; jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/mc15_13TeV.361203.Pythia8_A2_MSTW2008LO_ND_minbias.recon.RDO.e3639_s2606_s2174_r7661_tid07858100_00/RDO.07858100._000087.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_MinBiasSliceAthenaTrigRDO.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_MinBiasSliceAthenaTrigRDO.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_MinBiasSliceAthenaTrigRDO.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 66 - name MuonSliceAthenaTrigRDO - doc muon on top - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'menu="MC_pp_v7_TriggerValidation_mc_prescale"; sliceName="muon"; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(10); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_MuonSliceAthenaTrigRDO.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_MuonSliceAthenaTrigRDO.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_MuonSliceAthenaTrigRDO.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 67 - name TauSliceAthenaTrigRDO - doc Tau on top - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'menu="MC_pp_v7_TriggerValidation_mc_prescale"; sliceName="tau" ; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(10); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_TauSliceAthenaTrigRDO.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_TauSliceAthenaTrigRDO.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_TauSliceAthenaTrigRDO.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -################################################################################################################################################### -#7 #special setups - -test 70 - name MinBiasSliceAthenaTrigRDO_Enhanced - doc MinBias triggers configured by hand on top - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'sliceName="minbiasEnhanced"; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(5) ; jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' -# athena_args -c 'sliceName="minbiasEnhanced"; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(5) ; LVL1OutputLevel=DEBUG ; jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_MinBiasSliceAthenaTrigRDO_Enhanced.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_MinBiasSliceAthenaTrigRDO_Enhanced.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_MinBiasSliceAthenaTrigRDO_Enhanced.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 71 - name AthenaTrigRDO_LVL1CTP - doc Level1 LVL1CTP - joboptions testLVL1CTPAthenaTrigRDO.py - athena_args -c 'jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(10); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"]' - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_LVL1CTP.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_LVL1CTPAthenaTrigRDO.root - pre_command RecExCommon_links.sh - -test 72 - name AthenaTrigRDO_ID - doc runs ID - joboptions testIDAthenaTrigRDO.py - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_ID.reference - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -test 73 - name AthenaTrigRDO_IDpreRTTtest - doc checks ID RTT jo - joboptions testIDAthenaTrigRDO_preRTTtest.py - checklog --config checklogTriggerTest.conf --showexcludestats - fullregtest REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_IDpreRTTtest.reference - pre_command RecExCommon_links.sh - -################################################################################################################################################### -#special requests / tests - -test 201 - name AthenaTrigRDO_MC_pp_v5 - doc MC_pp_v5 - joboptions testCommonSliceAthenaTrigRDO.py - athena_args -c 'menu="MC_pp_v5" ; jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(5); jp.AthenaCommonFlags.FilesInput=["root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.recon.RDO.e3099_s2578_r7572_tid07644622_00/RDO.07644622._000001.pool.root.1"] ' - checklog --config checklogTriggerTest.conf --showexcludestats - regtest TrigSteer_HLT.TrigChainMoniValidation REGTEST /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaRDO_MC_pp_v5.TrigChainMoniValidation.reference - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_MC_pp_v5.root - checkcount /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/postrel20/latest/triggertest_AthenaTrigRDO_MC_pp_v5.root 1 - pre_command RecExCommon_links.sh - post_command chainDump.py -n -S - -# THE END for now .... - - -# Example/documentation -test 0 # must have a unique id - - # name must also be unique, and should be meaningful - # if not specified, will default to test_<id> - name demo_only - - # comment this out to enable the test - disable - - # Input data file for the job - # This is optional - you can omit it and provide a data file by hand - # Will be linked to ZEBRA.P in the run directory by default, - # otherwise specify name of link as second argument, separated by a space - # An attempt will be made to expand environment variables of the form ${ENV} - # in the name of the data file, from those in the shell from which you call - # the test script and those set by cmt setup. - datafile /afs/cern.ch/atlas/offline/data/testfile/dc1.001003.simul.redig.00001.test.h130_2e2mu_extract.zebra - # another example, using environment variable - #datafile ${ATLASTESTDATA}/dc1.001003.simul.redig.00001.test.h130_2e2mu_extract.zebra - # another example, with a non-default link name: - # datafile /afs/cern.ch/atlas/offline/data/testfile/some_bytestream_file RawEvent.re - - # name of joboptions file - NB it is mandatory to specify this - # named file will be copied with get_files and modified - joboptions testIDtransBS_Flags.py - - # run the checklog script on the log file produced by this job - checklog - # optional checklog arguments can be given, e.g. to specify alternative - # config file for 'excludes' list, to add the option to print table of - # exclusion counts, etc. - # unusually, spaces are retained as part of the options up to end of line - # checklog --config ../Testing/check_log_idexcludes.conf --showexcludestats - - # regtest specifies an algorithm name, a pattern that log lines from - #this algorithm will be matched to, and the name of a reference file to - #compare these lines with: - regtest IdScan_IdScanMain_1_L2 REGTEST idscan.reference - # you can specify multiple regtest lines, all will be checked - # reference files are assumed to be in the directory ../reference/ - - # fullregtest is like regtest but it - # applies to the whole job, not just one algorithm. The arguments - # specify a pattern that log lines from the full log will be matched to, - # and the name of a reference file to compare these lines with: - fullregtest REGTEST full.reference - # reference files are assumed to be in the directory ../reference/ - # it only makes sense once per event for a given pattern. - - # rootcomp - # runs the rootcomp.py script on the expert-monitoring.root file and - # the reference file given as an argument - # https://twiki.cern.ch/twiki/bin/view/Atlas/TrigValTools#rootcomp_py - rootcomp /afs/cern.ch/atlas/project/trigger/pesa-sw/validation/references/ATN/latest/atn_102.root - - # pre_command is used to specify a command that must be run before athena - # unusually, spaces are retained as part of the command up to end of line - # e.g. remove a file, stage a file - # can give multiple shell commands by using ; between them - # can give multiple pre_command lines - pre_command test -f RawEvent.re && rm -f RawEvent.re - pre_command RecExCommon_links.sh - - # post_command is used to specify a command that must be run after athena - # it will be run from the run directory in which the job was run - # and $packagedir can be used to indicate the top dir of the package. - # unusually, spaces are retained as part of the command up to end of line - # e.g. remove a file, stage a file - # can give multiple shell commands by using ; between them - # can give multiple post_command lines - post_command $packagedir/Testing/vmem.sh - - # override default athena command, athena.py -bs - # unusually, spaces are retained as part of the command up to end of line - athena_cmd athenaMT - - # add extra athena options, will be included in athena.py command line - # unusually, spaces are retained as part of the command up to end of line - athena_args -c onlyMuon=True diff --git a/Trigger/TrigValidation/TriggerTest/Testing/compareXMLvsDBconfig.sh b/Trigger/TrigValidation/TriggerTest/Testing/compareXMLvsDBconfig.sh deleted file mode 100755 index 2072c88cc00..00000000000 --- a/Trigger/TrigValidation/TriggerTest/Testing/compareXMLvsDBconfig.sh +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/sh -# -# Compare output of tests starting from XML and DB trigger configuration -# -# mimick timer.log created by trigtest.pl to simply show the date -starttimer=`date +%s` - -# leave record of current directory in test results and create working directory -echo "List of current directory" -ls -l -echo "Moving to AthenaXMLvsDBcompare" -#mkdir AthenaXMLvsDBcompare -#cd AthenaXMLvsDBcompare -pwd -date - -# search for the right output: important to sort lines -LogFileXML=../AthenaXMLConfigRDO/testAthenaXMLConfigRDO_test.log -if [ -e $LogFileXML ]; then - menuXML=`grep 'INFO Menu name:' $LogFileXML | awk '{print $NF}'` - echo XML menu: $menuXML - echo "Checking ${LogFileXML} for CTPSimulation and TrigChainMoniValidation" - rm -rf REGTEST.XML.txt - grep "CTPSimulation" ${LogFileXML} | grep "REGTEST - |" | sort > REGTEST.XML.txt - grep "TrigChainMoniValidation INFO REGTEST" ${LogFileXML} | sort >> REGTEST.XML.txt -else - echo "${LogFileXML} not found " - printf "ATHENA_BAD_EXIT (8)\nATHENA_NO_LOG (16)\nATHENA_ERROR_IN_LOG (32)\nATHENA_REGTEST_FAILED (64)\n exitcode = 120\n maskedcode = 8\n" > summary.log - (( timer=`date +%s` - $starttimer )); printf "$timer $starttimer `date +%s`" > timer.log - exit 0 -fi - -LogFileDB=../AthenaDBConfigRDO/testAthenaDBConfigRDO_test.log -if [ -e ${LogFileDB} ]; then - menuDB=`grep 'INFO Menu name:' $LogFileDB | awk '{print $NF}'` - echo DB menu: $menuDB - echo "Checking ${LogFileDB} for CTPSimulation and TrigChainMoniValidation" - rm -rf REGTEST.DB.txt - grep "CTPSimulation" ${LogFileDB} | grep "REGTEST - |" | sort > REGTEST.DB.txt - grep "TrigChainMoniValidation INFO REGTEST" ${LogFileDB} | sort >> REGTEST.DB.txt -else - echo "${LogFileDB} not found" - printf "ATHENA_BAD_EXIT (8)\nATHENA_NO_LOG (16)\nATHENA_ERROR_IN_LOG (32)\nATHENA_REGTEST_FAILED (64)\n exitcode = 120\n maskedcode = 8\n" > summary.log - (( timer=`date +%s` - $starttimer )); printf "$timer $starttimer `date +%s`" > timer.log - exit 0 -fi -echo "Good start: logfiles have been found." - -# check same menus used -if [ "$menuDB" != "$menuXML" ]; then - echo "ERROR Menu mismatch: DB $menuDB != XML $menuXML; please fix the test!" - printf "ATHENA_BAD_EXIT (8)\nATHENA_ERROR_IN_LOG (32)\nATHENA_REGTEST_FAILED (64)\n exitcode = 120\n maskedcode = 40\n" > summary.log - (( timer=`date +%s` - $starttimer )); printf "$timer $starttimer `date +%s`" > timer.log - exit 0 -fi - -# test if REGTEST.XML/DB.log files are empty and search for differences in log -rm -rf checklog.log -if [ -s REGTEST.DB.txt -a -s REGTEST.XML.txt ]; then - diff REGTEST.DB.txt REGTEST.XML.txt > checklog.log -else - echo "At least one of the jobs (XML or DB reading) has not been completed! Exit." - printf "POST_COMMAND1_BAD_EXIT (2)\nATHENA_BAD_EXIT (8)\nATHENA_ERROR_IN_LOG (32)\nATHENA_REGTEST_FAILED (64)\n exitcode = 106\n maskedcode = 8\n" > summary.log - (( timer=`date +%s` - $starttimer )); printf "$timer $starttimer `date +%s`" > timer.log - exit 0 -fi -echo "Logfile diff successful." - -# count line differences and decide exit code -if [ -e checklog.log ]; then - nerrors=0 - while read line - do - (( nerrors += 1 )) - done < checklog.log -else - echo "checklog.log not found" - printf "POST_COMMAND1_BAD_EXIT (2)\nATHENA_ERROR_IN_LOG (32)\nATHENA_REGTEST_FAILED (64)\n exitcode = 98\n maskedcode = 2\n" > summary.log - (( timer=`date +%s` - $starttimer )); printf "$timer $starttimer `date +%s`" > timer.log - exit 0 -fi -echo "Found $nerrors configuration differences between DB and XML jobs." - -# return error code if differences found -if [ $nerrors != 0 ]; then - echo "$nerrors differences found in XML and DB trigger configuration tests" - printf "ATHENA_ERROR_IN_LOG (32)\nATHENA_REGTEST_FAILED (64)\n exitcode = 96\n maskedcode = 32\n" > summary.log - cat checklog.log - (( timer=`date +%s` - $starttimer )); printf "$timer $starttimer `date +%s`" > timer.log - exit 0 -else - # otherwise return exit code 0 - echo "No differences found in XML and DB trigger configuration tests" - printf " exitcode = 0\n maskedcode = 0\n" > summary.log - (( timer=`date +%s` - $starttimer )); printf "$timer $starttimer `date +%s`" > timer.log - exit 0 -fi - diff --git a/Trigger/TrigValidation/TriggerTest/Testing/faketest.pl b/Trigger/TrigValidation/TriggerTest/Testing/faketest.pl deleted file mode 100755 index faf533dc5bd..00000000000 --- a/Trigger/TrigValidation/TriggerTest/Testing/faketest.pl +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/perl -w -# these lines must match trigtest.pl: -$summaryout = "summary.log"; -%ERROR = ( - OK => 0, - SCRIPT_MISC => 1, - POST_COMMAND1_BAD_EXIT => 2, - ROOTCOMP_MISMATCH => 4, - ATHENA_BAD_EXIT => 8, - ATHENA_NO_LOG => 16, - ATHENA_ERROR_IN_LOG => 32, - ATHENA_REGTEST_FAILED => 64, - ATN_TIME_LIMIT => 128 - ); -sub main(); -main(); -exit; - -sub process_error_codes(@) { - my (@error_strings) = @_; - my $exitcode=0; - # | sort | uniq - my %saw; - undef %saw; - @saw{@error_strings} = (); - my @error_strings_uniq = sort keys %saw; - print "$prog: debug: all statuscodes: @error_strings\n" if ($debug); - print "$prog: debug: uniq statuscodes: @error_strings_uniq\n" if ($debug); - # convert strings, keep numbers as they are, add together - print "=== These errors occured: "; - open SUMMARY, ">$summaryout"; - for (@error_strings_uniq){ - my $code; - if (/^\d+$/){ - # it's already a number - $code = $_; - } else { - # translate string - $code = $ERROR{$_}; - } - $exitcode += $code; - if ($code != 0){ # print all except ok. - print "$_ ($code) "; - print SUMMARY "$_ ($code)\n"; - } - } - print " exitcode = $exitcode\n"; - print SUMMARY " exitcode = $exitcode\n"; - close SUMMARY; - return $exitcode; -} -sub main(){ - my @errors = qw(ATHENA_ERROR_IN_LOG); - process_error_codes(@errors); -} diff --git a/Trigger/TrigValidation/TriggerTest/python/CheckForHLTChainAllZero_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/CheckForHLTChainAllZero_TriggerTest.py deleted file mode 100755 index 3f9d47e1519..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/CheckForHLTChainAllZero_TriggerTest.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# Simple wrapper for specific RttScriptRunner instances -# This is done to get "pretty" names on the RTT web pages - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import sys, os -sys.path.append(os.path.dirname(sys.modules[__name__].__file__)) - -from RttScriptRunner_TriggerTest import RttScriptRunner_TriggerTest - -class CheckForHLTChainAllZero_TriggerTest(RttScriptRunner_TriggerTest): - pass - diff --git a/Trigger/TrigValidation/TriggerTest/python/CheckForHLTTEAllZero_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/CheckForHLTTEAllZero_TriggerTest.py deleted file mode 100755 index fb9f6d9b467..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/CheckForHLTTEAllZero_TriggerTest.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# Simple wrapper for specific RttScriptRunner instances -# This is done to get "pretty" names on the RTT web pages - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import sys, os -sys.path.append(os.path.dirname(sys.modules[__name__].__file__)) - -from RttScriptRunner_TriggerTest import RttScriptRunner_TriggerTest - -class CheckForHLTTEAllZero_TriggerTest(RttScriptRunner_TriggerTest): - pass - diff --git a/Trigger/TrigValidation/TriggerTest/python/CheckForL1AllZero_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/CheckForL1AllZero_TriggerTest.py deleted file mode 100755 index 2c0e91d80c5..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/CheckForL1AllZero_TriggerTest.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# Simple wrapper for specific RttScriptRunner instances -# This is done to get "pretty" names on the RTT web pages - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import sys, os -sys.path.append(os.path.dirname(sys.modules[__name__].__file__)) - -from RttScriptRunner_TriggerTest import RttScriptRunner_TriggerTest - -class CheckForL1AllZero_TriggerTest(RttScriptRunner_TriggerTest): - pass - diff --git a/Trigger/TrigValidation/TriggerTest/python/CheckForTrigCostD3PD_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/CheckForTrigCostD3PD_TriggerTest.py deleted file mode 100755 index 709fd171b2a..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/CheckForTrigCostD3PD_TriggerTest.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# Simple wrapper for specific RttScriptRunner instances -# This is done to get "pretty" names on the RTT web pages - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import sys, os -sys.path.append(os.path.dirname(sys.modules[__name__].__file__)) - -from RttScriptRunner_TriggerTest import RttScriptRunner_TriggerTest - -class CheckForTrigCostD3PD_TriggerTest(RttScriptRunner_TriggerTest): - pass - diff --git a/Trigger/TrigValidation/TriggerTest/python/CheckLog_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/CheckLog_TriggerTest.py deleted file mode 100644 index 9f1240c26ff..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/CheckLog_TriggerTest.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# Simple wrapper for specific RttScriptRunner instances -# This is done to get "pretty" names on the RTT web pages - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import sys, os -sys.path.append(os.path.dirname(sys.modules[__name__].__file__)) - -from RttScriptRunner_TriggerTest import RttScriptRunner_TriggerTest - -class CheckLog_TriggerTest(RttScriptRunner_TriggerTest): - pass - diff --git a/Trigger/TrigValidation/TriggerTest/python/CreateIgprofReport_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/CreateIgprofReport_TriggerTest.py deleted file mode 100755 index b78a0e40a0e..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/CreateIgprofReport_TriggerTest.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# Simple wrapper for specific RttScriptRunner instances -# This is done to get "pretty" names on the RTT web pages - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import sys, os -sys.path.append(os.path.dirname(sys.modules[__name__].__file__)) - -from RttScriptRunner_TriggerTest import RttScriptRunner_TriggerTest - -class CreateIgprofReport_TriggerTest(RttScriptRunner_TriggerTest): - pass - diff --git a/Trigger/TrigValidation/TriggerTest/python/LogTail_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/LogTail_TriggerTest.py deleted file mode 100755 index 4e1746baa30..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/LogTail_TriggerTest.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# Simple wrapper for specific RttScriptRunner instances -# This is done to get "pretty" names on the RTT web pages - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import sys, os -sys.path.append(os.path.dirname(sys.modules[__name__].__file__)) - -from RttScriptRunner_TriggerTest import RttScriptRunner_TriggerTest - -class LogTail_TriggerTest(RttScriptRunner_TriggerTest): - pass - diff --git a/Trigger/TrigValidation/TriggerTest/python/RttScriptRunner_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/RttScriptRunner_TriggerTest.py deleted file mode 100755 index dff9860885c..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/RttScriptRunner_TriggerTest.py +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# @file: RttScriptRunner.py -# @purpose: Run any command in RTT post-processing -# @author: Frank Winklmeier (fwinkl) -# $Id: RttScriptRunner_TriggerTest.py,v 1.3 2008-08-22 11:35:28 fwinkl Exp $ - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import sys -import os - -class RttScriptRunner_TriggerTest: - """ - Class to run any command within the RTT post-processing - 'command': command to run (including any arguments) - %TESTNAME is replaced with the jobDisplayName (or test name if not set) - %JOBLOG is replaced with the RTT job log file - %BRANCH is replaces with the release branch - $<ENVVAR> is replaced with the environment variable (if exists) - - 'logfile': log file, if not given write to RTT logger - """ - - def __init__(self, paramDict={}): - - from Logger import Logger - - self.success = 0 - self.error = -1 - self.logger = Logger() - - self.command = paramDict.get('command', None) - self.logfile = paramDict.get('logfile', "test."+self.__class__.__name__+".log") - - jDescriptor = paramDict.get('JobDescriptor',None) - if jDescriptor: - testname = jDescriptor.jobDisplayName - if testname=='': testname = jDescriptor.name - self.command = self.command.replace("%TESTNAME",testname) - self.command = self.command.replace("%JOBLOG",jDescriptor.log) - self.command = self.command.replace("%BRANCH",jDescriptor.paths.branch) - - for k,v in os.environ.iteritems(): - self.command = self.command.replace("$"+k,v) - - def run(self): - - if not self.command: - self.logger.error("'command' parameter not set") - return self.error - - self.logger.debug("ScriptRunner: Executing '%s'" % self.command) - - # Run command and get output - import subprocess as sp - proc = sp.Popen(self.command, shell=True, stdout=sp.PIPE, stderr=sp.STDOUT) - stdout = proc.communicate()[0] - - # Write output to log file or RTT logger - if self.logfile: - f = open(self.logfile,"w") - f.write(stdout) - f.close() - else: - for l in stdout.splitlines(True): self.logger.info(l.rstrip('\n')) - - if proc.returncode!=0: return self.error - else: return self.success - - -# This is just for testing outside of the RTT -if __name__ == "__main__": - - sys.path.append('/afs/cern.ch/atlas/project/RTT/prod/Tools/RunTimeTester/src') - sys.path.append('/afs/cern.ch/atlas/project/RTT/prod/Tools/RunTimeTester/share') - - params = {'command' : 'ls -l', - 'logfile': 'rttscript.log'} - - r = RttScriptRunner_TriggerTest(params) - status = r.run() - - for l in r.logger.debugL: print l, - for l in r.logger.infoL: print l, - for l in r.logger.warningL: print l, - for l in r.logger.errorL: print l, - - sys.exit(status) - diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValConfigBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValConfigBlock.py deleted file mode 100644 index 7ddafbac130..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValConfigBlock.py +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock - -# -# Block added temporarily to test new vs. old Python configuration -# -class TrigValConfigBlock(TrigValJobOptionBlock): - def __init__(self, current) : - TrigValJobOptionBlock.__init__(self, "Modern",['Modern','OldConfig']) - - self.name = "Modern" - if(current == "" ) : current = "Modern" - self.setCurrent(current) # this calls initializeBlocks() - - - def jobNameBlock(self) : - return self.current() - - def initializeBlocks(self) : - - if( self.current() == 'Modern' ) : - self.jobProperties += """ - -TriggerModernConfig=True - -""" - else : - self.jobProperties += """ - -TriggerModernConfig=False - -""" - - diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValDetectorBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValDetectorBlock.py deleted file mode 100755 index 87a36e97b19..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValDetectorBlock.py +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock - -class TrigValDetectorBlock(TrigValJobOptionBlock): - def __init__(self, current) : - TrigValJobOptionBlock.__init__(self, 'All', ['All','ID', 'Calo', 'Muon']) - - self.name = "Detector" - if( current == "" ) : current = "All" - self.setCurrent(current) # this calls initializeBlocks() - - - def jobNameBlock(self) : - if( self.current() == 'All' ) : - return "" - else: - return self.current() - - - def initializeBlocks(self) : - - #################### ID ############################### - if( self.current() == 'ID' ) : - self.jobFlags = """ -# switch OFF other detectors -DetFlags.Muon_setOff() -TriggerFlags.doMuon=False - -# has to allow Calo for now! -#DetFlags.Calo_setOff() -#TriggerFlags.doCalo=False - -#### for now include only electron and tau slice -TriggerFlags.Slices_all_setOff() - -TriggerFlags.EgammaSlice.setL2ID() -TriggerFlags.EgammaSlice.setEFID() -triggerMenu.disableAll() -triggerMenu.enableSignature("e10") -TriggerFlags.EgammaSlice.setFlag("doSiTrack",True) -TriggerFlags.EgammaSlice.setFlag("doTRTxK", False) - -TriggerFlags.TauSlice.setL2ID() -#TriggerFlags.TauSlice.setEFID() -triggerMenu.enableSignature("tau10") - -""" - #################### Calo ############################### - elif( self.current() == 'Calo' ) : - self.jobFlags = """ -# switch OFF other detectors -DetFlags.Muon_setOff() -DetFlags.ID_setOff() - -TriggerFlags.doMuon=False -TriggerFlags.doID=False - -TriggerFlags.TauSlice.unsetEF() -TriggerFlags.BphysicsSlice.unsetAll() -""" - - #################### Muon ############################### - elif( self.current() == 'Muon' ) : - self.jobFlags = """ -# switch OFF other detectors -DetFlags.ID_setOff() -DetFlags.Calo_setOff() - -TriggerFlags.doID=False -TriggerFlags.doCalo=False - - -TriggerFlags.BphysicsSlice.unsetAll() -TriggerFlags.MuonSlice.unsetEFID() - -""" - diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValExecutableBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValExecutableBlock.py deleted file mode 100755 index b0da8650813..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValExecutableBlock.py +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock - -class TrigValExecutableBlock(TrigValJobOptionBlock): - def __init__(self, current) : - TrigValJobOptionBlock.__init__(self, "Athena",['Athena','AthenaAllAlgsTrue','AthenaNoTrigger', #RecExCommon topO - 'AthenaL1Only','AthenaStandalone', 'AthenaMT','AthenaPT']) #Standalone topO - - self.name = "Executable" - if(current == "" ) : current = "Athena" - self.setCurrent(current) # this calls initializeBlocks() - - - def jobNameBlock(self) : - return self.current() - - ######## RecExCommon vs Standalone ############################### - def includeRecExCommon_flags(self) : - if( self.current() == 'AthenaStandalone' or self.current() == 'AthenaMT' or self.current() == 'AthenaPT') : - tmpStr=""" -rec.doTruth=False -#----------------------------------------------------------- -include(\"RecExCommon/RecExCommon_flags.py\") -#----------------------------------------------------------- -""" - else : - tmpStr=""" -#----------------------------------------------------------- -include(\"RecExCommon/RecExCommon_flags.py\") -#----------------------------------------------------------- -""" - return tmpStr - - - def includeRecExCommon_topOptions(self) : - if( self.current() == 'AthenaStandalone' or self.current() == 'AthenaMT' or self.current() == 'AthenaPT') : - tmpStr=""" -#----------------------------------------------------------- -include(\"TriggerRelease/Trigger_topOptions_standalone.py\") -#----------------------------------------------------------- -""" - else : - tmpStr=""" -#----------------------------------------------------------- -include(\"RecExCommon/RecExCommon_topOptions.py\") -#----------------------------------------------------------- -""" - return tmpStr - - - def initializeBlocks(self) : - - ######## Common settings ############################### - self.jobProperties = """ - -if not ('EvtMax' in dir()): - acf.EvtMax=10 -if not ('OutputLevel' in dir()): - rec.OutputLevel=INFO - -############################### -rec.doCBNT=False - -""" - if( self.current() != 'AthenaNoTrigger' ) : - self.jobProperties += """ -rec.doTrigger=True -""" - else : - self.jobProperties += """ -rec.doTrigger=False -""" - - #################### Athena ############################### - if( self.current() != 'AthenaAllAlgsTrue' and self.current() != 'AthenaNoTrigger' ) : - self.jobProperties += "doESD=False\n" - else : - self.jobProperties += "doESD=True \n" - - if( self.current() == 'Athena' or self.current() == 'AthenaAllAlgsTrue' or self.current() == 'AthenaStandalone' ) : - self.extraTopOptions = """ -jobproperties.PerfMonFlags.doMonitoring = True - -MessageSvc.debugLimit = 10000000 -MessageSvc.Format = "% F%48W%S%7W%R%T %0W%M" - -#get rid of messages and increase speed -Service ("StoreGateSvc" ).ActivateHistory=False - -#from AthenaCommon.AlgSequence import AlgSequence -print AlgSequence -print ServiceMgr - -""" - - - - #################### AthenaAllFlagsTrue ############################### - else : - self.jobProperties = "## WARNING jobO are not yet setup for "+self.current() - - diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValInputBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValInputBlock.py deleted file mode 100755 index 9bfefab486e..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValInputBlock.py +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock - -class TrigValInputBlock(TrigValJobOptionBlock): - def __init__(self, current) : - TrigValJobOptionBlock.__init__(self, 'RDO', ['RDO','BS', 'ESD','AOD','BStmp']) - - self.name = "Input" - if(current == "" ) : current = "RDO" - self.setCurrent(current) # this calls initializeBlocks() - - - def jobNameBlock(self) : - return self.current() - - - def initializeBlocks(self) : - - #################### RDO ############################### - if( self.current() == 'RDO' ) : - self.jobProperties = """ -### usually ATN tests runs with following RDO input: -#PoolRDOInput=["/afs/cern.ch/atlas/offline/data/testfile/calib1_csc11.005200.T1_McAtNlo_Jimmy.digit.RDO.v12000301_tid003138._00016_extract_10evt.pool.root"] -""" - self.jobFlags = """ -TriggerFlags.readHLTconfigFromXML=False -TriggerFlags.readLVL1configFromXML=False -""" - - #################### ESD ############################### - elif( self.current() == 'ESD' ) : - self.jobProperties = """ -acf.PoolESDInput=[\"../trigger.ESD.pool.root\"] -rec.readESD=True -""" - self.jobFlags = """ -TriggerFlags.readHLTconfigFromXML=False -TriggerFlags.readLVL1configFromXML=False -""" - #################### AOD ############################### - elif( self.current() == 'AOD' ) : - self.jobProperties = """ -acf.PoolAODInput=[\"../trigger.AOD.pool.root\"] -rec.readAOD=True -""" - self.jobFlags += """ -TriggerFlags.readHLTconfigFromXML=True -TriggerFlags.readLVL1configFromXML=True -# WARNING: please don't try running from ./outputLVL1/HLTconfig.xml, since Athena will try writing to that file -TriggerFlags.inputLVL1configFile = \"../outputLVL1config.xml\" -TriggerFlags.inputHLTconfigFile = \"../outputHLTconfig.xml\" -#### to avoid segmentation violation in 12.0.6 -DetFlags.Muon_setOff() -""" - #################### BS ############################### - elif( self.current() == 'BS' ) : - self.jobProperties = """ -from AthenaCommon.GlobalFlags import GlobalFlags - GlobalFlags.InputFormat.set_bytestream() - acf.BSRDOInput=[\"/afs/cern.ch/atlas/project/trigger/pesa-sw/releases/data/daq.csc13.0000000.Single.Stream.LB0000.Athena._0001.data\"] - DetDescrVersion = \"ATLAS-CSC-01-02-00\" - -""" - self.jobFlags += """ -TriggerFlags.doHLTpersistency=False -TriggerFlags.readLVL1configFromXML=True -# WARNING: please don't try running from ./outputLVL1config.xml, since Athena will try writing to that file -TriggerFlags.inputLVL1configFile = \"../outputLVL1config.xml\" - -""" - #################### BStmp ############################### - elif( self.current() == 'BStmp' ) : - self.jobProperties = """ -from AthenaCommon.GlobalFlags import GlobalFlags - GlobalFlags.InputFormat.set_bytestream() - acf.BSRDOInput=[\"../trigger.BS.data\"] - DetDescrVersion = \"ATLAS-CSC-01-02-00\" - -""" - self.jobFlags += """ -TriggerFlags.doHLTpersistency=False -TriggerFlags.readLVL1configFromXML=True -# WARNING: please don't try running from ./outputLVL1config.xml, since Athena will try writing to that file -TriggerFlags.inputLVL1configFile = \"../outputLVL1config.xml\" - -""" diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValJobOptionBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValJobOptionBlock.py deleted file mode 100755 index 1695a770052..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValJobOptionBlock.py +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -class TrigValJobOptionBlock: - def __init__(self, defaultOption, allOptions ): - self._list = allOptions - self._current = defaultOption - if( defaultOption not in self._list ) : - self._list += defaultOption - - self.name = "NotSet" - self.jobProperties = "" - self.jobFlags = "" - self.extraTopOptions = "" - - self.isJobOptionBlock = True - - def help(self) : - print "=== JobO block "+self.name+" has options" - print self._list - print " current default is "+self.current() - - def current(self) : - return self._current - - def setCurrent(self, option) : - if( self.has_option(option) ): - self._current = option - self.initializeBlocks() - - def has_option(self, option) : - if( option in self._list ): - return True - else : - print "jobOptionDict "+self.name+" ERROR : uknown option "+option+", possible candidates are :" - print self._list - return False - - - def initializeBlocks(): # by default do nothing, but derived classes should overwrite this - return None - - def die(self) : - print " TrigValJobOptionBlock kills the job" - import sys - sys.exit(2) - - def includeJobProperties(self, jobO) : - try : - jobO.write(self.jobProperties ) - except : - print " TrigValJobOptionBlock ERROR cannot write block to "+jobO.name - self.die() - - def modifyJobFlags(self, jobO) : - try : - jobO.write(self.jobFlags ) - except : - print " TrigValJobOptionBlock ERROR cannot write block to "+jobO.name - self.die() - - def addExtraTopOption(self, jobO) : - try : - jobO.write(self.extraTopOptions ) - except : - print " TrigValJobOptionBlock ERROR cannot write block to "+jobO.name - self.die() - diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValJobOptionBuilder.py b/Trigger/TrigValidation/TriggerTest/python/TrigValJobOptionBuilder.py deleted file mode 100755 index 5b55185f5c9..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValJobOptionBuilder.py +++ /dev/null @@ -1,202 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock -from TrigValExecutableBlock import TrigValExecutableBlock -from TrigValConfigBlock import TrigValConfigBlock -from TrigValDetectorBlock import TrigValDetectorBlock -from TrigValSliceBlock import TrigValSliceBlock -from TrigValMenuBlock import TrigValMenuBlock -from TrigValInputBlock import TrigValInputBlock -from TrigValOutputBlock import TrigValOutputBlock -from TrigValValidationBlock import TrigValValidationBlock -from TrigValSpecialFlagsBlock import TrigValSpecialFlagsBlock -from TrigValTemporaryFixBlock import TrigValTemporaryFixBlock -from TrigValValidationBlock import TrigValValidationBlock - - -################################################## - -class TrigValJobOptionBuilder : - def __init__(self, detector = "All", slice = "All", menu = "Default", - executable = "Athena", config = "Modern", input = "RDO", - output = "", specialFlags = "", validation = "") : - - self.Input = TrigValInputBlock( input ) - self.Executable = TrigValExecutableBlock( executable ) - self.Config = TrigValConfigBlock( config ) - self.Output = TrigValOutputBlock( output ) - self.SpecialFlags = TrigValSpecialFlagsBlock( specialFlags ) - self.Detector = TrigValDetectorBlock( detector ) - # temporary fix for the Muon and Bphysics slices - if ( slice == "Muon" and config == "OldConfig" ) : - print "WARNING: temporary fix for Muon slice" - self.Slice = TrigValSliceBlock( "MuonOldConfig" ) - elif ( slice == "Bphysics" and config == "OldConfig" ) : - print "WARNING: temporary fix for Bphysics slice" - self.Slice = TrigValSliceBlock( "BphysicsOldConfig" ) - else : - self.Slice = TrigValSliceBlock( slice ) - self.Menu = TrigValMenuBlock( menu ) - self.Validation = TrigValValidationBlock( validation ) - self.TemporaryFix = TrigValTemporaryFixBlock( 'Fix' ) # choose from ['Fix','None'] - - - self.blockOrder = ['Input', 'Executable', 'Config', 'Output','SpecialFlags', 'Detector', 'Menu', - 'Validation', 'TemporaryFix', 'Slice' ] - - - self.selfConsistent = self.consistentTags() - if( not self.selfConsistent ): self.die() - - - self.jobNamePath = "TriggerTest" - if( output == 'ESD' or output == 'AOD' or output == 'ESDAOD' or input=='ESD' or input == 'AOD' ) : - self.jobNamePath = "TrigAnalysisTest" - - - - #################### this will go on top of each jobO : ############################# - def printHead(self, jobO): - - tmpStr="# To generate "+jobO.name+" use TriggerTest/python/trigValMakeJobOptions.py \n" - - self.HeadComment="""###################################################################################### -# -# This file is automatically generated with TriggerTest/python/TrigvalJobOptionBuilder.py -""" - self.HeadComment += tmpStr - self.HeadComment+="""# -###################################################################################### - -""" - self.write(jobO, self.HeadComment) - - - ############ restrict particular combinations of tags here############################ - def consistentTags(self) : - #if( self.Input.current() == '' ) : - # print " TrigValJobOptionBuilder ERROR : wrong I/O "+input+" to "+output - # return False - #else : - return True - - #################################################################################### - - def die(self) : - print " TrigValJobOptionBuilder kills the job" - import sys - sys.exit(2) - - def write(self, jobO, whatToWrite) : - try : - jobO.write(whatToWrite) - except IOError: - print "TrigValJobOptionBuilder ERROR: Can not open "+topOname - self.die() - - - - def jobName(self) : - if( not self.selfConsistent ) : - print " TrigValJobOptionBuilder ERROR : inconsistent set of tags" - return "" - else : - jobname = self.jobNamePath+"/"+"test"+self.Detector.jobNameBlock() - jobname += self.Slice.jobNameBlock() - jobname += self.Menu.jobNameBlock() - jobname += self.Executable.jobNameBlock() - jobname += self.Config.jobNameBlock() - jobname += self.Input.jobNameBlock() + self.Output.jobNameBlock() - jobname += self.SpecialFlags.jobNameBlock() - jobname += ".py" - return jobname - - - def includeRecExCommon_flags(self, jobO) : - self.write(jobO,self.Executable.includeRecExCommon_flags()) - - - def includeRecExCommon_topOptions(self, jobO) : - self.write(jobO,self.Executable.includeRecExCommon_topOptions()) - - ################################################################# - def makeJobOption(self) : - if( not self.selfConsistent ) : return None - topOname = self.jobName() - try : - import os - if( not os.path.isdir(self.jobNamePath )) : - os.makedirs( self.jobNamePath ) - jobO = open( topOname, mode = "w") - print "Creating top jobOption "+topOname - - #### print comments to topO - self.printHead(jobO) - - #### this goes before RecExCommon_flags - for x in self.blockOrder : - block = self.__dict__.get(x) - if( isinstance(block, TrigValJobOptionBlock)) : - block.includeJobProperties(jobO) - - #### include RecExCommon_flags - self.includeRecExCommon_flags(jobO) - - #### this goes between RecExCommon_flags and RecExCommon_topOption - for x in self.blockOrder : - block = self.__dict__.get(x) - if( isinstance(block, TrigValJobOptionBlock)) : - block.modifyJobFlags(jobO) - - #### include RecExCommon_topOption - self.includeRecExCommon_topOptions(jobO) - - - #### this goes after RecExCommon_topOption - for x in self.blockOrder : - block = self.__dict__.get(x) - if( isinstance(block, TrigValJobOptionBlock)) : - block.addExtraTopOption(jobO) - - #### jobO is done - jobO.close() - - #### now grep for WARNING - jobO = open( topOname, mode ="r") - foundWarning=False - import string - for line in jobO : - if (( string.find(line,"WARNING" )>0 or string.find(line,"ERROR" )>0 ) and string.find(line,"OutputLevel") == 0 ) : - foundWarning=True - if( foundWarning ) : - jobO.seek(0) - print "There are WARNING/ERROR in "+topOname +" :" - for line in jobO : - if ( string.find(line,"WARNING" )>0 or string.find(line,"ERROR" )>0 ) : - print line - jobO.close() - - except IOError: - print "TrigValJobOptionBuilder ERROR: Can not open "+topOname - - ### end of makeJobOption - - - def help(self) : - tmpHelp=""" - -To generate jobOptions please use e.g : - builder = TrigValJobOptionBuilder('Calo','All','All','Athena', 'RDO', "", "") - builder.makeJobOption() -where options are : -""" - print tmpHelp - for x in self.__dict__ : - block = self.__dict__.get(x) - if( isinstance(block, TrigValJobOptionBlock)) : - block.help() - - diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValMakeTestConf.py b/Trigger/TrigValidation/TriggerTest/python/TrigValMakeTestConf.py deleted file mode 100755 index 252ad76a105..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValMakeTestConf.py +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - - -################################################################ - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -def writeTestXML (testConf, testJobO, mailto, path="TriggerTest"): - -# Write xml configuration for some test to temp file TriggerTest_TestConfiguration.xml.fragment -# this should then be added to TriggerTest_TestConfiguration.xml in the ATN block -# example: -# <TEST name="ElectronSliceAthenaRDO" type="script" suite="tapm_val"> -# <options_atn>trigtest.pl --test ElectronSliceAthenaRDO --run ElectronSliceAthenaRDO --conf $ATN_PACKAGE/Testing/trigValidation.conf</options_atn> -# <timelimit>5</timelimit> -# <author>TAPM validation</author> -# <expectations> -# <errorMessage>FAILURE </errorMessage> -# <returnValue>0</returnValue> -# </expectations> -# </TEST> - - import os - - if( not os.path.isdir( path )) : - os.makedirs( path ) - - fTestFile=path+"/"+"TriggerTest_TestConfiguration.xml.fragment" - if( os.path.isfile( fTestFile ) ) : - fTest = open( fTestFile,mode="a") - else : - fTest = open( fTestFile,mode="w") - - fTest.write(" <TEST name=\""+testJobO+"\" type=\"script\" suite=\"tapm_val\"> \n") - fTest.write(" <options_atn>trigtest.pl --test "+testJobO+" --run "+testJobO+" --conf $ATN_PACKAGE/Testing/trigValidation.conf</options_atn> \n") - fTest.write(" <timelimit>5</timelimit> \n") - fTest.write(" <author>TAPM validation</author> \n") - for address in mailto : - if( address != "" ) : - fTest.write(" <mailto> "+address+" </mailto> \n") - fTest.write(" <expectations> \n") - fTest.write(" <errorMessage>FAILURE </errorMessage> \n") - fTest.write(" <returnValue>0</returnValue> \n") - fTest.write(" </expectations> \n") - fTest.write(" </TEST> \n\n") - fTest.close() - - print "xml fragment for test "+testJobO+" added to file "+fTestFile - -################################################################ -def addTrigTestConf(testConf, testId, testJobO, regtests, regtesttag, - post_command="", makeReferenceLink=False,useTmpReference=False) : - from TrigValPrintRegtest import TrigValPrintRegtestSet - fTest = open(testConf, mode = "a") - fTest.write("test "+str(testId)+"\n") - fTest.write(" name "+testJobO+"\n") - fTest.write(" joboptions test"+testJobO+".py\n") - fTest.write(" checklog\n") - fTest.close() - for x in regtests : - post_command += TrigValPrintRegtestSet( testConf, x, regtesttag, makeReferenceLink,useTmpReference ) - - fTest = open(testConf, mode = "a") - if( post_command != "" ) : - fTest.write(" post_command "+post_command+"\n") - - fTest.write(" pre_command export ERS_DEBUG_1='filter:!@default'\n") - fTest.write(" pre_command export ERS_DEBUG_2='filter:!@default'\n") - fTest.write(" pre_command export ERS_DEBUG_3='filter:!@default'\n") - fTest.close() - - #print testConf+" is updated with test "+testJobO; - - -################################################################ - -def TrigValMakeTestConf(testConf, testId, testShId, testJobO, regtests, - regtesttag, mailto, path = "TriggerTest",post_command="", - makeReferenceLink=False,useTmpReference=False) : - - if( path == "" ) : path = "TriggerTest" - - # write xml fragment to be replaced in TriggerTest_TestConfiguration.xml - writeTestXML(testConf, testJobO, mailto, path) - - addTrigTestConf(testConf, testId, testJobO, regtests, regtesttag, post_command, - makeReferenceLink,useTmpReference) - - -################################################################ diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValMenuBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValMenuBlock.py deleted file mode 100755 index 09d637bf39c..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValMenuBlock.py +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock - -class TrigValMenuBlock(TrigValJobOptionBlock): - def __init__(self, current) : - TrigValJobOptionBlock.__init__(self, 'Default', ['Default','Physics','CSC-06']) - - self.name = "Menu" - if(current == "" ) : current = "Default" - self.setCurrent(current) # this calls initializeBlocks() - - - def jobNameBlock(self) : - if( self.current() == 'Default' ) : - return "" - else: - return self.current()+"Menu" - - - def initializeBlocks(self) : - - #################### All ############################### - if( self.current() == 'Physics' ) : - self.jobFlags = """ -triggerMenu.disableAll() - -#### WARNING First attempt of Physics menu. The list below needs to be revised!! -triggerMenu.enableSignatures(["2e15i","e25i","e60"]) -triggerMenu.enableSignatures(["2g20i","g60"]) -triggerMenu.enableSignatures(["mu20"]) -triggerMenu.enableSignatures(["tau25i"]) -triggerMenu.enableSignatures(["jet160","2jet120","3jet65"]) - -# following menus are not available yet -#triggerMenu.enableSignatures(["4jet55","mu10"]) - -""" - #################### Calo ############################### - elif( self.current() == 'CSC-06' ) : - self.jobFlags = """ -triggerMenu.disableAll() - -#### -triggerMenu.enableSignatures(["e10","e10TRTxK", "2e15i","e25i","e60"]) -triggerMenu.enableSignatures(["g10","2g20i","g60"]) -triggerMenu.enableSignatures(["mu6l","mu6","mu20"]) -triggerMenu.enableSignatures(["tau10","tau10i","tau15","tau15i","tau20i","tau25i","tau35i","tauNoCut"]) -triggerMenu.enableSignatures(["jet20a","jet20b","jet20c","jet20d","jet20kt","jet160","2jet120","3jet65","4jet50]) -triggerMenu.enableSignatures(["met10"]) -triggerMenu.enableSignatures(["frjet10","fljet10", "b35"]) -triggerMenu.enableSignatures(["L2_Zee"]) -""" - diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValOutputBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValOutputBlock.py deleted file mode 100755 index 1cc677f328e..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValOutputBlock.py +++ /dev/null @@ -1,172 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock - -class TrigValOutputBlock(TrigValJobOptionBlock): - def __init__(self, current) : - TrigValJobOptionBlock.__init__(self, 'None', ['None','BS','ESDAOD','AOD','ESD','TAG']) - - self.name = "Output" - - if( current == "" ) : current = "None" - self.setCurrent(current) # this calls initializeBlocks() - - - def jobNameBlock(self) : - if( self.current() == 'None' ) : - return "" - else: - return "to"+self.current() - - - def initializeBlocks(self) : - - #################### ############################### - if( self.current() == 'None' ) : - self.jobProperties = """ -rec.doWriteAOD=False -rec.doWriteESD=False -rec.doWriteTAG=False -rec.doAOD=False -rec.doESD=False -doTAG=False -""" - elif ( self.current() == 'ESD' ) : - self.jobProperties = """ -rec.doWriteAOD=False -rec.doWriteESD=True -rec.doWriteTAG=False -rec.doAOD=False -rec.doESD=True -doTAG=False -""" - - self.extraTopOptions = """ -## to remove any particular class uncomment and modify : -#StreamESD.ItemList.remove("LVL1_ROI#*") -""" - - elif ( self.current() == 'ESDAOD' ) : - self.jobProperties = """ -rec.doWriteAOD=True -rec.doWriteESD=True -rec.doWriteTAG=False -rec.doAOD=False -rec.doESD=True -doTAG=False -""" -# self.jobFlags += """ -#TriggerFlags.outputLVL1configFile = "/tmp/outputLVL1config.xml" -#TriggerFlags.outputHLTconfigFile = "/tmp/outputHLTconfig.xml" -#""" - self.extraTopOptions = """ -## to remove any particular class uncomment and modify : -#StreamESD.ItemList.remove("LVL1_ROI#*") -#StreamAOD.ItemList.remove("LVL1_ROI#*") -""" - - elif ( self.current() == 'AOD' ) : - self.jobProperties = """ -rec.doWriteAOD=True -rec.doWriteESD=False -rec.doWriteTAG=False -rec.doAOD=True -rec.doESD=False -doTAG=False - -""" -# self.jobFlags += """ -#TriggerFlags.outputLVL1configFile = "/tmp/outputLVL1config.xml" -#TriggerFlags.outputHLTconfigFile = "/tmp/outputHLTconfig.xml" -#""" - self.extraTopOptions = """ -## to remove any particular class uncomment and modify : -#StreamAOD.ItemList.remove("LVL1_ROI#*") -""" - - elif ( self.current() == 'TAG' ) : - - self.jobProperties = """ -rec.doWriteAOD=False -rec.doWriteESD=False -rec.doWriteTAG=TAG -rec.doAOD=False -rec.doESD=False -doTAG=TAG -""" - - elif ( self.current() == 'BS' ) : - - self.jobProperties = """ -rec.doWriteAOD=False -rec.doWriteESD=False -rec.doWriteTAG=False -rec.doAOD=False -rec.doESD=False -doTAG=False -""" - - self.extraTopOptions = """ -ServiceMgr.LVL1ConfigSvc.CreateLegacyObjects=True - -include( "ByteStreamCnvSvc/WriteByteStream_EventStorage_jobOptions.py" ) -#ByteStreamEventStorageOutputSvc = ServiceMgr.ByteStreamEventStorageOutputSvc -#ByteStreamEventStorageOutputSvc.DumpFlag = True -StreamBS = AthenaOutputStream("StreamBS", - EvtConversionSvc = "ByteStreamCnvSvc") -StreamBS.ForceRead=True -StreamBS.ItemList += [ "ROIB::RoIBResult#*" ] -#StreamBS.ItemList +=["2542#*"] -#StreamBS.ItemList +=["2541#*"] -#StreamBS.ItemList +=["2540#*"] -StreamBS.ItemList += [ "TRT_RDO_Container#*" ] -StreamBS.ItemList += [ "SCT_RDO_Container#*" ] -StreamBS.ItemList += [ "PixelRDO_Container#*" ] -StreamBS.ItemList +=["2721#*"] -StreamBS.ItemList +=["2927#*"] -#StreamBS.ItemList +=["MdtCsmContainer#*"] -#StreamBS.ItemList +=["RpcPadContainer#*"] -#StreamBS.ItemList +=["TgcRdoContainer#*"] -#StreamBS.ItemList +=["CscRawDataContainer#*"] - -# ------------------------------------------------------------- -# Dectector BS converters -# ------------------------------------------------------------- -theApp.Dlls += [ "TrigT1ResultByteStream" ] -theApp.Dlls += [ "LArCalibUtils" ] -theApp.Dlls += [ "LArByteStream" ] -theApp.Dlls += [ "TileByteStream" ] -theApp.Dlls += [ "MuonByteStream" ] - -theApp.CreateSvc += ["StoreGateSvc/StoreGateSvc" ] -ByteStreamAddressProviderSvc = Service( "ByteStreamAddressProviderSvc" ) -ByteStreamAddressProviderSvc.TypeNames += [ - "PixelRDO_Container/PixelRDOs", - "SCT_RDO_Container/SCT_RDOs", - "TRT_RDO_Container/TRT_RDOs", - "LArRawChannelContainer/LArRawChannels", - "TileRawChannelContainer/TileRawChannelCnt", - "RpcPadContainer/RPCPAD", - "MdtCsmContainer/MDTCSM", - "TgcRdoContainer/TGCRDO", - "CscRawDataContainer/CSCRDO", - "ROIB::RoIBResult/RoIBResult", - "MuCTPI_RDO/MUCTPI_RDO", - "CTP_RDO/CTP_RDO" - ] -ProxyProviderSvc = Service( "ProxyProviderSvc" ) -ProxyProviderSvc.ProviderNames += [ "ByteStreamAddressProviderSvc" ] - - - -""" - - #################### ############################### - else : - self.jobProperties = "#WARNING job block output option "+self.current()+" is not implemented yet !" - - - diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValPrintRegtest.py b/Trigger/TrigValidation/TriggerTest/python/TrigValPrintRegtest.py deleted file mode 100755 index 2e71039c843..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValPrintRegtest.py +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValRegtestLibrary import TrigValRegtestLibrary, TrigValRegtestSet - -########################################################################## - -def TrigValPrintRegtest( fileObj, HLTalgo, tag ='Default'): - refFile = TrigValRegtestLibrary[ HLTalgo].getFile(tag) - if( refFile != "" ): - try : - fil = open( fileObj, mode="a") - if( HLTalgo == "Full" or HLTalgo == "full" ) : - fil.write(" fullregtest REGTEST "+refFile+"\n") - else : - fil.write(" regtest "+HLTalgo+" REGTEST "+refFile+"\n") - fil.close() - except IOError: - print "TrigValRegtestFile ERROR: Can not open "+refFile+", print no regtest" - - -def TrigValPrintRegtestSet( fileObj, hltsetTag, tag='Default', - makeReferenceLink=False, useTmpReference=False): - try : - fil = open( fileObj, mode="a") - - post_command = "" - if ( TrigValRegtestLibrary.has_key( hltsetTag) ) : - refFile = TrigValRegtestLibrary[hltsetTag ].getFile(tag) - if( makeReferenceLink ) : post_command += "rm -f /tmp/"+refFile+"; ln -s $PWD/"+refFile+".new /tmp/"+refFile+" ;" - if( useTmpReference ) : refFile = "/tmp/"+refFile # important to have it after post_command - - if( hltsetTag == "Full" or hltsetTag == "full" ) : - fil.write(" fullregtest REGTEST "+refFile+"\n") - else : - fil.write(" regtest "+hltsetTag+" REGTEST "+refFile+"\n") - - elif ( TrigValRegtestSet.has_key( hltsetTag) ) : - hltset = TrigValRegtestSet[hltsetTag] - for hltAlgo in hltset : - if ( TrigValRegtestLibrary.has_key(hltAlgo ) ) : - refFile = TrigValRegtestLibrary[ hltAlgo ].getFile(tag) - if( makeReferenceLink ) : post_command += "rm -f /tmp/"+refFile+"; ln -s $PWD/"+refFile+".new /tmp/"+refFile+" ;" - if( useTmpReference ) : refFile = "/tmp/"+refFile # important to have it after post_command - if( refFile != "" ): - fil.write(" regtest "+hltAlgo+" REGTEST "+refFile+"\n") - else : - print "TrigValRegtestFile ERROR: Can not find HLTalgo or HLT set "+hltAlgo+" ignore it" - else : - print "TrigValRegtestFile ERROR: Can not find HLTalgo or HLT set "+hltsetTag+" ignore it" - fil.close() - return post_command - - except IOError: - print "TrigValRegtestFile ERROR: Can not open "+refFile+", print no regtest" - return "" - - - -#printRegtest( 'f1.txt', 'T2CaloTau_Tau' ) -#printRegtest( 'f1.txt', 'T2CaloTauHypo_tau10i', 'Default' ) -#printRegtestSet( 'f1.txt', 'Tau' ) diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValRegtestFile.py b/Trigger/TrigValidation/TriggerTest/python/TrigValRegtestFile.py deleted file mode 100755 index b097bc156b6..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValRegtestFile.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -class TrigValRegtestFile: - def __init__(self, defaultFile): - self.Default = defaultFile - - def addFile(self, tag, file ): - self.__dict__[tag] = file - - def getFile(self, tag='Default' ) : - if( self.__dict__.has_key(tag) ): - return self.__dict__[tag] - else : - #if( tag != "" ) : - # print "TrigValRegtestFile INFO : use tag \"Default\" instead of \""+tag+"\"" - return self.__dict__['Default'] diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValRegtestLibrary.py b/Trigger/TrigValidation/TriggerTest/python/TrigValRegtestLibrary.py deleted file mode 100755 index 09adb2ec860..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValRegtestLibrary.py +++ /dev/null @@ -1,151 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValRegtestFile import TrigValRegtestFile -############## this is default Regtest references ####################### - -TrigValRegtestLibrary = { - 'TrigSteer' : TrigValRegtestFile('nofile_TrigSteer.reference'), - 'Full' : TrigValRegtestFile('nofile_Full.reference'), - - - #'' : TrigValRegtestFile(''), - ########### egamma - 'TrigIDSCAN_eGamma' : TrigValRegtestFile('testElectronSlice_top_CSC-01-02-00_RDO_extract_TrigIDSCAN_eGamma.reference'), - 'TrigSiTrack_eGamma' : TrigValRegtestFile('testElectronSlice_top_CSC-01-02-00_RDO_extract_TrigSiTrack_eGamma.reference'), - 'T2CaloEgamma_eGamma' : TrigValRegtestFile('testElectronSlice_top_CSC-01-02-00_RDO_extract_T2CaloEgamma_eGamma.reference'), - 'TrigCaloTowerMaker_eGamma' : TrigValRegtestFile('testElectronSlice_top_CSC-01-02-00_RDO_extract_TrigCaloTowerMaker_eGamma.reference'), - 'TrigCaloCellMaker_eGamma' : TrigValRegtestFile('testElectronSlice_top_CSC-01-02-00_RDO_extract_TrigCaloCellMaker_eGamma.reference'), - 'TrigCaloClusterMaker_slw' : TrigValRegtestFile('testElectronSlice_top_CSC-01-02-00_RDO_extract_TrigCaloClusterMaker_slw.reference'), - 'TrigEgammaRec_eGamma' : TrigValRegtestFile('testElectronSlice_top_CSC-01-02-00_RDO_extract_TrigEgammaRec_eGamma.reference'), - 'Electron_EFID' : TrigValRegtestFile('testElectronSlice_top_CSC-01-02-00_RDO_extract_Electron_EFID.reference'), - 'EFTrackHypo' : TrigValRegtestFile('testElectronSlice_top_CSC-01-02-00_RDO_extract_EFTrackHypo.reference'), - 'TrigEFEgammaHypo' : TrigValRegtestFile('testElectronSlice_top_CSC-01-02-00_RDO_extract_TrigEFEgammaHypo.reference'), - - 'L2PhotonFex' : TrigValRegtestFile('testPhotonSlice_top_CSC-01-02-00_RDO_extract_L2PhotonFex.reference'), - - - ######### tau - 'T2CaloTau_Tau' : TrigValRegtestFile('testTauSlice_top_CSC-01-02-00_RDO_extract_T2CaloTau_Tau.reference'), - 'TauHypo' : TrigValRegtestFile('testTauSlice_top_CSC-01-02-00_RDO_extract_TauHypo.reference'), - 'TrigTauRec' : TrigValRegtestFile('testTauSlice_top_CSC-01-02-00_RDO_extract_TrigTauRec.reference'), - 'Tau_EFID' : TrigValRegtestFile('testTauSlice_top_CSC-01-02-00_RDO_extract_Tau_EFID.reference'), - 'T2TauFinal' : TrigValRegtestFile('testTauSlice_top_CSC-01-02-00_RDO_extract_T2TauFinal.reference'), - 'TrigIDSCAN_Tau' : TrigValRegtestFile('testTauSlice_top_CSC-01-02-00_RDO_extract_TrigIDSCAN_Tau.reference'), - 'TrigCaloCellMaker_tau' : TrigValRegtestFile('testTauSlice_top_CSC-01-02-00_RDO_extract_TrigCaloCellMaker_tau.reference'), - - ######### muons - 'muComb_Muon' : TrigValRegtestFile('testMuonSlice_top_CSC-01-02-00_RDO_extract_muComb_Muon.reference'), - 'TrigIDSCAN_Muon' : TrigValRegtestFile('testMuonSlice_top_CSC-01-02-00_RDO_extract_TrigIDSCAN_Muon.reference'), - 'muFast_Muon' : TrigValRegtestFile('testMuonSlice_top_CSC-01-02-00_RDO_extract_muFast_Muon.reference'), - 'MufastHypo_Muon' : TrigValRegtestFile('testMuonSlice_top_CSC-01-02-00_RDO_extract_MufastHypo_Muon.reference'), - 'MucombHypo_Muon' : TrigValRegtestFile('testMuonSlice_top_CSC-01-02-00_RDO_extract_MucombHypo_Muon.reference'), - - ######### Jet - 'T2CaloJet_Jet' : TrigValRegtestFile('testJetSlice_top_CSC-01-02-00_RDO_extract_T2CaloJet_Jet.reference'), - - ######### MET - 'EFMetHypo' : TrigValRegtestFile('testMETSlice_top_CSC-01-02-00_RDO_extract_EFMetHypo.reference'), - 'EFMissingET_Met' : TrigValRegtestFile('testMETSlice_top_CSC-01-02-00_RDO_extract_EFMissingET_Met.reference'), - - ######### Bphys - 'Bphysics_EFID' : TrigValRegtestFile('testBphysicsSlice_top_CSC-01-02-00_RDO_extract_Bphysics_EFID.reference'), - 'TrigIDSCAN_Bphysics' : TrigValRegtestFile('testBphysicsSlice_top_CSC-01-02-00_RDO_extract_TrigIDSCAN_Bphysics.reference'), - 'L2DsPhiPiFex_1' : TrigValRegtestFile('testBphysicsSlice_top_CSC-01-02-00_RDO_extract_L2DsPhiPiFex_1.reference'), - 'FullScan_EFID' : TrigValRegtestFile('testBphysicsSlice_top_CSC-01-02-00_RDO_extract_FullScan_EFID.reference'), - 'L2DsPhiPiFex_FS' : TrigValRegtestFile('testBphysicsSlice_top_CSC-01-02-00_RDO_extract_L2DsPhiPiFex_FS.reference'), - 'L2DsPhiPiFex_FS' : TrigValRegtestFile('testBphysicsSlice_top_CSC-01-02-00_RDO_extract_L2DsPhiPiFex_FS.reference'), - 'TrigIDSCAN_FullScan' : TrigValRegtestFile('testBphysicsSlice_top_CSC-01-02-00_RDO_extract_TrigIDSCAN_FullScan.reference'), - 'EFDsPhiPiFex_1' : TrigValRegtestFile('testBphysicsSlice_top_CSC-01-02-00_RDO_extract_EFDsPhiPiFex_1.reference'), - - ######### Bjet - 'Bjet_EFID' : TrigValRegtestFile('testBjetSlice_top_CSC-01-02-00_RDO_extract_Bjet_EFID.reference'), - 'TrigSiTrack_Jet' : TrigValRegtestFile('testBjetSlice_top_CSC-01-02-00_RDO_extract_TrigSiTrack_Jet.reference'), - - 'TrigIDSCAN_Cosmics' : TrigValRegtestFile('testCosmicsSlice_top_CSC-01-02-00_RDO_extract_TrigIDSCAN_Cosmics.reference'), - 'TrigL2CosmicMuon_Cosmic' : TrigValRegtestFile('testCosmicsSlice_top_CSC-01-02-00_RDO_extract_TrigL2CosmicMuon_Cosmic.reference'), - 'CombinedIDHalfTracks_Cosmic' : TrigValRegtestFile('testCosmicsSlice_top_CSC-01-02-00_RDO_extract_CombinedIDHalfTracks_Cosmic.reference'), - - ######### LVL1 - 'CTPSimulation' : TrigValRegtestFile('testLVL1CTP_top_CSC-01-02-00_RDO_extract_CTPSimulation.reference'), - - -# 'TriggerDecisionMaker' : TrigValRegtestFile('TriggerDecisionMaker.reference'), -# 'IdScan_Bphysics_L2' : TrigValRegtestFile('IdScan_Bphysics.reference'), -# 'MufastHypo_900GeV_2GeV_L2': TrigValRegtestFile('MufastHypo_Muon_2GeV_Bphysics.reference'), -# 'TrigDiMuonFast_1_L2': TrigValRegtestFile('TrigDiMuonFast.reference'), -# 'TrigL2BMuMuHypo_B0_L2': TrigValRegtestFile('TrigL2BMuMuHypo_B0.reference'), -# 'JpsiHypo_1_L2' : TrigValRegtestFile('JpsiHypo.reference'), -# 'L2dimuonHypo_Jpsi_L2' : TrigValRegtestFile('L2dimuonHypo_Jpsi.reference'), -# 'TrigL2BMuMuXHypo_B0_L2' : TrigValRegtestFile('TrigL2BMuMuXHypo_B0.reference'), -# 'MucombHypo_900GeV_2GeV_L2' : TrigValRegtestFile('muComb_Muon_Bphysics.reference'), -# 'L2dimuonHypo_Jpsi_L2' : TrigValRegtestFile('L2dimuonHypo_Jpsi.reference'), -# 'TrigL2BMuMuXHypo_B0_L2' : TrigValRegtestFile('TrigL2BMuMuXHypo_B0.reference'), -# 'IdScan_FullScan_L2' : TrigValRegtestFile('IdScan_FullScan.reference'), -# 'DsPhiPiHypo_1_L2' : TrigValRegtestFile('DsPhiPiHypo.reference'), -# 'DsPhiPiHypo_Full_L2' : TrigValRegtestFile('DsPhiPiHypo_Full.reference'), -# 'hltSteer_L2.ResultBuilder' : TrigValRegtestFile('hltSteer_L2.ResultBuilder.reference'), -# 'hltSteer_EF.ResultBuilder' : TrigValRegtestFile('hltSteer_EF.ResultBuilder.reference'), - - -} - - -############## these are full references ####################### - -TrigValRegtestLibrary[ 'Full'].addFile( "testAthenaRDO", "testAthenaRDO_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testCalo", "testCalo_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testID", "testID_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testMuon", "testMuon_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testElectronSlice", "testElectronSlice_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testPhotonSlice", "testPhotonSlice_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testTauSlice", "testTauSlice_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testMuonSlice", "testMuonSlice_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testJetSlice", "testJetSlice_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testMETSlice", "testMETSlice_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testBjetSlice", "testBjetSlice_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testBphysicsSlice", "testBphysicsSlice_top_CSC-01-02-00_RDO_extract_full.reference") -TrigValRegtestLibrary[ 'Full'].addFile( "testCosmicsSlice", "testCosmicsSlice_top_CSC-01-02-00_RDO_extract_full.reference") - -############## these are additional references ####################### - -TrigValRegtestLibrary[ 'T2TauFinal'].addFile( "testCalo", "testCalo_top_CSC-01-02-00_RDO_extract_T2TauFinal.reference") -TrigValRegtestLibrary[ 'TauHypo' ].addFile( "testCalo", "testCalo_top_CSC-01-02-00_RDO_extract_TauHypo.reference") - -TrigValRegtestLibrary[ 'TrigSteer'].addFile( "testMuonSlice", "testMuonSlice_top_CSC-01-02-00_RDO_extract_TrigSteer.reference") -TrigValRegtestLibrary[ 'TrigSteer'].addFile( "testPhotonSlice", "testPhotonSlice_top_CSC-01-02-00_RDO_extract_TrigSteer.reference") -TrigValRegtestLibrary[ 'TrigSteer'].addFile( "testMETSlice", "testMETSlice_top_CSC-01-02-00_RDO_extract_TrigSteer.reference") -TrigValRegtestLibrary[ 'TrigSteer'].addFile( "testElectronSlice", "testElectronSlice_top_CSC-01-02-00_RDO_extract_TrigSteer.reference") -TrigValRegtestLibrary[ 'TrigSteer'].addFile( "testTauSlice", "testTauSlice_top_CSC-01-02-00_RDO_extract_TrigSteer.reference") -TrigValRegtestLibrary[ 'TrigSteer'].addFile( "testBphysicsSlice", "testBphysicsSlice_top_CSC-01-02-00_RDO_extract_TrigSteer.reference") -TrigValRegtestLibrary[ 'TrigSteer'].addFile( "testJetSlice", "testJetSlice_top_CSC-01-02-00_RDO_extract_TrigSteer.reference") -TrigValRegtestLibrary[ 'TrigSteer'].addFile( "testBjetSlice", "testBjetSlice_top_CSC-01-02-00_RDO_extract_TrigSteer.reference") -TrigValRegtestLibrary[ 'TrigSteer'].addFile( "testCosmicsSlice", "testCosmicsSlice_top_CSC-01-02-00_RDO_extract_TrigSteer.reference") - -############## these are sets of references ####################### - -TrigValRegtestSet = { - 'Electron' : ['T2CaloEgamma_eGamma','TrigIDSCAN_eGamma', 'TrigSiTrack_eGamma','TrigCaloTowerMaker_eGamma', - 'TrigCaloCellMaker_eGamma', 'TrigCaloClusterMaker_slw', 'Electron_EFID','TrigEgammaRec_eGamma', - 'EFTrackHypo', 'TrigEFEgammaHypo' ], - 'Photon' : ['T2CaloEgamma_eGamma', 'L2PhotonFex','TrigCaloTowerMaker_eGamma', - 'TrigCaloCellMaker_eGamma', 'TrigCaloClusterMaker_slw', - 'TrigEgammaRec_eGamma' ], - 'Tau' : ['T2CaloTau_Tau','TrigIDSCAN_Tau', 'T2TauFinal', 'TrigCaloCellMaker_tau', - 'Tau_EFID', 'TrigTauRec', 'TauHypo'], - 'Muon' : ['muComb_Muon', 'TrigIDSCAN_Muon', 'muFast_Muon','MufastHypo_Muon','MucombHypo_Muon' ], - - 'Jet' : ['T2CaloJet_Jet'], - 'MET' : ['EFMetHypo', 'EFMissingET_Met'], - - 'IDSCAN' : ['TrigIDSCAN_Muon', 'TrigIDSCAN_eGamma', 'TrigSiTrack_eGamma', 'TrigIDSCAN_Tau'], - 'Bphysics' : ['L2DsPhiPiFex_1', 'TrigIDSCAN_Bphysics', 'Bphysics_EFID', 'FullScan_EFID','L2DsPhiPiFex_FS','TrigIDSCAN_FullScan'], - 'Bjet' : ['Bjet_EFID','TrigSiTrack_Jet' ], - - 'Cosmics' : ['TrigIDSCAN_Cosmics', 'TrigL2CosmicMuon_Cosmic', 'CombinedIDHalfTracks_Cosmic'], - - 'LVL1CTP' : ['CTPSimulation'], - -} diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValSliceBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValSliceBlock.py deleted file mode 100755 index cbd4fedeee6..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValSliceBlock.py +++ /dev/null @@ -1,296 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock - -class TrigValSliceBlock(TrigValJobOptionBlock): - def __init__(self, current) : - TrigValJobOptionBlock.__init__(self, 'All', ['All','Electron', 'Photon', 'Muon','MuonOldConfig', 'Tau', - 'Jet', 'MET', 'Bphysics','BphysicsOldConfig','Bjet','Cosmics']) - - self.name = "Slice" - if(current == "" ) : current = "All" - self.setCurrent(current) # this calls initializeBlocks() - - - - def jobNameBlock(self) : - # all exclude Cosmics - if( self.current() == 'All' ) : - return "" - else: - # temporary fix for Bphys and Muon: should - # be removed when OldConfig disappears-RG23/8 - if ( self.current() == "BphysicsOldConfig" ) : - return "BphysicsSlice" - elif ( self.current() == "MuonOldConfig" ) : - return "MuonSlice" - else : - return self.current()+"Slice" - - - def initializeBlocks(self) : - if( self.current() != 'All' ) : - self.jobFlags = """ -#### First switch all slices OFF -TriggerFlags.Slices_all_setOff() -""" - - #################### Electron ############################### - if( self.current() == 'Electron' ) : - self.jobFlags += """ -###### This is a temporary fix ################ -DetFlags.simulateLVL1.Calo_setOn() - -# Enable electron slice -TriggerFlags.EgammaSlice.setAll() -triggerMenu.disableAll() -triggerMenu.enableSignatures(["e10", "e25i", "e60", "2e15i", "e10TRTxK", "Zee", "Jpsiee"]) -""" - - #################### Photon ############################### - if( self.current() == 'Photon' ) : - self.jobFlags += """ -###### This is a temporary fix ################ -DetFlags.simulateLVL1.Calo_setOn() - -# Enable Photon slice -TriggerFlags.EgammaSlice.unsetAll() -triggerMenu.disableAll() -triggerMenu.enableSignature("g10") -triggerMenu.enableSignature("g60") -triggerMenu.enableSignature("2g20i") - -#enable only calorimeter parts for photon standalone -TriggerFlags.EgammaSlice.setL2Calo() -TriggerFlags.EgammaSlice.setEFCalo() -#TriggerFlags.EgammaSlice.setL2ID() -#TriggerFlags.EgammaSlice.setEFID() -""" - - #################### Muon ######################################### - if( self.current() == 'Muon' ) : - self.jobFlags += """ -# Enable Muon slice -DetFlags.digitize.Muon_setOff() - -TriggerFlags.MuonSlice.doL2Muon() -TriggerFlags.MuonSlice.doL2ID() -#TriggerFlags.MuonSlice.setL2Calo() - -# Muon EF part -TriggerFlags.MuonSlice.doEFMuon() -TriggerFlags.MuonSlice.doEFID() - -""" - - if( self.current() == 'MuonOldConfig' ) : - self.jobFlags += """ -if readMuonHits: - DetFlags.digitize.Muon_setOn() - DetFlags.readRIOBS.Muon_setOff() - DetFlags.readRIOPool.LVL1_setOff() - TriggerFlags.doLVL1=True -# ###### This is a temporary fix ################ - DetFlags.simulateLVL1.Muon_setOn() -else: - DetFlags.digitize.Muon_setOff() - -TriggerFlags.MuonSlice.setL2Muon() -TriggerFlags.MuonSlice.setL2ID() - -# Muon EF part -TriggerFlags.MuonSlice.setEFMuon() -TriggerFlags.MuonSlice.setEFID() - -""" - - self.extraTopOptions += """ -muFast = TrigSteer_L2.allConfigurables.get('muFast_Muon') - -muFast.OutputLevel = DEBUG - -muFast.MUlvl1INFO = True -muFast.MUtrackINFO = True -muFast.MUroadsINFO = True -muFast.MUdecoINFO = True -muFast.MUcontINFO = True -muFast.MUfitINFO = True -muFast.MUsagINFO = True -muFast.MUptINFO = True - -muFast.TestString = "muFast_Muon_L2 REGTEST " - -#TrigSteer_L2.OutputLevel=DEBUG -#TrigSteer_L2.allConfigurables.get('TrigIDSCAN_Muon').OutputLevel=DEBUG -#TrigSteer_L2.allConfigurables.get("muComb_Muon").OutputLevel=DEBUG -#TrigSteer_L2.allConfigurables.get("MucombHypo_Muon_6GeV").OutputLevel=DEBUG -TrigSteer_EF.allConfigurables.get("MooHLTAlgo_CB_Muon").IDFromTrigger = True -""" - - - #################### Tau ############################### - if( self.current() == 'Tau' ) : - self.jobFlags += """ -###### This is a temporary fix ################ -DetFlags.simulateLVL1.Calo_setOn() - -# Enable Tau slice -TriggerFlags.TauSlice.setAll() -#triggerMenu.disableAll() -#triggerMenu.enableSignatures(["tau10","tau10i","tau15","tau15i","tau20i","tau25i","tau35i","tauNoCut"]) -""" - - #################### Jet ############################### - if( self.current() == 'Jet' ) : - self.jobFlags += """ -###### This is a temporary fix ################ -DetFlags.simulateLVL1.Calo_setOn() - -# Enable Jet slice -TriggerFlags.JetSlice.setAll() -#triggerMenu.disableAll() -#triggerMenu.enableSignatures(["jet160"]) -""" - - #################### MET ############################### - if( self.current() == 'MET' ) : - self.jobFlags += """ - -# add muons for MET ... ! -if readMuonHits: - DetFlags.digitize.Muon_setOn() - DetFlags.readRIOBS.Muon_setOff() - DetFlags.readRIOPool.LVL1_setOff() - TriggerFlags.doLVL1=True - ###### This is a temporary fix ################ - DetFlags.simulateLVL1.Muon_setOn() -else: - DetFlags.digitize.Muon_setOff() - -###### This is a temporary fix ################ -DetFlags.simulateLVL1.Calo_setOn() - -# Enable MET slice -#TriggerFlags.METSlice.unsetAll() -TriggerFlags.METSlice.setL2Calo() -TriggerFlags.METSlice.setEFCalo() - -""" - - #################### Bjet ############################### - if( self.current() == 'Bjet' ) : - self.jobFlags += """ - -###### This is a temporary fix ################ -DetFlags.simulateLVL1.Muon_setOn() - -# Enable Bjet slice -TriggerFlags.BjetSlice.setAll() -triggerMenu.disableAll() -triggerMenu.enableSignature("b35") -""" - - #################### Bphysics ############################### - if( self.current() == 'Bphysics' ) : - self.jobFlags += """ -###### This is a temporary fix ################ -DetFlags.simulateLVL1.Muon_setOn() - -# Enable Bphysics slice: needs muon slice -TriggerFlags.MuonSlice.setAll() -TriggerFlags.BphysicsSlice.setAll() - -# hack for L=10^31 (repeated in special flags) -if hasattr(ServiceMgr,'RPCcblingSvc') - ServiceMgr.RPCcablingSvc.HackFor1031 = True -""" - - if( self.current() == 'BphysicsOldConfig' ) : - self.jobFlags += """ -###### This is a temporary fix ################ -DetFlags.simulateLVL1.Muon_setOn() - -# Enable Bphysics slice: needs muon slice -TriggerFlags.BphysicsSlice.unsetAll() -TriggerFlags.BphysicsSlice.setL2Muon() -TriggerFlags.BphysicsSlice.setL2ID() -TriggerFlags.BphysicsSlice.setEFID() - -# Enable muon slice -TriggerFlags.MuonSlice.setL2Muon() -TriggerFlags.MuonSlice.setL2ID() -TriggerFlags.MuonSlice.unsetEF() - -triggerMenu.disableAll() -triggerMenu.enableSignatures(["BJpsiMU6mu", "Bmu6mu6" ,"BsDsPhiPi","BsDsPhiPiFullScan"]) -triggerMenu.enableSignatures(["BJpsiee"]) -triggerMenu.enableSignatures(["mu6", "mu6l"]) - -""" - - #################### Cosmics ############################### - if( self.current() == 'Cosmics' ) : - self.jobProperties = """ -if not 'FakeLVL1' in dir(): - FakeLVL1 = True - -if not 'doSiTrack' in dir(): - doSiTrack = False - -if not 'PoolRDOInput' in dir(): - acf.PoolRDOInput = ['/afs/cern.ch/atlas/project/trigger/pesa-sw/releases/data/cosmic.10evts.rdo.root'] - DetDescrVersion='ATLAS-CSC-00-00-00' - -# make sure Truth is OFF, even if it was set to ON before -rec.doTruth=False - -""" - self.jobFlags = """ -TriggerFlags.doEF=False -#TriggerFlags.doID=True -#TriggerFlags.doMuon=False - -TriggerFlags.CosmicSlice.setL2() - -triggerMenu.disableAll() - -if doSiTrack: - triggerMenu.enableSignature("cosmic_SiTrack") -else: - triggerMenu.enableSignature("cosmic_IDSCAN") - -theApp.Dlls += [ "TrigmuFast" ] # needed for MUON::ROBmapper::ROBmapper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >) -#theApp.Dlls += ['TrigL2CosmicMuonHypo'] -theApp.Dlls += [ "TrigOnlineSpacePointTool","TrigOfflineSpacePointTool" ] - -theApp.Dlls += [ "TrkExTools" ] - - - - -""" - - self.extraTopOptions = """ -if FakeLVL1: - - from TrigFake.TrigFakeConf import FakeLvl1RoIatFixedEtaPhi -# from TrigFake.TrigFakeConf import FakeLvl1MultipleRoIsatFixedEtaPhi - -# fake = FakeLvl1MultipleRoIsatFixedEtaPhi() -# fake.FakeMuonRoiPhi=[1.5708]#,-1.5708] -# fake.FakeMuonRoiEta=[0.1]#,0.2] -# fake.FakeMuonRoiLabel=["MU06"]#,"MU06"] - fake = FakeLvl1RoIatFixedEtaPhi() - fake.FakeMuonRoiPhi=3.1 - fake.FakeMuonRoiEta=0.1 - fake.FakeMuonRoiLabel="MU06" - - # fake.OutputLevel=VERBOSE - - job.TrigSteer_L2.LvlConverterTool = fake - -""" - diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValSpecialFlagsBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValSpecialFlagsBlock.py deleted file mode 100755 index 7ab9e7f9dac..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValSpecialFlagsBlock.py +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock - -class TrigValSpecialFlagsBlock(TrigValJobOptionBlock): - def __init__(self, current) : - TrigValJobOptionBlock.__init__(self, 'None',['None','doTruthFalse','memTrack', 'rerunHYPO','hackRPC']) - - self.name = "SpecialFlags" - if(current == "" ) : current = "None" - self.setCurrent(current) # this calls initializeBlocks() - - - def jobNameBlock(self) : - if( self.current() == 'None' ) : - return "" - else: - return "_"+self.current() - - - def initializeBlocks(self) : - - #################### doTruthFalse ############################### - if( self.current() == 'doTruthFalse' ) : - self.jobProperties = """ -rec.doTruth=False -""" - else : - self.jobProperties = """ -rec.doTruth=True -""" - - #################### check mem leaks ############################### - if( self.current() == 'memTrack' ) : - self.jobProperties += """ -# Run the memory leak checker -# This is equivalent to athena --leak-check-execute -import Hephaestus.MemoryTracker as memtrack -memtrack.trace("Algorithm::sysExecute") -memtrack.ignore("StoreGateSvc::setupProxy") -memtrack.configure(memtrack.LEAK_CHECK | memtrack.PROFILE) -""" - - - - #################### rerunHYPO ############################### - if( self.current() == 'rerunHYPO' ) : - self.jobProperties += """ -""" - self.jobFlags += """ -#jobOptions to re-run HYPO only -TriggerFlags.doHypo=True -TriggerFlags.doFEX=False -""" - self.extraTopOptions += "" - - - - #################### RPC hack for L=10^31 ############################### - if( self.current() == 'hackRPC' ) : - self.jobProperties += """ -""" - self.jobFlags += """ -if hasattr(svcMgr,'THistSvc'): - svcMgr.THistSvc.OutputLevel = WARNING - -# hack for L=10^31 (repeated in special flags) -if hasattr(ServiceMgr,'RPCcblingSvc') - ServiceMgr.RPCcablingSvc.HackFor1031 = True -""" - self.extraTopOptions += "" diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValTemporaryFixBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValTemporaryFixBlock.py deleted file mode 100755 index e76874353c3..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValTemporaryFixBlock.py +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock - -class TrigValTemporaryFixBlock(TrigValJobOptionBlock): - def __init__(self, current) : - TrigValJobOptionBlock.__init__(self, 'Fix',['None','Fix']) - - self.name = "TemporaryFix" - if(current == "" ) : current = "Fix" - self.setCurrent(current) # this calls initializeBlocks() - - - def jobNameBlock(self) : - if( self.current() == 'None' ) : - return "NoFix" - else: - return "" - - - def initializeBlocks(self) : - - #################### ############################### - if( self.current() == 'Fix' ) : - self.jobProperties = "" - self.jobFlags = """ -#------------ This is a temporary fix --------------- -TriggerFlags.abortOnConfigurationError=True -#-------------end of temporary fix------------------- -""" - self.extraTopOptions = """ -# disable printing of histograms in finalize -if hasattr(svcMgr,'THistSvc'): - svcMgr.THistSvc.OutputLevel = WARNING - -# THistSvc = Service ( \"THistSvc\" ) -# THistSvc.OutputLevel=WARNING -""" diff --git a/Trigger/TrigValidation/TriggerTest/python/TrigValValidationBlock.py b/Trigger/TrigValidation/TriggerTest/python/TrigValValidationBlock.py deleted file mode 100755 index 7776e11e820..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TrigValValidationBlock.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -from TrigValJobOptionBlock import TrigValJobOptionBlock - -class TrigValValidationBlock(TrigValJobOptionBlock): - def __init__(self, current) : - TrigValJobOptionBlock.__init__(self, 'None', ['None','NODEBUG']) - - self.name = "Validation" - if(current == "" ) : self.setCurrent('None') # this calls initializeBlocks() - - - def jobNameBlock(self) : - return "" - - def initializeBlocks(self) : - - #################### ############################### - if( self.current() == 'NODEBUG' ) : - self.jobFlags = """ -TriggerFlags.enableMonitoring = [ 'Validation', 'Time' ] -""" - else : - self.jobFlags = """ -TriggerFlags.enableMonitoring = [ 'Validation', 'Time', 'Log' ] -""" - - self.extraTopOptions = """ -""" - diff --git a/Trigger/TrigValidation/TriggerTest/python/TruncateLog_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/TruncateLog_TriggerTest.py deleted file mode 100755 index 544aac1e565..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/TruncateLog_TriggerTest.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# Simple wrapper for specific RttScriptRunner instances -# This is done to get "pretty" names on the RTT web pages - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import sys, os -sys.path.append(os.path.dirname(sys.modules[__name__].__file__)) - -from RttScriptRunner_TriggerTest import RttScriptRunner_TriggerTest - -class TruncateLog_TriggerTest(RttScriptRunner_TriggerTest): - pass - diff --git a/Trigger/TrigValidation/TriggerTest/python/ValGrindPostScript_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/ValGrindPostScript_TriggerTest.py deleted file mode 100755 index c1f955cd91e..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/ValGrindPostScript_TriggerTest.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# Simple wrapper for specific RttScriptRunner instances -# This is done to get "pretty" names on the RTT web pages - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import sys, os -sys.path.append(os.path.dirname(sys.modules[__name__].__file__)) - -from RttScriptRunner_TriggerTest import RttScriptRunner_TriggerTest - -class ValGrindPostScript_TriggerTest(RttScriptRunner_TriggerTest): - pass - -#add tony's python post script for valgrind after this: -#sed -e '/ definitely lost: / { N; d; }' Valgrind_*_log > Valgrind_test_log_1 -#!!! \ No newline at end of file diff --git a/Trigger/TrigValidation/TriggerTest/python/ValgrindAnalysisScript_TriggerTest.py b/Trigger/TrigValidation/TriggerTest/python/ValgrindAnalysisScript_TriggerTest.py deleted file mode 100755 index 82ab916f50b..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/ValgrindAnalysisScript_TriggerTest.py +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env python - -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -import glob -import commands -import os -import subprocess -import string -import locale -import fnmatch - -myfile="" -for file in os.listdir('.'): - if fnmatch.fnmatch(file, 'Valgrind_*_log_1'): - f=open(file,"r") - myfile=file -# exit() - - -if not os.path.isfile(myfile): - print "Did not find a log file matching to Valgrind_*_log_1" - quit() - -# Find top 20 instances of memory leaks as reported by valgrind - -#f = open("/atlas/scratch0/limosani/valgrind_memcheck_devval_Jan11_esdtoaod/valgrind.out","r") -#f = open("Valgrind_*_2","r") -#f = open("/afs/cern.ch/user/l/limosani/atpc2/trigger_memory_tests/Valgrind_MC_pp_v5_log") - -searchlines = f.readlines() -f.close() - -newfile = open('compact_valgrind_log', 'w+') - -for i,line in enumerate(searchlines): - if "definitely lost" in line: - #decompose line to check the size of the memory leak - words = searchlines[i].split() - #convert memory leak size to a number - locale.setlocale( locale.LC_ALL, 'en_US.UTF-8' ) - memleakSize = locale.atoi(words[1]) - if memleakSize > 500 : - print >> newfile - print >> newfile, "-------------------------------------------------------------------------------------------------------------" - print >> newfile, "//// Memory leak ", memleakSize -# if "execute" in searchlines[i:i+30]: - for l in searchlines[i:i+30]: - print >> newfile, l, - print >> newfile - print >> newfile diff --git a/Trigger/TrigValidation/TriggerTest/python/__init__.py b/Trigger/TrigValidation/TriggerTest/python/__init__.py deleted file mode 100644 index aab4d50d3d6..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# File: TriggerTest/__init__.py diff --git a/Trigger/TrigValidation/TriggerTest/python/trigValMakeJobOptions.py b/Trigger/TrigValidation/TriggerTest/python/trigValMakeJobOptions.py deleted file mode 100755 index 94034905f96..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/trigValMakeJobOptions.py +++ /dev/null @@ -1,174 +0,0 @@ -#!/usr/bin/env python - -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import getopt, sys -from TrigValJobOptionBuilder import TrigValJobOptionBuilder - -def makeSlice(slice, executable="", config="", iinput="RDO", output = "") : - TrigValJobOptionBuilder("",slice,"",executable,config,iinput,output).makeJobOption() - -def makeAllSlicesOldConfig( executable = "", iinput="RDO",output = "") : - makeSlice("Electron", executable, "OldConfig", iinput, output) - makeSlice("Photon" , executable, "OldConfig", iinput, output) - makeSlice("Tau" , executable, "OldConfig", iinput, output) - makeSlice("Muon" , executable, "OldConfig", iinput, output) - makeSlice("Jet" , executable, "OldConfig", iinput, output) - makeSlice("MET" , executable, "OldConfig", iinput, output) - makeSlice("Bjet" , executable, "OldConfig", iinput, output) -# makeSlice("Bphysics", executable, "OldConfig", iinput, output) - -def makeAllSlices( executable = "", iinput="RDO",output = "") : - makeSlice("Electron", executable, "Modern", iinput, output) - makeSlice("Photon" , executable, "Modern", iinput, output) - makeSlice("Tau" , executable, "Modern", iinput, output) - makeSlice("Muon" , executable, "Modern", iinput, output) - makeSlice("Jet" , executable, "Modern", iinput, output) - makeSlice("MET" , executable, "Modern", iinput, output) - makeSlice("Bjet" , executable, "Modern", iinput, output) -# makeSlice("Bphysics", executable, "Modern", iinput, output) - - -def makeDetector(detector) : - TrigValJobOptionBuilder(detector,"","","","Modern").makeJobOption() - TrigValJobOptionBuilder(detector,"","","","OldConfig").makeJobOption() - - -def makeAll() : - # TrigValJobOptionBuilder (detector = "All", slice = "All", menu = "Default", - # executable = "Athena", input = "RDO", output = "", - # specialFlags = "", validation = "") : - # absolute default - TrigValJobOptionBuilder().makeJobOption() - TrigValJobOptionBuilder("","","","","OldConfig").makeJobOption() - # AllAlgs=True - TrigValJobOptionBuilder("","","","AthenaAllAlgsTrue").makeJobOption() - TrigValJobOptionBuilder("","","","AthenaAllAlgsTrue","OldConfig").makeJobOption() - - # memleak checks (old config) - TrigValJobOptionBuilder("","","","","OldConfig","","","memTrack","NODEBUG").makeJobOption() - TrigValJobOptionBuilder("","","","","OldConfig","","ESDAOD","memTrack","NODEBUG").makeJobOption() - TrigValJobOptionBuilder("","","","AthenaAllAlgsTrue","OldConfig","","","memTrack","NODEBUG").makeJobOption() - TrigValJobOptionBuilder("","Electron","","","OldConfig","","","memTrack","NODEBUG").makeJobOption() - TrigValJobOptionBuilder("","","","AthenaStandalone","OldConfig","","","","").makeJobOption() - # memleak checks (new config) - TrigValJobOptionBuilder("","","","","Modern","","","memTrack","NODEBUG").makeJobOption() - TrigValJobOptionBuilder("","","","","Modern","","ESDAOD","memTrack","NODEBUG").makeJobOption() - TrigValJobOptionBuilder("","","","AthenaAllAlgsTrue","Modern","","","memTrack","NODEBUG").makeJobOption() - TrigValJobOptionBuilder("","Electron","","","Modern","","","memTrack","NODEBUG").makeJobOption() - TrigValJobOptionBuilder("","","","AthenaStandalone","Modern","","","","").makeJobOption() - - # Detector specific - makeDetector("Calo") - makeDetector("ID") - makeDetector("Muon") - - # Slice specific - makeAllSlices() - makeAllSlicesOldConfig() - makeSlice("Cosmics", "", "OldConfig", "RDO") - makeSlice("Cosmics", "", "Modern", "RDO") - - # moving Bphys here temporarily because it needs special flags (RPC hack) - RG 23/8 - TrigValJobOptionBuilder("","Bphysics","","","OldConfig","","","hackRPC","").makeJobOption() - TrigValJobOptionBuilder("","Bphysics","","","Modern","","","hackRPC","").makeJobOption() - - # write ESD - TrigValJobOptionBuilder("","","","","OldConfig","RDO","ESDAOD","","").makeJobOption() - TrigValJobOptionBuilder("","","","","Modern","RDO","ESDAOD","","").makeJobOption() - makeAllSlices("","RDO","ESDAOD") - makeAllSlicesOldConfig("","RDO","ESDAOD") - - #read ESD - TrigValJobOptionBuilder("","","","","OldConfig","ESD","AOD","","").makeJobOption() - TrigValJobOptionBuilder("","","","","Modern","ESD","AOD","","").makeJobOption() - #read ESD - TrigValJobOptionBuilder("","","","","OldConfig","ESD","","rerunHYPO","").makeJobOption() - TrigValJobOptionBuilder("","","","","OldConfig","AOD","","rerunHYPO","").makeJobOption() - TrigValJobOptionBuilder("","","","","Modern","ESD","","rerunHYPO","").makeJobOption() - TrigValJobOptionBuilder("","","","","Modern","AOD","","rerunHYPO","").makeJobOption() - - #write BS - TrigValJobOptionBuilder("","","","","OldConfig","RDO","BS","","").makeJobOption() - TrigValJobOptionBuilder("","","","","Modern","RDO","BS","","").makeJobOption() - #read BS (standalone) - TrigValJobOptionBuilder("","","","AthenaStandalone","OldConfig","BS","","","").makeJobOption() - TrigValJobOptionBuilder("","","","AthenaStandalone","OldConfig","BStmp","","","").makeJobOption() - TrigValJobOptionBuilder("","","","AthenaStandalone","Modern","BS","","","").makeJobOption() - TrigValJobOptionBuilder("","","","AthenaStandalone","Modern","BStmp","","","").makeJobOption() - makeAllSlices("AthenaStandalone","BStmp") - makeAllSlicesOldConfig("AthenaStandalone","BStmp") - - #standalone tests - TrigValJobOptionBuilder("","Electron","","","OldConfig","","","memTrack","NODEBUG").makeJobOption() - TrigValJobOptionBuilder("","Electron","","","Modern","","","memTrack","NODEBUG").makeJobOption() - - - -################################################################################### -def usage(): - print """To run the script do : -./TrigValMakeJobOption <options> - - where <options> are - -h , --help - print this message - -o , --options - print all options of TrigValMakeJobBuilder - -a , --all - make all jobOptions - -d , --detector <Det> - make jobO for a particular detector Calo, ID, Muon - -s , --slice <slice> - make jobO for a particular slice : Electron, Photon, Muon, - Tau, Jet, MET, - Bjet, Bphysics, Cosmics -""" -def lastStep(): - print "to copy it is to relase do : " - print " mv TriggerTest/* ../share/" - print " mv TrigAnalysisTest/* ../../TrigAnalysisTest/share/" - -def warning() : - answer = raw_input("This scripts overwrites files in TriggerTest directory. Are you sure you want to proceed (y/n)?") - if( answer.lower() != "y" and answer.lower() != "yes" ) : - import sys - sys.exit("Nothing is touched") - -def main(): - try: - opts, args = getopt.getopt(sys.argv[1:], "ds:hoa", ["help", "options", "all=","slice=","detector="]) - except getopt.GetoptError: - # print help information and exit: - usage() - sys.exit(2) - output = None - verbose = False - if( opts == [] ) : - #usage() - #sys.exit(2) - makeAll() - lastStep() - sys.exit() - for o, a in opts: - if o in ("-h", "--help"): - usage() - sys.exit() - if o in ("--options", "-o"): - TrigValJobOptionBuilder().help() - sys.exit() - if o in ("-s", "--slice"): - #warning() - makeSlice(a) - lastStep() - if o in ("-d", "--detector"): - #warning() - makeDetector(a) - lastStep() - if o in ("-a", "--all"): - #warning() - makeAll() - lastStep() - sys.exit() - # ... - -if __name__ == "__main__": - main() diff --git a/Trigger/TrigValidation/TriggerTest/python/trigValMakeTests.py b/Trigger/TrigValidation/TriggerTest/python/trigValMakeTests.py deleted file mode 100755 index bbb85beca7c..00000000000 --- a/Trigger/TrigValidation/TriggerTest/python/trigValMakeTests.py +++ /dev/null @@ -1,282 +0,0 @@ -#!/usr/bin/env python - -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from RecExConfig.RecFlags import rec -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags as acf - -import getopt, sys -################################################## -# DEFAULTS - -output="" -defaultPath="TriggerTest" -testConfName="trigValidation.conf" -defaultEmail="" -defaultHNEmail="hn-atlas-trig-validation-nightly-reports@cern.ch" -import os -if( not os.path.isdir(defaultPath )) : - os.makedirs( defaultPath ) - - - -#################################################### - -from TrigValMakeTestConf import TrigValMakeTestConf - -def warning() : - answer = raw_input("This scripts overwrites files in TriggerTest directory. Are you sure you want to proceed (y/n)?") - if( answer.lower() != "y" and answer.lower() != "yes" ) : - import sys - sys.exit("Nothing is touched") - -def detectorSet(icounter, testBase=120, config="Modern", output="" ) : - - if( output != "" ) : output = "to"+output - - itest=testBase - icounter+= 1 - TrigValMakeTestConf(testConfName, icounter, itest, "CaloAthena"+config+"RDO"+output, - ['Full' ],"testCalo", [defaultEmail, "Denis.Damazio@cern.ch"], "", ) -# ['T2CaloEgamma_eGamma','T2CaloTau_Tau', 'T2TauFinal', 'TauHypo' ],"testCalo", [defaultEmail]) - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter, itest, "IDAthena"+config+"RDO"+output, - ['Full'], "testID", [defaultEmail, "Denis.Damazio@cern.ch"], "" ) - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter,itest , "MuonAthena"+config+"RDO"+output, - ['Muon'], "", [defaultEmail], "" ) - -def sliceSet(icounter, testBase=150, config="Modern", iinput="", output="", path="TriggerTest") : - - if( iinput == "" ) : iinput = "RDO" - if( output != "" ) : output = "to"+output - if( iinput == "BS" or iinput == "BStmp" ) : config = "Standalone"+config - - - icounter+= 1 - itest=testBase+1 - TrigValMakeTestConf(testConfName, icounter, itest, "ElectronSliceAthena"+config+iinput+output, - ['Full'], "testElectronSlice" , - [defaultEmail, "Denis.Damazio@cern.ch","Teresa.Fonseca.Martin@cern.ch"], path ) - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter, itest, "PhotonSliceAthena"+config+iinput+output, - ['Full'], "testPhotonSlice", - [defaultEmail,"Valeria.Perez.Reale@cern.ch"], path) - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter, itest, "MuonSliceAthena"+config+iinput+output, - ['Full'], "testMuonSlice", - [defaultEmail,"alessandro.dimattia@roma1.infn.it"], path) - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter, itest, "TauSliceAthena"+config+iinput+output, - ['Full'], "testTauSlice", - [defaultEmail,"strom@physics.uoregon.edu"], path) - - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter, itest, "JetSliceAthena"+config+iinput+output, - ['Full'], "testJetSlice", [defaultEmail,"cpotter@physics.mcgill.ca"], path) - - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter, itest, "METSliceAthena"+config+iinput+output, - ['Full'], "testMETSlice", - [defaultEmail,"Allen.Mincer@cern.ch"], path) - - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter, itest, "BphysicsSliceAthena"+config+iinput+output, - ['Full'] , "testBphysicsSlice", - [defaultEmail,"j.kirk@rl.ac.uk"], path) - - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter, itest, "BjetSliceAthena"+config+iinput+output, - [ 'Full'], "testBjetSlice", - [defaultEmail,"Andrea.Coccaro@cern.ch"], path) - - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter, itest, "LVL1CTPAthena"+config+iinput+output, - [ 'LVL1CTP' ], "testLVL1CTP", - [ defaultEmail, "Wolfgang.Ehrenfeld@cern.ch"], path) - - if( iinput == "RDO" and output == "" ) : #toESDAOD" and output !="toAOD" and output != "toESD" ) : - icounter+= 1 - itest +=1 - TrigValMakeTestConf(testConfName, icounter, itest, "CosmicsSliceAthena"+config+iinput+output, - ['Full'], "testCosmicsSlice", [defaultEmail,"jamie.boyd@cern.ch"], path) - - - -def main(): - #warning() - testConfigFullPath=defaultPath+"/"+testConfName - - try : - testCF = open(testConfigFullPath,"w") # remove everything - we will prepare new tests - testCF.write("# This file is created automatically . To recreate it use :\n") - testCF.write("# python makeTests.py\n") - testCF.write("# from Trigger/TrigValidation/TriggerTest/python directory \n") - - testCF.close() - - ######################################################### - # PUT YOUR MODIFICATIONS BELOW THIS LINE - ######################################################### - - # by default NO AOD link from tmp directory is made. - - icounter = 1 - TrigValMakeTestConf(testConfName, icounter, 101, "AthenaModernRDO", - ['Full'],"testAthenaRDO", [defaultHNEmail], "", - makeReferenceLink=True ) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 201, "AthenaOldConfigRDO", - ['Full'],"testAthenaRDO", [defaultHNEmail], "", - makeReferenceLink=True ) - - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 102, "AthenaAllAlgsTrueModernRDO", - ['Full'], "testAthenaRDO", [defaultEmail], "", - useTmpReference=True ) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 202, "AthenaAllAlgsTrueOldConfigRDO", - ['Full'], "testAthenaRDO", [defaultEmail], "", - useTmpReference=True ) - - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 103, "AthenaModernRDOtoBS", - ['Full'],"testAthenaRDO", [defaultEmail], "", - post_command="rm -f ../trigger.BS.data; ln -s $PWD/daq.csc13.0000000.Single.Stream.LB0000.Athena._0001.data ../trigger.BS.data", - useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 203, "AthenaOldConfigRDOtoBS", - ['Full'],"testAthenaRDO", [defaultEmail], "", - post_command="rm -f ../trigger.BS.data; ln -s $PWD/daq.csc13.0000000.Single.Stream.LB0000.Athena._0001.data ../trigger.BS.data", - useTmpReference=True) - - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 104, "AthenaModernRDOtoESDAOD", - ['Full'],"testAthenaRDO", [defaultEmail], "TrigAnalysisTest", - post_command="rm -f ../trigger*root; rm -f ../output*xml; ln -s $PWD/ESD.pool.root ../trigger.ESD.pool.root; ln -s $PWD/AOD.pool.root ../trigger.AOD.pool.root; \n post_command ln -s $PWD/outputLVL1config.xml ../outputLVL1config.xml; \n post_command ln -s $PWD/outputHLTconfig.xml ../outputHLTconfig.xml;", useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 204, "AthenaOldConfigRDOtoESDAOD", - ['Full'],"testAthenaRDO", [defaultEmail], "TrigAnalysisTest", - post_command="rm -f ../trigger*root; rm -f ../output*xml; ln -s $PWD/ESD.pool.root ../trigger.ESD.pool.root; ln -s $PWD/AOD.pool.root ../trigger.AOD.pool.root; \n post_command ln -s $PWD/outputLVL1config.xml ../outputLVL1config.xml; \n post_command ln -s $PWD/outputHLTconfig.xml ../outputHLTconfig.xml;", useTmpReference=True) - - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 105, "AthenaModernAOD_rerunHYPO", - ['Full'],"testAthenaRDO", [defaultEmail], "TrigAnalysisTest", - useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 205, "AthenaOldConfigAOD_rerunHYPO", - ['Full'],"testAthenaRDO", [defaultEmail], "TrigAnalysisTest", - useTmpReference=True) - - - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 106, "AthenaStandaloneModernRDO", - ['Full'],"testAthenaRDO", [defaultEmail], "", - useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 206, "AthenaStandaloneOldConfigRDO", - ['Full'],"testAthenaRDO", [defaultEmail], "", - useTmpReference=True) - - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 107, "AthenaStandaloneModernBS", - ['Full'],"testAthenaRDO", [defaultEmail], "", - useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 207, "AthenaStandaloneOldConfigBS", - ['Full'],"testAthenaRDO", [defaultEmail], "", - useTmpReference=True) - - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 108, "AthenaStandaloneModernBStmp", - ['Full'],"testAthenaRDO", [defaultEmail], "", - useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 208, "AthenaStandaloneOldConfigBStmp", - ['Full'],"testAthenaRDO", [defaultEmail], "", - useTmpReference=True) - - - detectorSet(icounter, 110, "Modern", "") - icounter += 3 - detectorSet(icounter, 210, "OldConfig", "") - icounter += 3 - sliceSet(icounter, 130, "Modern", "RDO", "") - icounter += 9 - sliceSet(icounter, 230, "OldConfig", "RDO", "") - #icounter += 9 - #sliceSet(icounter, 160, "RDO", "ESD","TrigAnalysisTest") - #icounter += 9 - #sliceSet(icounter, 170, "RDO", "AOD","TrigAnalysisTest") - icounter += 9 - sliceSet(icounter, 150, "Modern", "RDO", "ESDAOD","TrigAnalysisTest") - icounter += 9 - sliceSet(icounter, 250, "OldConfig", "RDO", "ESDAOD","TrigAnalysisTest") - icounter += 9 - sliceSet(icounter, 170, "Modern", "BStmp", "","") - icounter += 9 - sliceSet(icounter, 270, "OldConfig", "BStmp", "","") - - icounter += 9 - TrigValMakeTestConf(testConfName, icounter, 301, "AthenaAllAlgsTrueModernRDO_memTrack", - ['Full'], "testAthenaRDO", [defaultEmail], "", - useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 402, "AthenaAllAlgsTrueOldConfigRDO_memTrack", - ['Full'], "testAthenaRDO", [defaultEmail], "", - useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 303, "AthenaModernRDO_memTrack", - ['Full'],"testAthenaRDO", [defaultEmail], "", - useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 404, "AthenaOldConfigRDO_memTrack", - ['Full'],"testAthenaRDO", [defaultEmail], "", - useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 305, "AthenaModernRDOtoESDAOD_memTrack", - ['Full'],"testAthenaRDO", [defaultEmail], "TrigAnalysisTest", - useTmpReference=True) - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 406, "AthenaOldconfigRDOtoESDAOD_memTrack", - ['Full'],"testAthenaRDO", [defaultEmail], "TrigAnalysisTest", - useTmpReference=True) - - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 351, "ElectronSliceAthenaModernRDO_memTrack", - ['Full'], "testElectronSlice" , - [defaultEmail], "") - icounter += 1 - TrigValMakeTestConf(testConfName, icounter, 452, "ElectronSliceAthenaOldConfigRDO_memTrack", - ['Full'], "testElectronSlice" , - [defaultEmail], "") - - - - import os - os.rename( testConfName, testConfigFullPath) - print "trigtest config file created as "+testConfigFullPath - print " to put this in release do : " - print " mv TriggerTest/*sh ../test" - print " mv "+defaultPath+"/"+testConfName+" ../Testing" - print " mv TrigAnalysisTest/*sh ../../TrigAnalysisTest/test" - - - ############################################################# - - except IOError: - print "TrigValMakeTests ERROR: Can not open "+testConfigFullPath+". will do nothing" - - -if __name__ == "__main__": - main() -- GitLab