e4nu / e4nuanalysiscode

Placeholder for all e4nu analyses
1 stars 2 forks source link

Radiative corrections #127

Closed jtenavidal closed 5 months ago

jtenavidal commented 7 months ago

Running radiated files :

python eAScatteringGridSubmitter.py --jobs-topdir /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/Radiated/H/master/ --total-xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/G18_10a_Dipole_master_eFreeNucleon.xml --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config --probe-list 11 --e-ntotevents 10000000 --flux /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Generation/radflux_H_4325MeV_simc.root,hradflux --e-minenergy-fluxrange 3.4 --e-maxenergy-fluxrange 4.35 --starting-point 4 --no-ghep-output --gst-output --tune G18_10a_00_000 --e-tgt-list 1000010010 --store-comitinfo --subjob-disk 3GB --subjob-memory 3GB --mainjob-memory 10GB --mainjob-disk 10GB --submit-jobs --event-generator-list EMQE

Running G18 splines : 67714166.0@jobsub01.fnal.gov

jtenavidal commented 7 months ago
image
jtenavidal commented 7 months ago
image
jtenavidal commented 7 months ago
image image

CODE: radcorr_validation.txt

jtenavidal commented 7 months ago

SIMC flux vs simple flux

image

Very small differences < 1%

jtenavidal commented 7 months ago

Notice the term pe/pe' will always be close to zero when pe/pe'sim 1 (which is most of the events at the peak). It will give a small correction at the tail. The angle one is the one contributing at the peak and should be included for the outgoing electron

This shows that most error is due to the angle so we should include this correction

Conclusion : we do not need this term. less than 1% contribution

The weight does not have a big effect on the distribution

image

I expect acceptance does not affect it either (but limits statistics)

Peak is shifted?

image

Bigger effect due to Q2 cut than model itself

image
jtenavidal commented 7 months ago

Trying to run Susa with radiated flux again, master

python eAScatteringGridSubmitter.py --jobs-topdir /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/UnRadiated/H/GEM21_master --total-xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/GEM21_11a_Dipole_master_eFreeNucleon.xml --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config --probe-list 11 --e-ntotevents 100000 --flux /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Generation/radflux_H_4325MeV_simc.root,hradflux --e-minenergy-fluxrange 3.4 --e-maxenergy-fluxrange 4.35 --starting-point 4 --no-ghep-output --gst-output --tune GEM21_11a_00_000 --e-tgt-list 1000010010 --store-comitinfo --subjob-disk 3GB --subjob-memory 3GB --mainjob-memory 10GB --mainjob-disk 10GB --submit-jobs --event-generator-list EMQE

53916790.0@jobsub03.fnal.gov

Gives an error. I notified Igor and Steven G.

Also attempting to re-run Adi's implementation:

python eAScatteringGridSubmitter.py --jobs-topdir /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/RadCorrAdi --total-xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/G18_10a_Dipole_master_eFreeNucleon.xml --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config --probe-list 11 --vN-gen-list none --vA-gen-list none --e-ntotevents 10000000 --starting-point 4 --no-ghep-output --gst-output --tune G18_10a_00_000 --e-tgt-list 1000010010 --store-comitinfo --subjob-disk 4GB --subjob-memory 4GB --mainjob-memory 10GB --mainjob-disk 10GB --ebeam-energy 4.325 --git-location https://github.com/e4nu/Generator-Rad --git-branch jtv_radcorr_simple --event-generator-list EMQEradcorr --store-comitinfo --submit-jobs

53916800.0@jobsub03.fnal.gov

Adi+simple+master:

python eAScatteringGridSubmitter.py --jobs-topdir /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/RadCorrAdiSimc/ --total-xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/G18_10a_Dipole_master_eFreeNucleon.xml --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config --probe-list 11 --vN-gen-list none --vA-gen-list none --e-ntotevents 10000000 --starting-point 4 --no-ghep-output --gst-output --tune G18_10a_00_000 --e-tgt-list 1000010010 --store-comitinfo --subjob-disk 4GB --subjob-memory 4GB --mainjob-memory 10GB --mainjob-disk 10GB --ebeam-energy 4.325 --git-location https://github.com/e4nu/Generator-Rad --git-branch jtv_radcorr --event-generator-list EMQEradcorr --store-comitinfo --submit-jobs

Running splines G18 1.4GeV:

python eAScatteringGridSubmitter.py --jobs-topdir /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/Spline14/ --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config --probe-list 11 --stopping-point 2 --no-ghep-output --gst-output --tune G18_10a_00_000 --e-tgt-list 1000010010 --store-comitinfo --subjob-disk 4GB --subjob-memory 4GB --mainjob-memory 10GB --mainjob-disk 10GB --git-location https://github.com/e4nu/Generator-Q208.git --git-branch Q2-1_4 --submit-jobs

53917996.0@jobsub03.fnal.gov

G18+1.4 cut+Mono:

python eAScatteringGridSubmitter.py --jobs-topdir /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/UnRadiated/H/Q214 --total-xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/G18_10a_Dipole_Q2_14_eFreeNucleon.xml --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config --probe-list 11 --vN-gen-list none --vA-gen-list none --e-ntotevents 10000000 --starting-point 4 --no-ghep-output --gst-output --tune G18_10a_00_000 --e-tgt-list 1000010010 --store-comitinfo --subjob-disk 4GB --subjob-memory 4GB --mainjob-memory 10GB --mainjob-disk 10GB --ebeam-energy 4.325 --git-location https://github.com/e4nu/Generator-Q208.git --git-branch Q2-1_4 --event-generator-list EMQE

67761972.0@jobsub01.fnal.gov

G18+1.4+Radiated by me:

python eAScatteringGridSubmitter.py --jobs-topdir /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/Radiated/H/Q214/ --total-xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/G18_10a_Dipole_Q2_14_eFreeNucleon.xml --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config --probe-list 11 --e-ntotevents 100000 --flux /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Generation/radflux_H_4325MeV_simc.root,hradflux --e-minenergy-fluxrange 3.4 --e-maxenergy-fluxrange 4.35 --starting-point 4 --no-ghep-output --gst-output --tune G18_10a_00_000 --e-tgt-list 1000010010 --store-comitinfo --subjob-disk 3GB --subjob-memory 3GB --mainjob-memory 10GB --mainjob-disk 10GB --submit-jobs --event-generator-list EMQE --git-location https://github.com/e4nu/Generator-Q208.git --git-branch Q2-1_4

10098457.0@jobsub05.fnal.gov

G18+ADI+1.4:

python eAScatteringGridSubmitter.py --jobs-topdir /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/RadCorrAdiQ214/ --total-xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/G18_10a_Dipole_Q2_14_eFreeNucleon.xml --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config --probe-list 11 --vN-gen-list none --vA-gen-list none --e-ntotevents 10000000 --starting-point 4 --no-ghep-output --gst-output --tune G18_10a_00_000 --e-tgt-list 1000010010 --store-comitinfo --subjob-disk 4GB --subjob-memory 4GB --mainjob-memory 10GB --mainjob-disk 10GB --ebeam-energy 4.325 --git-location https://github.com/e4nu/Generator-Rad --git-branch jtv_radcorr_simple_Q2_1_4 --event-generator-list EMQEradcorr --store-comitinfo --submit-jobs

77537953.0@jobsub02.fnal.gov

jtenavidal commented 7 months ago

Do shape only comparison

jtenavidal commented 7 months ago

Look also at El distribution

jtenavidal commented 7 months ago

NUINT

CLAS6:

CLAS12: stay tuned for summer

jtenavidal commented 7 months ago
image
jtenavidal commented 7 months ago

Lambda; Photon distribution functions

jtenavidal commented 7 months ago

t: units of radiation length

jtenavidal commented 7 months ago

Adi

image image image

My code

image image image
jtenavidal commented 6 months ago

Rerunning with "simc" flux: 54101328.0@jobsub03.fnal.gov

jtenavidal commented 6 months ago

SIMC flux vs simple flux image

  • MoTsai vs my version:
image

Very small differences < 1%

This was not correct

image

Big differences between both implementations

jtenavidal commented 6 months ago
image

Why is the thikness not constant

jtenavidal commented 6 months ago

When I fix the constant above in my implementation, I get the expected behaviour

image

Running with more statistics

jtenavidal commented 6 months ago
image
jtenavidal commented 6 months ago
jtenavidal commented 6 months ago

C+inclusive: still not running it

H+Inclusive:

python eAScatteringGridSubmitter.py --jobs-topdir /pnfs/genie/scratch/users/jtenavid/GENIE_e4nu_Generations/2024Generation/RadiatedNew/emMCRadCorrFinalTest/H_Inclusive/ --total-xsec /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Splines/G18_10a_Dipole_Q2_14_eFreeNucleon.xml --config-dir /pnfs/genie/persistent/users/jtenavid/e4nu_files/e4nu-config-files/e4nu-GENIE-config --probe-list 11 --e-ntotevents 100000 --flux /pnfs/genie/persistent/users/jtenavid/e4nu_files/GENIE_Files/2024Generation/radflux_H_4325MeV_vanderhaeghen.root,hradflux --e-minenergy-fluxrange 3.4 --e-maxenergy-fluxrange 4.35 --starting-point 4 --no-ghep-output --gst-output --tune G18_10a_00_000 --e-tgt-list 1000010010 --store-comitinfo --subjob-disk 3GB --subjob-memory 3GB --mainjob-memory 10GB --mainjob-disk 10GB --submit-jobs --git-location https://github.com/e4nu/Generator-Q208.git --git-branch Q2-1_4
jtenavidal commented 6 months ago
image
jtenavidal commented 6 months ago

simc = 1.04948 simple 1.03978 vand 1.05096 schwinger 1 motsai 1.04947

jtenavidal commented 6 months ago

Set t = 0 to calculate radiation from nucleus itself -> It is possible to remove target thickness. We conclude internal is included. Delta Em = bin size of histogram ? if the missing energy is measured to an accuracy D E m ,

jtenavidal commented 6 months ago

40 days, 5kHz trigger rate CLAS12 10^*events

CLAS6 order of milions (10M events?)

jtenavidal commented 6 months ago

Before full radiation: digraph nuhepmc_ev { v1[label="Primary\nVertex", shape=circle, color=crimson]; o0[shape=point,color=cornflowerblue]; o0 -> v1 [label="e- [beam]\np3 = (0.000, 0.000, 4.324)", color=cornflowerblue]; o1[shape=point,color=black]; o1 -> v1 [label="proton [Target]\np3 = (0.000, 0.000, 0.000)", color=black]; o2[shape=point,color=chartreuse4]; v1 -> o2 [label="e- [final state]\np3 = (-0.171, -0.017, 4.305)", color=chartreuse4]; o3[shape=point,color=chartreuse4]; v1 -> o3 [label="proton [final state]\np3 = (0.171, 0.017, 0.019)", color=chartreuse4]; labelloc="t" label="QES-EM"; }

image

Forced radiation in:

jtenavidal commented 5 months ago

Moved to emMCRadCorr repository