Skip to content
Snippets Groups Projects
Commit b6ded46c authored by FaserMC's avatar FaserMC
Browse files

Add flags for fluka/genie

parent 457330a8
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
# --isMC - needed for MC reco # --isMC - needed for MC reco
# --partial - allow missing files # --partial - allow missing files
# --merge - merge factor of reco files (for MC) # --merge - merge factor of reco files (for MC)
# --fluka - create fluka weights
# --genie - create genie weights
# #
# dirpath - full directory path to HITS files # dirpath - full directory path to HITS files
# slice - ordinal output file number # slice - ordinal output file number
...@@ -30,6 +32,8 @@ SECONDS=0 ...@@ -30,6 +32,8 @@ SECONDS=0
ismc="" ismc=""
partialstr="" partialstr=""
mergestr="" mergestr=""
flukastr=""
geniestr=""
# #
# Parse command-line options # Parse command-line options
while [ -n "$1" ] while [ -n "$1" ]
...@@ -59,6 +63,14 @@ do ...@@ -59,6 +63,14 @@ do
shift; shift;
shift;; shift;;
--fluka)
flukastr="--fluka";
shift;;
--genie)
geniestr="--genie";
shift;;
--) # End of options --) # End of options
shift; # Eat this shift; # Eat this
break;; # And stop parsing break;; # And stop parsing
...@@ -227,7 +239,7 @@ export EOS_MGM_URL=root://eospublic.cern.ch ...@@ -227,7 +239,7 @@ export EOS_MGM_URL=root://eospublic.cern.ch
# #
# Run job # Run job
# #
faser_ntuple_maker.py $last_file_str $partialstr $tagstr $ismc --slice $slice --files $nfiles $mergestr $dir_path faser_ntuple_maker.py $last_file_str $partialstr $tagstr $ismc --slice $slice --files $nfiles $mergestr $flukastr $geniestr $dir_path
ntup_code=$? ntup_code=$?
echo "Return code: $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