From 96cccbfcff6ff222540439301ffb6273750e2a43 Mon Sep 17 00:00:00 2001
From: Peter Berta <peter.berta@cern.ch>
Date: Thu, 6 Jan 2022 17:27:30 +0100
Subject: [PATCH] added a separate q221 test where PhysVal test do not use MET

---
 Tools/Tier0ChainTests/test/test_q221.sh       |  3 --
 .../test/test_q221_PhysVal_noMET.sh           | 30 +++++++++++++++++++
 2 files changed, 30 insertions(+), 3 deletions(-)
 create mode 100755 Tools/Tier0ChainTests/test/test_q221_PhysVal_noMET.sh

diff --git a/Tools/Tier0ChainTests/test/test_q221.sh b/Tools/Tier0ChainTests/test/test_q221.sh
index 845caa362918..80861e0ad98d 100755
--- a/Tools/Tier0ChainTests/test/test_q221.sh
+++ b/Tools/Tier0ChainTests/test/test_q221.sh
@@ -25,9 +25,6 @@ echo "art-result: $rc1 Reco"
 rc2=-9999
 if [ ${rc1} -eq 0 ]
 then
-  Reco_tf.py --validationFlags 'doExample,doPFlow_FlowElements,doTau,doEgamma,doBtag,doZee,doJet,doTopoCluster,doMuon,doTrigMinBias,doTrigIDtrk,doTrigBphys,doTrigMET,doTrigJet,doTrigTau, doTrigEgamma,doTrigMuon,doTrigBjet,doTrigHLTResult' --inputAODFile=myAOD.pool.root  --outputNTUP_PHYSVALFile=myNTUP_PHYSVAL.root
-  echo "art-result: $? PhysVal, no MET"
-
   Reco_tf.py --validationFlags 'doExample,doMET,doPFlow_FlowElements,doTau,doEgamma,doBtag,doZee,doJet,doTopoCluster,doMuon,doTrigMinBias,doTrigIDtrk,doTrigBphys,doTrigMET,doTrigJet,doTrigTau, doTrigEgamma,doTrigMuon,doTrigBjet,doTrigHLTResult' --inputAODFile=myAOD.pool.root  --outputNTUP_PHYSVALFile=myNTUP_PHYSVAL.root
   echo "art-result: $? PhysVal, with MET"
 
diff --git a/Tools/Tier0ChainTests/test/test_q221_PhysVal_noMET.sh b/Tools/Tier0ChainTests/test/test_q221_PhysVal_noMET.sh
new file mode 100755
index 000000000000..4a65246e954e
--- /dev/null
+++ b/Tools/Tier0ChainTests/test/test_q221_PhysVal_noMET.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# art-description: RecoTrf
+# art-type: grid
+# art-include: 21.0/Athena
+# art-include: master/Athena
+# art-include: 22.0-mc20/Athena
+# art-include: 21.3/Athena
+# art-include: 21.9/Athena
+# art-athena-mt: 8
+
+Reco_tf.py \
+--AMI=q221 \
+--athenaopts='--threads=8' \
+--conditionsTag 'all:OFLCOND-MC16-SDR-RUN2-09' \
+--preExec 'all:from IOVDbSvc.CondDB import conddb; conddb.addOverride("/PIXEL/PixMapOverlay","PixMapOverlay-SIM-MC16-000-03"); rec.Commissioning.set_Value_and_Lock(True); from AthenaCommon.BeamFlags import jobproperties; jobproperties.Beam.numberOfCollisions.set_Value_and_Lock(0.); from LArROD.LArRODFlags import larRODFlags; larRODFlags.nSamples.set_Value_and_Lock(4); from TriggerJobOpts.TriggerFlags import TriggerFlags; TriggerFlags.AODEDMSet="AODFULL"' 'HITtoRDO:from Digitization.DigitizationFlags import digitizationFlags;digitizationFlags.overrideMetadata+=["PhysicsList"]' 'RAWtoESD:from CaloRec.CaloCellFlags import jobproperties;jobproperties.CaloCellFlags.doLArCellEmMisCalib=False' 'ESDtoAOD:from JetRec.JetRecFlags import jetFlags; jetFlags.writeJetsToAOD.set_Value_and_Lock(True); from METReconstruction.METRecoFlags import metFlags; metFlags.WriteMETAssocToOutput.set_Value_and_Lock(True)' \
+--maxEvents=500 \
+--outputRDOFile=myRDO.pool.root --outputAODFile=myAOD.pool.root --outputESDFile=myESD.pool.root --outputHISTFile=myHIST.root --imf False
+
+rc1=$?
+echo "art-result: $rc1 Reco"
+
+
+
+rc2=-9999
+if [ ${rc1} -eq 0 ]
+then
+  Reco_tf.py --validationFlags 'doExample,doPFlow_FlowElements,doTau,doEgamma,doBtag,doZee,doJet,doTopoCluster,doMuon,doTrigMinBias,doTrigIDtrk,doTrigBphys,doTrigMET,doTrigJet,doTrigTau, doTrigEgamma,doTrigMuon,doTrigBjet,doTrigHLTResult' --inputAODFile=myAOD.pool.root  --outputNTUP_PHYSVALFile=myNTUP_PHYSVAL.root
+  echo "art-result: $? PhysVal, no MET"
+fi
-- 
GitLab