From 61df6086c79049a3f21cb61a139a1ebb91edf563 Mon Sep 17 00:00:00 2001
From: "Matthew.James.Tilley" <matthew.james.tilley@cern.ch>
Date: Wed, 27 Apr 2016 10:54:06 +0200
Subject: [PATCH 1/3] adding trigger for b2pptaunu in XcMuXForTau

---
 Hlt/Hlt2Lines/doc/release.notes                          | 3 +++
 Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Lines.py      | 2 ++
 Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Stages.py     | 9 ++++++---
 Hlt/HltSettings/doc/release.notes                        | 3 +++
 .../XcMuXForTau/XcMuXForTau_25ns_Draft2016.py            | 2 ++
 .../HltSettings/XcMuXForTau/XcMuXForTau_pp_May2016.py    | 2 ++
 6 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/Hlt/Hlt2Lines/doc/release.notes b/Hlt/Hlt2Lines/doc/release.notes
index 98dbcc427..7543b7275 100644
--- a/Hlt/Hlt2Lines/doc/release.notes
+++ b/Hlt/Hlt2Lines/doc/release.notes
@@ -8,6 +8,9 @@
 !
 !----------------------------------------------------------------------------
 
+! 2016-04-27 - Matthew Tilley
+ - Added trigger for b2pptaunu into XcMuXForTau lines
+
 !========================= Hlt2Lines v10r9 2016-04-20 =========================
 
 ! 2016-04-19 - Roel Aaij
diff --git a/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Lines.py b/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Lines.py
index b485b6e92..6683ab306 100644
--- a/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Lines.py
+++ b/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Lines.py
@@ -37,6 +37,8 @@ class XcMuXForTauLines(Hlt2LinesConfigurableUser):
                             , 'Ds_AM_MAX'              : 2010.0 * MeV
                             , 'Lc_AM_MIN'              : 2230.0 * MeV
                             , 'Lc_AM_MAX'              : 2330.0 * MeV
+                            , 'JPsi_AM_MIN'              : 1500.0 * MeV
+                            , 'JPsi_AM_MAX'              : 6000.0 * MeV
                             },
                  'Muon' : {
                              'Mu_IPCHI2'    : 16
diff --git a/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Stages.py b/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Stages.py
index a8c65dc67..6be9e01c3 100644
--- a/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Stages.py
+++ b/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Stages.py
@@ -53,6 +53,8 @@ class D2XCombiner(Hlt2Combiner):
             masscut = "in_range(%(Ds_AM_MIN)s,  AM, %(Ds_AM_MAX)s)"
         if masswindow == 'Lc':
             masscut = "(in_range(%(Lc_AM_MIN)s,  AM, %(Lc_AM_MAX)s))"
+        if masswindow == 'Jpsi':
+            masscut = "(in_range(%(Jpsi_AM_MIN)s,  AM, %(Jpsi_AM_MAX)s))"
         combcuts = masscut + " &((APT1 > %(MIN_D_CHILDPT)s) " \
             "| (APT2 > %(MIN_D_CHILDPT)s)" \
             "| (APT3 > %(MIN_D_CHILDPT)s)" \
@@ -81,9 +83,10 @@ D02k3piComb   = D2XCombiner("XcMuXForTauK3Pi","Xc","[D0 -> K- pi+ pi- pi+]cc",[f
 Dplus2kpipiComb   = D2XCombiner("XcMuXForTauKPiPi","Xc","[D+ -> K- pi+ pi+]cc",[filteredDPions, filteredDKaons],"D")
 Ds2kkpiComb   = D2XCombiner("XcMuXForTauKKPi","Xc","[D+ -> K- K+ pi+]cc",[filteredDPions, filteredDKaons],"Ds")
 Lc2pkpiComb   = D2XCombiner("XcMuXForTauPKPi","Xc","[Lambda_c+ -> p+ K- pi+]cc",[filteredDPions, filteredDKaons,filteredDProtons],"Lc")
+Jpsi2ppComb = D2XCombiner("XcMuXForTauPP","Xc","[J/psi(1s) -> p~- p+]",[filteredDProtons], "Jpsi")
 
 # Merge Combiners
-MergeAllXc = Hlt2MergedStage('MergedXc', inputs = [D02kpiComb,D02k3piComb,Dplus2kpipiComb,Ds2kkpiComb,Lc2pkpiComb],shared=True)
+MergeAllXc = Hlt2MergedStage('MergedXc', inputs = [D02kpiComb,D02k3piComb,Dplus2kpipiComb,Ds2kkpiComb,Lc2pkpiCombi,Jpsi2ppComb],shared=True)
 
 
 class B2XMuCombiner(Hlt2Combiner):
@@ -106,6 +109,6 @@ class B2XMuCombiner(Hlt2Combiner):
                               shared=True)
 
 
-B2XcMuComb = B2XMuCombiner("B2XcMuComb","B",[ "[B+ -> D0 mu+]cc", "[B+ -> D0 mu-]cc","[B+ -> D- mu+]cc", "[B+ -> D- mu-]cc","[B+ -> Lambda_c~- mu+]cc", "[B+ -> Lambda_c~- mu-]cc"],[filteredMuons,MergeAllXc])
-B2XcFakeMuComb = B2XMuCombiner("B2XcFakeMuComb","B",[ "[B+ -> D0 pi+]cc", "[B+ -> D0 pi-]cc","[B+ -> D- pi+]cc", "[B+ -> D- pi-]cc","[B+ -> Lambda_c~- pi+]cc", "[B+ -> Lambda_c~- pi-]cc"],[filteredPions,MergeAllXc])
+B2XcMuComb = B2XMuCombiner("B2XcMuComb","B",["[B+ -> J/psi(1S) mu+ ]cc","[B+ -> D0 mu+]cc","[B+ -> D0 mu-]cc","[B+ -> D- mu+]cc", "[B+ -> D- mu-]cc","[B+ -> Lambda_c~- mu+]cc", "[B+ -> Lambda_c~- mu-]cc"],[filteredMuons,MergeAllXc])
+B2XcFakeMuComb = B2XMuCombiner("B2XcFakeMuComb","B",["[B+ -> J/psi(1S) pi+]cc","[B+ -> D0 pi+]cc", "[B+ -> D0 pi-]cc","[B+ -> D- pi+]cc", "[B+ -> D- pi-]cc","[B+ -> Lambda_c~- pi+]cc", "[B+ -> Lambda_c~- pi-]cc"],[filteredPions,MergeAllXc])
 
diff --git a/Hlt/HltSettings/doc/release.notes b/Hlt/HltSettings/doc/release.notes
index 39c9dee7c..38dba42c3 100644
--- a/Hlt/HltSettings/doc/release.notes
+++ b/Hlt/HltSettings/doc/release.notes
@@ -4,6 +4,9 @@
 ! Purpose     : All trigger threshold settings
 !-----------------------------------------------------------------------------
 
+! 2016-04-27 - Matthew Tilley
+ - Included cuts for b2pptaunu trigger in XcMuXForTau lines
+
 !========================= HltSettings v7r9 2016-04-20 =========================
 
 ! 2016-04-19 - Roel Aaij
diff --git a/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_25ns_Draft2016.py b/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_25ns_Draft2016.py
index f53e6ddab..20331ef40 100644
--- a/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_25ns_Draft2016.py
+++ b/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_25ns_Draft2016.py
@@ -72,6 +72,8 @@ class XcMuXForTau_25ns_Draft2016(object) :
                             , 'Ds_AM_MAX'              : 2010.0 * MeV
                             , 'Lc_AM_MIN'              : 2230.0 * MeV
                             , 'Lc_AM_MAX'              : 2330.0 * MeV
+                            , 'JPsi_AM_MIN'              : 1500.0 * MeV
+                            , 'JPsi_AM_MAX'              : 6000.0 * MeV
                             },
                  'Muon' : {
                              'Mu_IPCHI2'    : 16
diff --git a/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_pp_May2016.py b/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_pp_May2016.py
index 45f06b6ff..82ba66fcd 100644
--- a/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_pp_May2016.py
+++ b/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_pp_May2016.py
@@ -72,6 +72,8 @@ class XcMuXForTau_pp_May2016(object) :
                             , 'Ds_AM_MAX'              : 2010.0 * MeV
                             , 'Lc_AM_MIN'              : 2230.0 * MeV
                             , 'Lc_AM_MAX'              : 2330.0 * MeV
+                            , 'JPsi_AM_MIN'              : 1500.0 * MeV
+                            , 'JPsi_AM_MAX'              : 6000.0 * MeV
                             },
                  'Muon' : {
                              'Mu_IPCHI2'    : 16
-- 
GitLab


From 53b7aaadf46604fd150f125885eb427b19e00255 Mon Sep 17 00:00:00 2001
From: "Matthew.James.Tilley" <matthew.james.tilley@cern.ch>
Date: Wed, 27 Apr 2016 10:58:51 +0200
Subject: [PATCH 2/3] adding trigger for b2pptaunu in XcMuXForTau

---
 Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Stages.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Stages.py b/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Stages.py
index 6be9e01c3..4836e78c7 100644
--- a/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Stages.py
+++ b/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Stages.py
@@ -86,7 +86,7 @@ Lc2pkpiComb   = D2XCombiner("XcMuXForTauPKPi","Xc","[Lambda_c+ -> p+ K- pi+]cc",
 Jpsi2ppComb = D2XCombiner("XcMuXForTauPP","Xc","[J/psi(1s) -> p~- p+]",[filteredDProtons], "Jpsi")
 
 # Merge Combiners
-MergeAllXc = Hlt2MergedStage('MergedXc', inputs = [D02kpiComb,D02k3piComb,Dplus2kpipiComb,Ds2kkpiComb,Lc2pkpiCombi,Jpsi2ppComb],shared=True)
+MergeAllXc = Hlt2MergedStage('MergedXc', inputs = [D02kpiComb,D02k3piComb,Dplus2kpipiComb,Ds2kkpiComb,Lc2pkpiComb,Jpsi2ppComb],shared=True)
 
 
 class B2XMuCombiner(Hlt2Combiner):
-- 
GitLab


From 1f59755e54e90edff914c240e96679837afddb05 Mon Sep 17 00:00:00 2001
From: "Matthew.James.Tilley" <matthew.james.tilley@cern.ch>
Date: Wed, 27 Apr 2016 11:04:26 +0200
Subject: [PATCH 3/3] adding trigger for b2pptaunu in XcMuXForTau

---
 Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Lines.py         | 4 ++--
 .../HltSettings/XcMuXForTau/XcMuXForTau_25ns_Draft2016.py   | 6 ++++--
 .../HltSettings/XcMuXForTau/XcMuXForTau_pp_May2016.py       | 6 ++++--
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Lines.py b/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Lines.py
index 6683ab306..776d93aa6 100644
--- a/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Lines.py
+++ b/Hlt/Hlt2Lines/python/Hlt2Lines/XcMuXForTau/Lines.py
@@ -37,8 +37,8 @@ class XcMuXForTauLines(Hlt2LinesConfigurableUser):
                             , 'Ds_AM_MAX'              : 2010.0 * MeV
                             , 'Lc_AM_MIN'              : 2230.0 * MeV
                             , 'Lc_AM_MAX'              : 2330.0 * MeV
-                            , 'JPsi_AM_MIN'              : 1500.0 * MeV
-                            , 'JPsi_AM_MAX'              : 6000.0 * MeV
+                            , 'Jpsi_AM_MIN'              : 1500.0 * MeV
+                            , 'Jpsi_AM_MAX'              : 6000.0 * MeV
                             },
                  'Muon' : {
                              'Mu_IPCHI2'    : 16
diff --git a/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_25ns_Draft2016.py b/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_25ns_Draft2016.py
index 20331ef40..2a08a2a2a 100644
--- a/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_25ns_Draft2016.py
+++ b/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_25ns_Draft2016.py
@@ -24,11 +24,13 @@ class XcMuXForTau_25ns_Draft2016(object) :
             'B2DplusKPiPiMu',
             'B2DsKKPiMu',
             'B2LcPKPiMu',
+            'B2JpsiPPMu'
             'B2D0KPiFakeMu',
             'B2D0K3PiFakeMu',
             'B2DplusKPiPiFakeMu',
             'B2DsKKPiFakeMu',
             'B2LcPKPiFakeMu'
+            'B2JpsiPPFakeMu'
             ]
         """
         lines = [
@@ -72,8 +74,8 @@ class XcMuXForTau_25ns_Draft2016(object) :
                             , 'Ds_AM_MAX'              : 2010.0 * MeV
                             , 'Lc_AM_MIN'              : 2230.0 * MeV
                             , 'Lc_AM_MAX'              : 2330.0 * MeV
-                            , 'JPsi_AM_MIN'              : 1500.0 * MeV
-                            , 'JPsi_AM_MAX'              : 6000.0 * MeV
+                            , 'Jpsi_AM_MIN'              : 1500.0 * MeV
+                            , 'Jpsi_AM_MAX'              : 6000.0 * MeV
                             },
                  'Muon' : {
                              'Mu_IPCHI2'    : 16
diff --git a/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_pp_May2016.py b/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_pp_May2016.py
index 82ba66fcd..2072f0a0d 100644
--- a/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_pp_May2016.py
+++ b/Hlt/HltSettings/python/HltSettings/XcMuXForTau/XcMuXForTau_pp_May2016.py
@@ -24,11 +24,13 @@ class XcMuXForTau_pp_May2016(object) :
             'B2DplusKPiPiMu',
             'B2DsKKPiMu',
             'B2LcPKPiMu',
+            'B2JpsiPPMu'
             'B2D0KPiFakeMu',
             'B2D0K3PiFakeMu',
             'B2DplusKPiPiFakeMu',
             'B2DsKKPiFakeMu',
             'B2LcPKPiFakeMu'
+            'B2JpsiPPFakeMu'
             ]
         """
         lines = [
@@ -72,8 +74,8 @@ class XcMuXForTau_pp_May2016(object) :
                             , 'Ds_AM_MAX'              : 2010.0 * MeV
                             , 'Lc_AM_MIN'              : 2230.0 * MeV
                             , 'Lc_AM_MAX'              : 2330.0 * MeV
-                            , 'JPsi_AM_MIN'              : 1500.0 * MeV
-                            , 'JPsi_AM_MAX'              : 6000.0 * MeV
+                            , 'Jpsi_AM_MIN'              : 1500.0 * MeV
+                            , 'Jpsi_AM_MAX'              : 6000.0 * MeV
                             },
                  'Muon' : {
                              'Mu_IPCHI2'    : 16
-- 
GitLab