2020 Valencia model available as mec_kind=6 #39
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Highlight
This version incorporates the 2020 Valencia model from Phys. Rev. C 102 (2020) 024601 within NuWro.
Users can now access the 2020 Valencia model as
in
params.txt.Hadronic Tables
The tables are stored in a new directory named as$pp, np, pn$ and $3p3h$ for the respective nucleus.
MEC_dataunder thesrc/directory. The dirMEC_data/further contains three sub-directories namelyC12,O16, andCa40which stores the hadronic tables corresponding toTo optimize the performance of NuWro, the hadronic tables are loaded just once while building the information within nucleus. Class$pp, np, pn$ and $3p3h$ for each component of the tensor $W^{\mu\nu}$ . Class
Response_functionis defined insrc/nucleus.hwhich stores the 4 contributions namelynucleuswhich was already defined insrc/nucleus.hnow stores the hadronic tables as an object of classResponse_function. There are five object of this class each designated to a single component of the tensor. These areW00,W03,W11,W12, andW33.Code
The code which models the 2020 Valencia model is written in
src/mecevent_2020Valencia.handsrc/mecevent_2020Valencia.cc.Nucleon Sampling function
The new nucleon sampling function is defined in the file
src/vecrand.hasnucleon_sampling_function( ... )which takes 4 arguments:double cos: Cosine angle between the desired vector with respect to a given vector.double par: Value fromMEC_cm_direction.double n: Value fromMEC_cm_strength.double cosboundary: Allowed range of cosine of the angle due to Pauli blocking.To sample a vector from the nucleon sampling function, the function
rand_direc2( ... )is added which takes 4 inputs:vec a: The vector which is used as a basis to draw another random vector aligned at a specific polar angle with respect to this vector.: Value fromMEC_cm_direction`.double degree: Value fromMEC_cm_strength.double kappa: The allowed range of cosine of the angle from which the angle is sampled`.Updated
params.txtThe new degrees of freedom implemented with 2020 Valencia model can be accessed with the update
data/params.txtfile.The new parameters are the following
MEC_3p3h_dynamics: To turn ON(1)/OFF(0) the 3p3h contribution in the MEC event ofmec_kind=6.MEC_cm_direction_pp: center of mass direction of outgoingMEC_cm_direction_pp=0.77.MEC_cm_strenght_pp: Strength of sampling the outgoingMEC_cm_strength_pp = 4.MEC_cm_direction_np: center of mass direction of outgoing0.7.MEC_cm_strenght_np: Same asMEC_cm_strength_ppbut forMEC_cm_strength=3.MEC_cm_direction_pn: center of mass direction of outgoing0.8.MEC_cm_strength_pn: Same asMEC_cm_strength_ppbut forMEC_cm_strength=4.