From eaca0f9a2d0fd34d745839fd7c98a48ce18a8cd5 Mon Sep 17 00:00:00 2001
From: Hass AbouZeid <hass.abouzeid@cern.ch>
Date: Fri, 16 Jun 2017 18:42:47 +0000
Subject: [PATCH] Merge branch 'RecExCommon_ATLASRECTS_4062' into '21.0'

Rec ex common atlasrects 4062

See merge request !2739

Former-commit-id: 5becbedf111f723bc9d045b5cb6136768be5fd13
---
 .../share/postIncludeForBLSStream.py          | 31 +++++++++++++++++++
 .../share/preIncludeForBLSStream.py           |  9 ++++++
 2 files changed, 40 insertions(+)
 create mode 100644 Reconstruction/RecExample/RecExCommon/share/postIncludeForBLSStream.py
 create mode 100644 Reconstruction/RecExample/RecExCommon/share/preIncludeForBLSStream.py

diff --git a/Reconstruction/RecExample/RecExCommon/share/postIncludeForBLSStream.py b/Reconstruction/RecExample/RecExCommon/share/postIncludeForBLSStream.py
new file mode 100644
index 00000000000..918d30348e4
--- /dev/null
+++ b/Reconstruction/RecExample/RecExCommon/share/postIncludeForBLSStream.py
@@ -0,0 +1,31 @@
+#This is a postInclude file to be used to run the BLS stream in production.                                                                                                          
+#Author: James Walder   
+removed_items = []
+
+items_to_remove = ['SlowMuonContainer','SlowMuonAuxContainer',
+                'PFOContainer', 'PFOAuxContainer','ParticleFlow',
+                'JetContainer', 'JetAuxContainer','PFlow',
+                'BTaggingContainer','BTaggingAuxContainer',
+                'BTagVertexContainer','BTagVertexAuxContainer','BTagging_',
+                'JetMomentMap',
+                'EventShape','EventShapeAuxInfo',
+                'ForwardElectrons','ForwardElectronsAux',
+                'DiTauJets',
+                'InDetForwardTrackParticles','CombinedStauTrackParticles',
+                'xAOD::MuonContainer#Staus','xAOD::MuonAuxContainer#StausAux',
+                ]
+
+
+
+for item in CILMergeAOD.list():
+    for toremove in items_to_remove:
+        if toremove in item:
+            removed_items.append(item)
+
+CILMergeAOD.removeItem(removed_items)
+
+StreamAOD.ItemList=CILMergeAOD()
+print CILMergeAOD.list()
+
+
+
diff --git a/Reconstruction/RecExample/RecExCommon/share/preIncludeForBLSStream.py b/Reconstruction/RecExample/RecExCommon/share/preIncludeForBLSStream.py
new file mode 100644
index 00000000000..f1b7bdb21f8
--- /dev/null
+++ b/Reconstruction/RecExample/RecExCommon/share/preIncludeForBLSStream.py
@@ -0,0 +1,9 @@
+#This is a preInclude file to be used to run the BLS stream in production.
+#Author: James Walder
+from InDetRecExample.InDetJobProperties import InDetFlags
+InDetFlags.KeepParameters.set_Value_and_Lock(True)
+InDetFlags.keepAdditionalHitsOnTrackParticle.set_Value_and_Lock(True)
+InDetFlags.cutLevel.set_Value_and_Lock(13)
+
+TriggerFlags.AODEDMSet.set_Value_and_Lock("AODBLSSLIM")
+
-- 
GitLab