From d970c29b442b0c3cda2144b8d40af7684a78907e Mon Sep 17 00:00:00 2001
From: Aidan Richard Wiederhold <aidan.richard.wiederhold@cern.ch>
Date: Wed, 4 Nov 2020 16:55:02 +0100
Subject: [PATCH 1/2] Add D02KK MC production for starterkit

---
 D02HH_Practice/README.md         |  3 +++
 D02HH_Practice/info.yaml         | 18 ++++++++++++++++++
 D02HH_Practice/ntuple_options.py | 15 +++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 100644 D02HH_Practice/README.md
 create mode 100644 D02HH_Practice/info.yaml
 create mode 100644 D02HH_Practice/ntuple_options.py

diff --git a/D02HH_Practice/README.md b/D02HH_Practice/README.md
new file mode 100644
index 0000000000..8ef5deb856
--- /dev/null
+++ b/D02HH_Practice/README.md
@@ -0,0 +1,3 @@
+# Test production for Starterkit-2020
+
+Using 2016 D0->KK MC
diff --git a/D02HH_Practice/info.yaml b/D02HH_Practice/info.yaml
new file mode 100644
index 0000000000..b17e1cd173
--- /dev/null
+++ b/D02HH_Practice/info.yaml
@@ -0,0 +1,18 @@
+defaults:
+    application: DaVinci/v45r5
+    wg: Charm
+    automatically_configure: yes
+    turbo: no
+    inform:
+        - aidan.richard.wiederhold@cern.ch
+    options:
+        - ntuple_options_2.py
+    output: D02KK.ROOT
+
+2016_MagDown_PromptMC_D02KK:
+    input:
+        bk_query: "/MC/2016/Beam6500GeV-2016-MagDown-Nu1.6-25ns-Pythia8/Sim09c/Trig0x6138160F/Reco16/Turbo03/Stripping28r1NoPrescalingFlagged/27163002/ALLSTREAMS.DST"
+
+2016_MagUp_PromptMC_D02KK:
+    input:
+        bk_query: "/MC/2016/Beam6500GeV-2016-MagUp-Nu1.6-25ns-Pythia8/Sim09c/Trig0x6138160F/Reco16/Turbo03/Stripping28r1NoPrescalingFlagged/27163002/ALLSTREAMS.DST"
diff --git a/D02HH_Practice/ntuple_options.py b/D02HH_Practice/ntuple_options.py
new file mode 100644
index 0000000000..ff8d032990
--- /dev/null
+++ b/D02HH_Practice/ntuple_options.py
@@ -0,0 +1,15 @@
+from Configurables import DecayTreeTuple
+from DecayTreeTuple.Configuration import *
+from Configurables import DaVinci
+
+# Stream and stripping line we want to use
+stream = 'AllStreams'
+line = 'D2hhPromptDst2D2KKLine'
+
+# Create an ntuple to capture D*+ decays from the StrippingLine line
+dtt = DecayTreeTuple('TupleDstToD0pi_D0ToKK')
+dtt.Inputs = ['/Event/{0}/Phys/{1}/Particles'.format(stream, line)]
+dtt.Decay = '[D*(2010)+ -> (D0 -> K- K+) pi+]CC'
+
+# Configure DaVinci
+DaVinci().UserAlgorithms += [dtt]
-- 
GitLab


From ac4a6fad24ed321f4efd4389b4fa437c872f418a Mon Sep 17 00:00:00 2001
From: Aidan Richard Wiederhold <aidan.richard.wiederhold@cern.ch>
Date: Wed, 4 Nov 2020 17:00:14 +0100
Subject: [PATCH 2/2] Fixed info.yaml

---
 D02HH_Practice/info.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/D02HH_Practice/info.yaml b/D02HH_Practice/info.yaml
index b17e1cd173..a346a0e2bd 100644
--- a/D02HH_Practice/info.yaml
+++ b/D02HH_Practice/info.yaml
@@ -6,7 +6,7 @@ defaults:
     inform:
         - aidan.richard.wiederhold@cern.ch
     options:
-        - ntuple_options_2.py
+        - ntuple_options.py
     output: D02KK.ROOT
 
 2016_MagDown_PromptMC_D02KK:
-- 
GitLab