e4nu / emMCRadCorr

This is a package that can be used to add radiative corrections to any MC event generator. It is developed oriented to neutrino event generators running on electron-scattering mode. The package modifies the output of neutrino event generators in NuHEPMC format. It can also be used to modify GENIE gst files.
GNU Affero General Public License v3.0
0 stars 1 forks source link

Create script to run complete simulation with radiative on the grid #6

Closed jtenavidal closed 5 months ago

jtenavidal commented 7 months ago

It should take care of all the steps

jtenavidal commented 6 months ago

Mostly working. Error when building against hepmc3 in the grid jobs

Tue Apr 30 07:54:36 UTC 2024 54572174.0@jobsub03.fnal.gov BEGIN EXECUTION rad_corr_e_on_1000010010_0.sh
Warning: Unused class rule: std::vector<HepMC::GenVertexData>
Warning: Unused class rule: std::vector<HepMC::GenParticleData>
In file included from /cvmfs/larsoft.opensciencegrid.org/products/root/v6_26_06b/Linux64bit+3.10-2.17-e26-p3913-prof/include/TString.h:29:0,
                 from /cvmfs/larsoft.opensciencegrid.org/products/root/v6_26_06b/Linux64bit+3.10-2.17-e26-p3913-prof/include/TNamed.h:26,
                 from /cvmfs/larsoft.opensciencegrid.org/products/root/v6_26_06b/Linux64bit+3.10-2.17-e26-p3913-prof/include/TDirectory.h:24,
                 from /cvmfs/larsoft.opensciencegrid.org/products/root/v6_26_06b/Linux64bit+3.10-2.17-e26-p3913-prof/include/TDirectoryFile.h:25,
                 from /cvmfs/larsoft.opensciencegrid.org/products/root/v6_26_06b/Linux64bit+3.10-2.17-e26-p3913-prof/include/TFile.h:28,
                 from /srv/no_xfer/0/TRANSFERRED_INPUT_FILES/emMCRadCorr/build/_deps/hepmc3-src/rootIO/src/WriterRoot.cc:16:
/cvmfs/larsoft.opensciencegrid.org/products/root/v6_26_06b/Linux64bit+3.10-2.17-e26-p3913-prof/include/ROOT/RStringView.hxx:25:23: fatal error: string_view: No such file or directory
 #include <string_view>
                       ^
compilation terminated.
make[2]: *** [_deps/hepmc3-build/rootIO/CMakeFiles/HepMC3rootIO.dir/src/WriterRoot.cc.o] Error 1
make[1]: *** [_deps/hepmc3-build/rootIO/CMakeFiles/HepMC3rootIO.dir/all] Error 2
make: *** [all] Error 2
Copying 253144585 bytes https://fndcadoor.fnal.gov:2880/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/Test_NewHepmC/master-routine_validation_01-eScattering/e_on_1000010010_0.hepmc3 => file:///srv/no_xfer/0/TRANSFERRED_INPUT_FILES/e_on_1000010010_0.hepmc3
./rad_corr_e_on_1000010010_0.sh: line 9: ./process_radcorr: No such file or directory
gfal-copy error: 2 (No such file or directory) - Could not stat the source: errno reported by local system call No such file or directory
Perhaps you forgot a -D to indicate destination is a directory? 
gfal-copy error: 2 (No such file or directory) - Could not stat the source: errno reported by local system call No such file or directory
Perhaps you forgot a -D to indicate destination is a directory? 
cvmfs info:
attr_get: No such file or directory
Could not get "logbuffer" for /cvmfs/genie.opensciencegrid.org/
Tue Apr 30 07:58:07 UTC 2024 rad_corr_e_on_1000010010_0.sh COMPLETED with exit status 2
jtenavidal commented 6 months ago

Must compress tar bzip2 tarfile

jtenavidal commented 6 months ago

tar -cjf file.tar.bz2 dir

jtenavidal commented 6 months ago

tar -cjf file.tar.bz2 emMCRadCorr/

jtenavidal commented 6 months ago

bzip2 -dk file.tar.bz2

jtenavidal commented 6 months ago

Seems to work now - implement automated. CHeck why job gets on hold at the end

jtenavidal commented 6 months ago

DIS EVENT : https://edotor.net/?engine=dot#digraph%20nuhepmc_ev%20%7B%0A%20%20v1%5Blabel%3D%22Nucleon%5CnSeparation%20Vertex%22%2C%20shape%3Dcircle%2C%20color%3Ddeepskyblue4%5D%3B%0A%20%20v2%5Blabel%3D%22Primary%5CnVertex%22%2C%20shape%3Dcircle%2C%20color%3Dcrimson%5D%3B%0A%20%20v3%5Blabel%3D%22FSI%5CnVertex%22%2C%20shape%3Dcircle%2C%20color%3Ddarkseagreen1%5D%3B%0A%20%20o0%5Bshape%3Dpoint%2Ccolor%3Dcornflowerblue%5D%3B%0A%20%20o0%20-%3E%20v1%20%5Blabel%3D%22A%3A%2040%20Z%3A%2018%5Btarget%5D%22%2C%20color%3Dcornflowerblue%5D%3B%0A%20%20v1%20-%3E%20v3%20%5Blabel%3D%22Nuclear%20Remnant%22%2C%20color%3Dgray%5D%3B%0A%20%20v1%20-%3E%20v2%20%5Blabel%3D%22neutron%20%5Bstruck%20nucleon%5D%5Cnp3%20%3D%20(0.081%2C%20-0.164%2C%20-0.087)%22%2C%20color%3Dblack%5D%3B%0A%20%20o1%5Bshape%3Dpoint%2Ccolor%3Dcornflowerblue%5D%3B%0A%20%20o1%20-%3E%20v2%20%5Blabel%3D%22numu%20%5Bbeam%5D%5Cnp3%20%3D%20(0.000%2C%200.000%2C%202.488)%22%2C%20color%3Dcornflowerblue%5D%3B%0A%20%20v2%20-%3E%20v3%20%5Blabel%3D%22mu-%20%5Bdocline%5D%5Cnp3%20%3D%20(-0.018%2C%20-0.203%2C%201.485)%22%2C%20color%3Dblack%5D%3B%0A%20%20v2%20-%3E%20v3%20%5Blabel%3D%22pi%2B%20%5Bdocline%5D%5Cnp3%20%3D%20(0.007%2C%20-0.390%2C%200.145)%22%2C%20color%3Dblack%5D%3B%0A%20%20v2%20-%3E%20v3%20%5Blabel%3D%22neutron%20%5Bdocline%5D%5Cnp3%20%3D%20(0.179%2C%200.315%2C%200.458)%22%2C%20color%3Dblack%5D%3B%0A%20%20v2%20-%3E%20v3%20%5Blabel%3D%22pi0%20%5Bdocline%5D%5Cnp3%20%3D%20(-0.087%2C%200.114%2C%200.313)%22%2C%20color%3Dblack%5D%3B%0A%20%20o2%5Bshape%3Dpoint%2Ccolor%3Dgray%5D%3B%0A%20%20v3%20-%3E%20o2%20%5Blabel%3D%22Nuclear%20Remnant%22%2C%20color%3Dgray%5D%3B%0A%20%20o3%5Bshape%3Dpoint%2Ccolor%3Dchartreuse4%5D%3B%0A%20%20v3%20-%3E%20o3%20%5Blabel%3D%22mu-%20%5Bfinal%20state%5D%5Cnp3%20%3D%20(-0.018%2C%20-0.203%2C%201.485)%22%2C%20color%3Dchartreuse4%5D%3B%0A%20%20o4%5Bshape%3Dpoint%2Ccolor%3Dchartreuse4%5D%3B%0A%20%20v3%20-%3E%20o4%20%5Blabel%3D%22pi-%20%5Bfinal%20state%5D%5Cnp3%20%3D%20(0.055%2C%20-0.151%2C%200.006)%22%2C%20color%3Dchartreuse4%5D%3B%0A%20%20o5%5Bshape%3Dpoint%2Ccolor%3Dchartreuse4%5D%3B%0A%20%20v3%20-%3E%20o5%20%5Blabel%3D%22neutron%20%5Bfinal%20state%5D%5Cnp3%20%3D%20(0.160%2C%200.282%2C%200.409)%22%2C%20color%3Dchartreuse4%5D%3B%0A%20%20o6%5Bshape%3Dpoint%2Ccolor%3Dchartreuse4%5D%3B%0A%20%20v3%20-%3E%20o6%20%5Blabel%3D%22proton%20%5Bfinal%20state%5D%5Cnp3%20%3D%20(-0.072%2C%20-0.332%2C%200.186)%22%2C%20color%3Dchartreuse4%5D%3B%0A%20%20o7%5Bshape%3Dpoint%2Ccolor%3Dchartreuse4%5D%3B%0A%20%20v3%20-%3E%20o7%20%5Blabel%3D%22pi%2B%20%5Bfinal%20state%5D%5Cnp3%20%3D%20(-0.044%2C%20-0.108%2C%200.283)%22%2C%20color%3Dchartreuse4%5D%3B%0A%20%20o8%5Bshape%3Dpoint%2Ccolor%3Dchartreuse4%5D%3B%0A%20%20v3%20-%3E%20o8%20%5Blabel%3D%22neutron%20%5Bfinal%20state%5D%5Cnp3%20%3D%20(-0.049%2C%200.157%2C%200.102)%22%2C%20color%3Dchartreuse4%5D%3B%0A%20%20o9%5Bshape%3Dpoint%2Ccolor%3Dchartreuse4%5D%3B%0A%20%20v3%20-%3E%20o9%20%5Blabel%3D%22pi%2B%20%5Bfinal%20state%5D%5Cnp3%20%3D%20(0.014%2C%200.014%2C%20-0.007)%22%2C%20color%3Dchartreuse4%5D%3B%0A%20%20labelloc%3D%22t%22%20label%3D%22CC%20dis%22%3B%0A%7D

jtenavidal commented 6 months ago

python submit_rad_GENIE_gpvm.py --directory /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/Paper_New/ --ebeam-energy 4.325 --model vanderhaghen --target 1000010010 --genie-git-location https://github.com/e4nu/Generator-NuHepMC.git --genie-git-branch hepmc3-Q214 --tune G18_10a_00_000 --xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/G18_10a_Dipole_Q2_14_eFreeNucleon.xml --nevents 100 --gst-output --no-ghep-output --git-tarball-location /genie/app/users/jtenavid/Software/e4v/E4NuAnalysis/Source/emMCRadCorr --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config/ --event-gen-list EMQE

jtenavidal commented 6 months ago
python submit_rad_GENIE_gpvm.py --directory /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/Paper_New/ --ebeam-energy 4.325 --model vanderhaghen --target 1000010010 --genie-git-location https://github.com/e4nu/Generator-NuHepMC.git --genie-git-branch hepmc3-Q214 --tune G18_10a_00_000 --xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/G18_10a_Dipole_Q2_14_eFreeNucleon.xml --nevents 100 --gst-output --no-ghep-output --git-tarball-location /genie/app/users/jtenavid/Software/e4v/E4NuAnalysis/Source/emMCRadCorr --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config/ --event-gen-list EMQE
jtenavidal commented 6 months ago

Carbon 1.161 GeV (GEM21_11a), Q2 0.1

python submit_rad_GENIE_gpvm.py --directory /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/Analysis/Carbon/1GeV/ --ebeam-energy 1.161 --model vanderhaghen --target 1000060120 --genie-git-location https://github.com/e4nu/Generator-NuHepMC.git --genie-git-branch hepmc3-Q201 --tune GEM21_11a_00_000 --xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/GEM21_11a_Dipole_Q2_01_eNuclei.xml --nevents 500000 --gst-output --no-ghep-output --git-tarball-location /genie/app/users/jtenavid/Software/e4v/E4NuAnalysis/Source/emMCRadCorr --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config/ --event-gen-list EM
jtenavidal commented 5 months ago
python submit_rad_GENIE_gpvm.py --directory /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/Analysis/Carbon/1GeV/ --ebeam-energy 1.161 --model vanderhaghen --target 1000060120 --genie-git-location https://github.com/e4nu/Generator-NuHepMC.git --genie-git-branch hepmc3-Q201 --tune GEM21_11a_00_000 --xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/GEM21_11a_Dipole_Q2_01_eNuclei.xml --nevents 100000000 --gst-output --no-ghep-output --git-tarball-location /exp/genie/app/jtena/emMCRadCorr/ --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config/ --event-gen-list EM
jtenavidal commented 5 months ago

python submit_rad_GENIE_gpvm.py --directory /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/Analysis/Carbon/2GeV/ --ebeam-energy 2.261 --model vanderhaghen --target 1000060120 --genie-git-location https://github.com/e4nu/Generator-NuHepMC.git --genie-git-branch hepmc3-Q204 --tune GEM21_11a_00_000 --xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/GEM21_11a_Dipole_Q2_04_eNuclei.xml --nevents 100000000 --gst-output --no-ghep-output  --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config/ --event-gen-list EM```