Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #!/bin/bash
0002 
0003 RUN=$1
0004 NUM=$2
0005 
0006 date
0007 
0008 fileNameElectron=electronEvents_${RUN}.hepMC
0009 fileNamePion=pionEvents_${RUN}.hepMC
0010 fileNameKaon=kaonEvents_${RUN}.hepMC
0011 fileNameProton=protonEvents_${RUN}.hepMC
0012 
0013 echo ""
0014 echo "Generating HepMC Files"
0015 echo ${fileNameElectron}
0016 echo ${fileNamePion}
0017 echo ${fileNameKaon}
0018 echo ${fileNameProton}
0019 
0020 ## Supply absolute path to the hepmc_writer.C script
0021 root -b -l -q "/yourDir/hepmc_writer.C+(\"${fileNameElectron}\",0,2.65,3.10,0.1,15.0,${NUM})" 
0022 root -b -l -q "/yourDir/hepmc_writer.C+(\"${fileNamePion}\",1,2.65,3.10,0.1,15.0,${NUM})" 
0023 root -b -l -q "/yourDir/hepmc_writer.C+(\"${fileNameKaon}\",2,2.65,3.10,0.1,15.0,${NUM})" 
0024 root -b -l -q "/yourDir/hepmc_writer.C+(\"${fileNameProton}\",3,2.65,3.10,0.1,15.0,${NUM})" 
0025 
0026 simuNameElectron=pfRICH-epic_electron_${RUN}.root
0027 simuNamePion=pfRICH-epic_pion_${RUN}.root
0028 simuNameKaon=pfRICH-epic_kaon_${RUN}.root
0029 simuNameProton=pfRICH-epic_proton_${RUN}.root
0030 
0031 echo ""
0032 echo "Generating Simulation Files"
0033 echo ${simuNameElectron}
0034 echo ${simuNamePion}
0035 echo ${simuNameKaon}
0036 echo ${simuNameProton}
0037 
0038 ## Supply absolute path to the pfRICH build dir
0039 /yourDir/build/pfrich-epic -i ${fileNameElectron} -o ${simuNameElectron} -s ${NUM}
0040 /yourDir/build/pfrich-epic -i ${fileNamePion} -o ${simuNamePion} -s ${NUM}
0041 /yourDir/build/pfrich-epic -i ${fileNameKaon} -o ${simuNameKaon} -s ${NUM}
0042 /yourDir/build/pfrich-epic -i ${fileNameProton} -o ${simuNameProton} -s ${NUM}
0043 
0044 rootNameElectron=outElectron_${RUN}.root
0045 rootNamePion=outPion_${RUN}.root
0046 rootNameKaon=outKaon_${RUN}.root
0047 rootNameProton=outProton_${RUN}.root
0048 
0049 echo ""
0050 echo "Generating Root Trees"
0051 echo ${rootNameElectron}
0052 echo ${rootNamePion}
0053 echo ${rootNameKaon}
0054 echo ${rootNameProton}
0055 
0056 root -b -l -q "scripts/reco-epic-LUT.C(\"${simuNameElectron}\",\"${rootNameElectron}\")"
0057 root -b -l -q "scripts/reco-epic-LUT.C(\"${simuNamePion}\",\"${rootNamePion}\")"
0058 root -b -l -q "scripts/reco-epic-LUT.C(\"${simuNameKaon}\",\"${rootNameKaon}\")"
0059 root -b -l -q "scripts/reco-epic-LUT.C(\"${simuNameProton}\",\"${rootNameProton}\")"
0060 
0061 date