Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:14:57

0001 #!/bin/bash
0002 #
0003 # This script runs the propagation test with different steppers and different pT bins
0004 #
0005 # arguments are:
0006 #  $
0007 
0008 time_stamp=`date +%s%N`
0009 run_directory=propagation_timing_${time_stamp}
0010 mkdir ${run_directory}
0011 cd ${run_directory}
0012 
0013 output_file='output.log'
0014 #magfield='--bf-values 0 0 2'
0015 magfield='--bf-map ../ATLASBField_xyz.root'
0016 #bfieldtype='constfield'
0017 
0018 echo "***************************************" > ${output_file}
0019 echo "* Test: $1" >> ${output_file}
0020 echo "* Events: $2" >> ${output_file}
0021 echo "* Tests/event: $300" >> ${output_file}
0022 echo "***************************************" >> ${output_file}
0023 echo "*"
0024 echo "* job | stepper | pt" >> ${output_file}
0025 
0026 jobID=0
0027 
0028 # Loop over the Pt bins
0029 for pt in 0.1 0.5 1.0 2.0 5.0 10.0 100.0 ; do
0030   # Loop over the stepper
0031   for stepper in {0..2} ; do
0032 
0033     # Compute the name of the example executable
0034     executable="ActsExamplePropagation$1 -n$2  ${magfield} --prop-ntests $3 -j $4 --prop-pt-range ${pt} ${pt} --prop-stepper ${stepper} --output-root"
0035 
0036     echo "${jobID}, ${stepper}, ${pt}" >> ${output_file}
0037     eval ${executable}
0038 
0039     # Archive with Job ID
0040     mv timing.tsv timing_${jobID}.tsv
0041     mv propagation-steps.root propagation_steps_${jobID}.root
0042 
0043     # JobID
0044     let "jobID++"
0045 
0046   done
0047 done