From ed8469843e41d9823d81ea78a1edc6876b55a205 Mon Sep 17 00:00:00 2001
From: Mark Hodgkinson <m.hodgkinson@sheffield.ac.uk>
Date: Fri, 16 Jun 2017 11:35:18 +0100
Subject: [PATCH] Add pre and postInclude files for BLS Stream

Former-commit-id: 1c66b6ff31eacf3bf6d940f1fbf8dfd74100fc2e
---
 .../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..be1a8356205
--- /dev/null
+++ b/Reconstruction/RecExample/RecExCommon/share/postIncludeForBLSStream.py
@@ -0,0 +1,31 @@
+#This is a preInclude 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