Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-05-18 07:43:06

0001 #!/bin/bash
0002 # evaluation of reconstruction performance
0003 
0004 # default settings
0005 rec_file="out/rec.edm4hep.root"
0006 out_file="out/eval.root"
0007 
0008 # usage
0009 function usage {
0010   echo """
0011 USAGE:
0012   $0 [OPTION]...
0013 
0014   OPTIONS
0015     -i <reconstruction_output_file>
0016         ROOT file produced by reconstruction
0017         [ default = $rec_file ]
0018     -o <output_file>
0019         Evaluation output ROOT file
0020         [ default = $out_file ]
0021   """
0022   exit 2
0023 }
0024 
0025 # parse options
0026 while getopts "hi:o:" opt; do
0027   case $opt in
0028     h|\?) usage ;;
0029     i) rec_file=$OPTARG ;;
0030     o) out_file=$OPTARG ;;
0031   esac
0032 done
0033 echo """
0034 rec_file = $rec_file
0035 out_file = $out_file
0036 """
0037 
0038 # call IRT evaluation script
0039 root -b -q irt/scripts/evaluation.C'("'$rec_file'","'$out_file'")'