A python interface to fortran code developed by Vadim A. Naumov and Konstantin Kuzmin, calculating neutrino-nucleon deep inelastic charged/neutral current cross-sections.
Project description
nudisxs
Table of Contents
Overview
The nudisxs
package integrates Python with Fortran computational routines, offering a user-friendly interface for complex neutrino-nucleon interaction simulations. This includes both charged and neutral current exchange calculations.
Installation
Requirements
- cmake (>=3.17)
- LHAPDF. Install it with python support
Installing from PyPi
You can easily install nudisxs
from PyPi using pip:
pip install nudisxs
Installing from Git
To install the latest development version directly from the repository:
git clone git@git.jinr.ru:dnaumov/nudisxs.git
cd nudisxs
python install .
Usage
Python Interface
The disxs.py
module in nudisxs
provides all necessary interfaces to the underlying Fortran code. This includes functions for initialization and calculation of cross-sections.
Initialization
Common initialization functions:
-
most used:
- init_neutrino()
- init_pdf()
- init_target()
-
for experts:
- init_masses()
- init_bend_factor()
- init_q2_min()
- init_abc()
- init_structure_functions()
- init_r_function()
- init_final_hadron_mass()
- init_fl_function()
- init_qc()
- double differential cross-sections
\frac{d^2\sigma}{dxdy}
are available as
disxs.xs_cc(e,x,y)
for charged current exchange and
disxs.xs_nc(e,x,y)
for neutral current exchange.
- some examples can be found in
nudisxs/tests/test_dis.py
nudisxs/tests/test_dis_total.py
License
nudisxs
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nudisxs-1.1.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e411c8268c108f595d3ae5327d9742c40d377b736c51afb392b11f1d53d310c |
|
MD5 | fb7a23a06d82cf7427a7c63479eaa789 |
|
BLAKE2b-256 | 5aa3375c0a933f7e9e59986388d01081c00ebc05505fd33c5a84d21f59d783fd |