From eff1560e8b1bfca28d9b4f7c767e7d5722f35b95 Mon Sep 17 00:00:00 2001
From: Nora Emilia Pettersson <npetters@pcumass4.dyndns.cern.ch>
Date: Fri, 29 Nov 2019 12:39:00 +0100
Subject: [PATCH] Add new cutlevel for maxIPcut 5 for ATLIDTRKCP-221

---
 .../InDetRecExample/python/ConfiguredNewTrackingCuts.py      | 5 ++++-
 .../InDetRecExample/python/InDetJobProperties.py             | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/InnerDetector/InDetExample/InDetRecExample/python/ConfiguredNewTrackingCuts.py b/InnerDetector/InDetExample/InDetRecExample/python/ConfiguredNewTrackingCuts.py
index 41d470d9d58..cf1970edc42 100755
--- a/InnerDetector/InDetExample/InDetRecExample/python/ConfiguredNewTrackingCuts.py
+++ b/InnerDetector/InDetExample/InDetRecExample/python/ConfiguredNewTrackingCuts.py
@@ -213,7 +213,10 @@ class ConfiguredNewTrackingCuts :
     if self.__indetflags.cutLevel() >= 15 :
       self.__minClusters             = 8 #based on studies by R.Jansky     
 
-    if self.__indetflags.cutLevel() >= 16:
+    if self.__indetflags.cutLevel() >= 16 :
+      self.__maxPrimaryImpact        = 5.0 * Units.mm #based on studies by T.Strebler
+
+    if self.__indetflags.cutLevel() >= 17:
       print '--------> FATAL ERROR, cut level undefined, abort !'
       import sys
       sys.exit()
diff --git a/InnerDetector/InDetExample/InDetRecExample/python/InDetJobProperties.py b/InnerDetector/InDetExample/InDetRecExample/python/InDetJobProperties.py
index 08e26294a21..6f36c697279 100644
--- a/InnerDetector/InDetExample/InDetRecExample/python/InDetJobProperties.py
+++ b/InnerDetector/InDetExample/InDetRecExample/python/InDetJobProperties.py
@@ -301,7 +301,7 @@ class cutLevel(InDetFlagsJobProperty):
     """
     statusOn     = True
     allowedTypes = ['int']
-    allowedValues= [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
+    allowedValues= [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
     StoredValue  = 14
 
 class doBremRecovery(InDetFlagsJobProperty):
-- 
GitLab