Skip to content
Snippets Groups Projects
Commit 383ea59f authored by Chengyang Pan's avatar Chengyang Pan
Browse files

Add fiducial/differential split method

parent 2bc18bff
No related branches found
No related tags found
No related merge requests found
Pipeline #7115696 passed
...@@ -62,6 +62,20 @@ parser.add_option( ...@@ -62,6 +62,20 @@ parser.add_option(
default=False, default=False,
help="Do root conversion step", help="Do root conversion step",
) )
parser.add_option(
"--do_fiducial",
dest="do_fiducial",
action="store_true",
default=False,
help="Do fiducial analysis",
)
parser.add_argument(
"--do_differential",
dest="do_differential",
action="store_true",
default=False,
help="Do the njets fiducial differential analysis",
)
parser.add_option( parser.add_option(
"--ws", "--ws",
dest="ws", dest="ws",
...@@ -304,7 +318,7 @@ if opt.root: ...@@ -304,7 +318,7 @@ if opt.root:
MKDIRP(f"{IN_PATH}/root/{file}") MKDIRP(f"{IN_PATH}/root/{file}")
os.chdir(SCRIPT_DIR) os.chdir(SCRIPT_DIR)
os.system( os.system(
f"python3 convert_parquet_to_root.py {IN_PATH}/merged/{file}/merged.parquet {IN_PATH}/root/{file}/merged.root mc --process {process_dict[file]} {args} --cats {cat_dict} --vars variation.json" f"python3 convert_parquet_to_root.py {IN_PATH}/merged/{file}/merged.parquet {IN_PATH}/root/{file}/merged.root mc --process {process_dict[file]} {args} --cats {cat_dict} --vars variation.json {"--do_fiducial" if arg.do_fiducial else ""} {"--do_differential" if arg.do_differential else ""}"
) )
elif "data" in file.lower(): elif "data" in file.lower():
if os.listdir(f'{IN_PATH}/merged/Data_{file.split("_")[-1]}/'): if os.listdir(f'{IN_PATH}/merged/Data_{file.split("_")[-1]}/'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment