From a693dd53d4e1a2a7006d15781318b2c8299b664b Mon Sep 17 00:00:00 2001 From: Flavia Cetorelli Date: Wed, 6 Dec 2023 16:32:33 +0100 Subject: [PATCH] added option to specify output dir --- examples/FCCee/SCEPCal_plots/ntuplizer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/FCCee/SCEPCal_plots/ntuplizer.py b/examples/FCCee/SCEPCal_plots/ntuplizer.py index 3a6f0d2b9e..8e601fc50a 100644 --- a/examples/FCCee/SCEPCal_plots/ntuplizer.py +++ b/examples/FCCee/SCEPCal_plots/ntuplizer.py @@ -10,11 +10,11 @@ _fcc = ROOT.dummyLoader ROOT.gInterpreter.Declare("using namespace FCCAnalyses;") -#/afs/cern.ch/work/f/fcetorel/private/work2/SCEPCAL/SCEPCALsim/SCEPCALsimG4Components/test/data/ parser = argparse.ArgumentParser() parser.add_argument("-inputFilesName", help = "name of the input rootfiles", type = str) -parser.add_argument("-baseFolder",help = "folder for the rootfiles", type = str) +parser.add_argument("-baseFolder",help = "input folder", type = str) +parser.add_argument("-outFolder",help = "output folder", type = str) args = parser.parse_args() NBITS = 27 @@ -50,7 +50,7 @@ ) -outfilename = 'flatNtupla_'+ args.inputFilesName +outfilename = args.outFolder+'/flatNtupla_'+ args.inputFilesName print(f'Writing snapshot to disk ... \t{outfilename}') df.Snapshot('events', outfilename,