File tree Expand file tree Collapse file tree
src/legenddataflowscripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import argparse
44import json
5+ import sys
56import time
67import warnings
78from bisect import bisect_left
@@ -99,6 +100,12 @@ def par_geds_dsp_evtsel() -> None:
99100 required = False ,
100101 )
101102
103+ argparser .add_argument (
104+ "--channel" ,
105+ type = str ,
106+ help = "Channel to process; required if --raw-cal-curve is set" ,
107+ required = "--raw-cal-curve" in sys .argv ,
108+ )
102109 argparser .add_argument ("--log" , help = "log_file" , type = str )
103110
104111 argparser .add_argument (
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ def build_tier_dsp() -> None:
9595 # check if the raw tables are all existing
9696 if len (lh5 .ls (args .input , input_tbl_name )) > 0 :
9797 dsp_cfg_tbl_dict [input_tbl_name ] = Props .read_from (file )
98+ msg = f"found table { input_tbl_name } in { args .input } "
99+ log .debug (msg )
98100 else :
99101 msg = f"table { input_tbl_name } not found in { args .input } skipping"
100102 log .info (msg )
@@ -147,6 +149,8 @@ def build_tier_dsp() -> None:
147149 kwargs = {
148150 "raw_in" : args .input ,
149151 "dsp_out" : dsp_files [i ],
152+ "lh5_tables" : list (config .keys ()),
153+ "base_group" : "" ,
150154 "chan_config" : config ,
151155 "database" : database_dict ,
152156 "write_mode" : "r" ,
@@ -173,6 +177,8 @@ def build_tier_dsp() -> None:
173177 build_dsp (
174178 raw_in = args .input ,
175179 dsp_out = args .output ,
180+ lh5_tables = list (dsp_cfg_tbl_dict .keys ()),
181+ base_group = "" ,
176182 database = database_dict ,
177183 chan_config = dsp_cfg_tbl_dict ,
178184 write_mode = "r" ,
You can’t perform that action at this time.
0 commit comments