Skip to content
Snippets Groups Projects
Commit e2b765cf authored by Eric Torrence's avatar Eric Torrence
Browse files

Merge branch 'faserrec-procdev' into 'master'

Updates for unblinding

See merge request !334
parents efdb5416 1afdf607
No related branches found
No related tags found
1 merge request!334Updates for unblinding
Pipeline #5066743 passed
......@@ -43,6 +43,9 @@ parser.add_argument("--isMC", action='store_true',
help="Running on digitised MC rather than data")
parser.add_argument("--partial", action='store_true',
help="Allow partial input files")
parser.add_argument("--unblind", action='store_true',
help="Don't apply signal blinding (default: do)")
parser.add_argument("--fluka", action='store_true',
help="Add FLUKA weights to ntuple")
......@@ -136,6 +139,7 @@ if filepath.is_dir():
print(f"First = {firstseg}")
print(f"Last = {lastseg}")
print(f"Args = {args.tag}")
print(f"Blind = {not args.unblind}")
# Find any tags
tagstr = firststem.replace(f"{firstfaser}-{firstshort}-{runstr}-{firstseg}", "")
......@@ -239,7 +243,7 @@ if args.isMC:
acc.merge(NtupleDumperAlgCfg(ConfigFlags, outfile))
else:
acc.merge(NtupleDumperAlgCfg(ConfigFlags, outfile))
acc.merge(NtupleDumperAlgCfg(ConfigFlags, outfile, DoBlinding=(not args.unblind)))
if not args.verbose:
from AthenaConfiguration.ComponentFactory import CompFactory
......
......@@ -34,6 +34,7 @@ partialstr=""
mergestr=""
flukastr=""
geniestr=""
unblindstr=""
#
# Parse command-line options
while [ -n "$1" ]
......@@ -71,6 +72,10 @@ do
geniestr="--genie";
shift;;
--unblind)
unblindstr="--unblind";
shift;;
--) # End of options
shift; # Eat this
break;; # And stop parsing
......@@ -239,7 +244,7 @@ export EOS_MGM_URL=root://eospublic.cern.ch
#
# Run job
#
faser_ntuple_maker.py $last_file_str $partialstr $tagstr $ismc --slice $slice --files $nfiles $mergestr $flukastr $geniestr $dir_path
faser_ntuple_maker.py $last_file_str $partialstr $tagstr $ismc --slice $slice --files $nfiles $mergestr $flukastr $geniestr $unblindstr $dir_path
ntup_code=$?
echo "Return code: $ntup_code"
#
......
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