From 090fcee1abaa4732a8509968113e386787991a60 Mon Sep 17 00:00:00 2001
From: LHCb Open Data Requestor <lhcb.opendata.requestor@cern.ch>
Date: Tue, 15 Oct 2024 15:52:18 +0200
Subject: [PATCH] Add production configuration files

Path to upload test-production output files to: `/eos/opendata/lhcb/upload/opendata-lhcb-ntupling-service/analysis-productions/merge-requests/${iid}/outputs/test-production`
---
 TestMROutput/BsTree.py   | 21 +++++++++++++
 TestMROutput/BsTree.yaml | 66 ++++++++++++++++++++++++++++++++++++++++
 TestMROutput/info.yaml   | 14 +++++++++
 3 files changed, 101 insertions(+)
 create mode 100644 TestMROutput/BsTree.py
 create mode 100644 TestMROutput/BsTree.yaml
 create mode 100644 TestMROutput/info.yaml

diff --git a/TestMROutput/BsTree.py b/TestMROutput/BsTree.py
new file mode 100644
index 0000000000..d23924c60a
--- /dev/null
+++ b/TestMROutput/BsTree.py
@@ -0,0 +1,21 @@
+# This file is generated by the Ntupling Service backend 
+
+import os, yaml 
+from pathlib import Path 
+import sys 
+
+AnalysisHelpers_Path = Path(os.environ['DAVINCI_PROJECT_ROOT']) / 'Phys' / 'AnalysisHelpers' / 'options' 
+sys.path.append(str(AnalysisHelpers_Path)) 
+from decaytreetuple import configure_dtt 
+from Configurables import DaVinci 
+
+config_file = Path(os.environ['ANALYSIS_PRODUCTIONS_BASE']) / "TestMROutput" / "BsTree.yaml"
+config = yaml.safe_load(open(config_file, 'rb')) 
+dtt = configure_dtt(config) 
+DaVinci().UserAlgorithms += [dtt] 
+
+from PhysConf.Filters import LoKi_Filters 
+fltrs = LoKi_Filters ( 
+    STRIP_Code = "HLT_PASS_RE('StrippingBetaSBs2JpsiPhiDetachedLineDecision')" 
+) 
+DaVinci().EventPreFilters = fltrs.filters('Filters') 
diff --git a/TestMROutput/BsTree.yaml b/TestMROutput/BsTree.yaml
new file mode 100644
index 0000000000..390e61546e
--- /dev/null
+++ b/TestMROutput/BsTree.yaml
@@ -0,0 +1,66 @@
+inputs:
+  - /Event/Dimuon/Phys/BetaSBs2JpsiPhiDetachedLine/Particles
+descriptorTemplate: >-
+  ${B_s0}[B_s0 -> ${J_psi_1S_}(J/psi(1S) -> ${muplus}mu+ ${muminus}mu-)
+  ${phi_1020_}(phi(1020) -> ${Kplus}K+ ${Kminus}K-)]CC
+tools:
+  - TupleToolKinematic:
+      ExtraName: ''
+      Verbose: false
+      MaxPV: 100
+      Transporter: ParticleTransporter:PUBLIC
+  - TupleToolPid:
+      ExtraName: ''
+      Verbose: false
+      MaxPV: 100
+  - TupleToolANNPID:
+      ExtraName: ''
+      Verbose: false
+      MaxPV: 100
+      ANNPIDTunes:
+        - MC12TuneV2
+        - MC12TuneV3
+        - MC12TuneV4
+        - MC15TuneV1
+      PIDTypes:
+        - Electron
+        - Muon
+        - Pion
+        - Kaon
+        - Proton
+        - Ghost
+  - TupleToolGeometry:
+      ExtraName: ''
+      Verbose: false
+      MaxPV: 100
+      RefitPVs: false
+      PVReFitter: LoKi::PVReFitter:PUBLIC
+      FillMultiPV: false
+  - TupleToolEventInfo:
+      ExtraName: ''
+      Verbose: false
+      MaxPV: 100
+branches:
+  B_s0:
+    particle: B_s0
+    tools: []
+  J_psi_1S_:
+    particle: J/psi(1S)
+    tools: []
+  muplus:
+    particle: mu+
+    tools: []
+  muminus:
+    particle: mu-
+    tools: []
+  phi_1020_:
+    particle: phi(1020)
+    tools: []
+  Kplus:
+    particle: K+
+    tools: []
+  Kminus:
+    particle: K-
+    tools: []
+groups: {}
+name: DecayTreeTuple/BsTree
diff --git a/TestMROutput/info.yaml b/TestMROutput/info.yaml
new file mode 100644
index 0000000000..b851bc971a
--- /dev/null
+++ b/TestMROutput/info.yaml
@@ -0,0 +1,14 @@
+defaults:
+  application: DaVinci/v46r11
+  wg: OpenData
+  automatically_configure: true
+  inform:
+    - piet.nogga@cern.ch
+  output: DVNtuple.root
+job0:
+  input:
+    bk_query: >-
+      /LHCb/Collision11/Beam3500GeV-VeloClosed-MagDown/Real
+      Data/Reco14/Stripping21r1/90000000/DIMUON.DST
+  options:
+    - BsTree.py
-- 
GitLab