File indexing completed on 2024-11-16 09:02:48
0001
0002
0003
0004
0005
0006
0007
0008
0009 limiter=50000
0010 evgenDir=S3/eictest/ATHENA/EVGEN/DIS/NC
0011
0012
0013
0014 evgenDir=$evgenDir/
0015 evgenDir=$(echo $evgenDir | sed 's/\/\//\//g')
0016 evgenDir_esc=$(echo $evgenDir | sed 's/\//\\\//g')
0017
0018
0019
0020 mc find $evgenDir --name "*.hepmc" | grep -vE 'vtxfix|novtx' > evgenList.tmp
0021
0022
0023
0024
0025 sed -i '/2_022.hepmc/d' evgenList.tmp
0026
0027
0028 echo "pretty print of hepmc file names:"
0029 echo "----------------------------------"
0030 cat evgenList.tmp | sed 's/^.*\///g' | sed -s 's/_/ /g'| column -t
0031 echo "----------------------------------"
0032
0033
0034 while read hepmc; do
0035 echo "READ $hepmc"
0036 xsecDir=$(dirname $(echo $hepmc | sed "s/$evgenDir_esc/datarec\/xsec\//g"))
0037 outFile=$xsecDir/$(basename $hepmc).xsec
0038 mkdir -p $xsecDir
0039 echo " outFile = $outFile"
0040 s3tools/src/get-cross-section.sh $hepmc $limiter | tee $outFile
0041 done < evgenList.tmp
0042 rm evgenList.tmp
0043