From cfa29da03cbeac49c8fb4ecaa47c72d79e0cb6d6 Mon Sep 17 00:00:00 2001
From: --replace-all <ned.howarth@liverpool.ac.uk>
Date: Mon, 17 Jul 2023 18:03:36 +0200
Subject: [PATCH 1/2] Rename B2LcLcK to B2LcLcKLoose and add B2LcLcK

---
 .../StrippingB2OC/Beauty2Charm_Lb2XBuilder.py         | 11 ++++++++---
 .../StrippingB2OC/StrippingBeauty2Charm.py            |  1 +
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/Beauty2Charm_Lb2XBuilder.py b/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/Beauty2Charm_Lb2XBuilder.py
index 089a71c4a..735aacb51 100644
--- a/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/Beauty2Charm_Lb2XBuilder.py
+++ b/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/Beauty2Charm_Lb2XBuilder.py
@@ -1457,13 +1457,18 @@ class Lb2XBuilder(object):
 
     def _makeB2LcLcK(self):
         '''Make B- -> Lc- Lc+ K- + cc.'''
-        config = deepcopy(self.config)
-        config['BPVIPCHI2_MAX'] = '50'
         decays = {'B2LcLcK': ["[B- -> Lambda_c~- Lambda_c+ K-]cc"]}
         inputs = {'B2LcLcK': self.lc + self.topoKaons_pid}
-        rs = makeB2XSels(decays, 'Lc2PKPi', inputs, config)
+        rs = makeB2XSels(decays, 'Lc2PKPi', inputs, self.config)
         self.lines.append(ProtoLine(rs, 1.0))
 
+        configLoose = deepcopy(self.config)
+        configLoose['BPVIPCHI2_MAX'] = '50'
+        decays = {'B2LcLcKLoose': ["[B- -> Lambda_c~- Lambda_c+ K-]cc"]}
+        inputs = {'B2LcLcKLoose': self.lc + self.topoKaons_pid}
+        rsLoose = makeB2XSels(decays, 'Lc2PKPi', inputs, configLoose)
+        self.lines.append(ProtoLine(rsLoose, 1.0))
+
     def _makeLb2XicH(self):
         '''Make RS and WS Lb -> Xi_c+ H (H=pi,K) + cc.'''
         pions = self.topoPions
diff --git a/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/StrippingBeauty2Charm.py b/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/StrippingBeauty2Charm.py
index d37035ded..5dc20a3b6 100644
--- a/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/StrippingBeauty2Charm.py
+++ b/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/StrippingBeauty2Charm.py
@@ -1585,6 +1585,7 @@ default_config = {
             'StrippingB2LcpbarLc2PKPiBeauty2CharmLine',
             'StrippingB2LcpbarWSLc2PKPiBeauty2CharmLine',
             'StrippingB2LcLcKLc2PKPiBeauty2CharmLine',
+            'StrippingB2LcLcKLooseLc2PKPiBeauty2CharmLine',
             'StrippingB02LcpbarKSDDLc2PKPiBeauty2CharmLine',
             'StrippingB02LcpbarKSWSDDLc2PKPiBeauty2CharmLine',
             'StrippingB02LcpbarKSLLLc2PKPiBeauty2CharmLine',
-- 
GitLab


From 35587d8ed9e14918685cd252fb65b08952ee1e7a Mon Sep 17 00:00:00 2001
From: --replace-all <ned.howarth@liverpool.ac.uk>
Date: Mon, 17 Jul 2023 18:42:17 +0200
Subject: [PATCH 2/2] Apply loose cuts only to B2LcLcKLoose line

---
 .../StrippingSelections/StrippingB2OC/Beauty2Charm_Utils.py     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/Beauty2Charm_Utils.py b/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/Beauty2Charm_Utils.py
index 3f9ac55e6..f9a879f73 100644
--- a/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/Beauty2Charm_Utils.py
+++ b/Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/Beauty2Charm_Utils.py
@@ -229,7 +229,7 @@ def makeB2X(name, decay, inputs, config, useIP=True, resVert=True):
         )
         comboCuts += "& (ACHILD(P,2) <100000*MeV)"
     
-    if name.find('Lb2LcLcn') >= 0 or name.find('B2LcLcK') >= 0:
+    if name.find('Lb2LcLcn') >= 0 or name.find('B2LcLcKLoose') >= 0:
         comboCuts = LoKiCuts(['AM'], config).code()
         momCuts = [
             LoKiCuts(['VCHI2DOF'], config).code(),
-- 
GitLab