#!/bin/bash ################################################################ ## script for running sim&rec for LMD with BOX or DPM generator ## [with pixels sensors set-up!] ## 13/11/2012 1st version ## 06/09/2013 updated version ## 23/03/2014 more or less final version ## A.Karavdina ################################################################ echo Enter momentum from "1.5, 4.06, 8.9, 11.91, 15 [GeV/c]": read mom echo "Beam mometum is: $mom!" cd ${VMCWORKDIR}/macro/lmd/ pbeam=$mom momStr=`echo $pbeam | sed -e '{ s/\./_/g; }'` #number of trks per event numTrks=1 #number of events numEv=10000000 for xT in 0 5 -5 do for yT in 0 5 -5 do # for xT in 0 # do # for yT in 0 # do path=/panda/myResults/AssymIP/DPM/mom_${momStr}/x_${xT}mm_y_${yT}mm/ mkdir -p ${path} ############## # set flags ## Write all MC info in TrkQA array #WrAllMC=true ############## # # # #simulation with DPM # modeDPM=0 #inel # modeDPM=1 #el+inel # modeDPM=2 #el # root -l -b -q runLumiPixel0SimDPMDirect.C\(${numEv},0,${pbeam},"\"${path}\"",0,35162,$modeDPM,0.12\) # root -l -b -q ${VMCWORKDIR}/macro/lmd/Anastasia/tests/Assym_IP/runLumiPixel0SimDPMDirect.C\(${numEv},0,${pbeam},"\"${path}\"",0,35162,$modeDPM,0.12,${xT},${yT}\) # root -l -b -q ${VMCWORKDIR}/macro/lmd/Anastasia/tests/Assym_IP/runLumiPixel0SimBoxTarget.C\(${numEv},0,"\"${path}\"",0,-2212,${pbeam},${numTrks},3562,${xT},${yT}\) # #digi # root -l -b -q ${VMCWORKDIR}/macro/lmd/runLumiPixel1Digi.C\(${numEv},0,"\"${path}\"",0\) # # signal/background digi # root -l -b -q ${VMCWORKDIR}/macro/lmd/runLumiPixel8DigiQA.C\(${numEv},0,"\"${path}\"",0\) #${VMCWORKDIR}/buildPanda/bin/./hits_assym $path $momStr ${VMCWORKDIR}/buildPanda/bin/./hits_assym_module $path $momStr done done