From 47d35f3899e1eeff999b71bc3c3a2b1b6e6e6f43 Mon Sep 17 00:00:00 2001
From: Carl Gwilliam <gwilliam@hep.ph.liv.ac.uk>
Date: Thu, 1 Feb 2024 18:00:36 +0000
Subject: [PATCH] Fix missing geom option in ntuple making

---
 .../NtupleDumper/scripts/faser_ntuple_maker.py            | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/PhysicsAnalysis/NtupleDumper/scripts/faser_ntuple_maker.py b/PhysicsAnalysis/NtupleDumper/scripts/faser_ntuple_maker.py
index ac3c57ce5..23cb04e7d 100755
--- a/PhysicsAnalysis/NtupleDumper/scripts/faser_ntuple_maker.py
+++ b/PhysicsAnalysis/NtupleDumper/scripts/faser_ntuple_maker.py
@@ -27,7 +27,8 @@ parser.add_argument("--merge", type=int, default=1,
                     help="Specify merged files per reco file (MC only)")
 parser.add_argument("--last", type=int, default=0,
                     help="Specify last file in slice (normally --files)")
-
+parser.add_argument("-g", "--geom", default="",
+                    help="Specify geometry (if it can't be parsed from run number\n Values: Ti12Data03 (2022 TiT12)")
 parser.add_argument("--outfile", default="",
                     help="Override output file name")
                     
@@ -71,6 +72,7 @@ parser.add_argument("--fluka", action='store_true',
 parser.add_argument("--genie", action='store_true',
                     help="Add Genie weights to ntuple")
 
+
 args = parser.parse_args()
 
 from pathlib import Path
@@ -244,9 +246,9 @@ if len(args.geom) > 0:
     runtype = args.geom
 else:
     if args.isMC:
-        runtype = TI12MC04
+        runtype = "TI12MC04"
     else:
-        runtype = TI12Data04
+        runtype = "TI12Data04"
 
 if runtype in ["TI12Data04", "TI12MC04"]:
     ConfigFlags.GeoModel.FaserVersion = "FASERNU-04" # FASER geometry
-- 
GitLab