-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from JostMigenda/python3
XS scripts: Python 3 updates and improvements
- Loading branch information
Showing
8 changed files
with
42 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Cross section scripts | ||
A collection of various Python scripts to handle cross section files. | ||
|
||
## Installation | ||
All scripts are tested under Python 3.x. | ||
|
||
Some scripts require the following additional libraries: | ||
* [matplotlib](https://matplotlib.org/stable/users/installing.html) | ||
* [NumPy](https://numpy.org/install/) | ||
* [PyROOT](https://root.cern/manual/python/) | ||
* [SciPy](https://scipy.org/install.html) | ||
|
||
## Usage information | ||
|
||
### compare_xs.py | ||
Plot multiple cross section files. | ||
Run `python compare_xs.py` for usage information. | ||
|
||
### compute_nu_e_cross_sections.py | ||
Generate file with cross section for neutrino-electron scattering, based on [DOI:10.1088/0954-3899/29/11/013](https://doi.org/10.1088/0954-3899/29/11/013). | ||
|
||
### populate_CEvNS_xs.py | ||
Generate cross-section files for CEvNS (`xs_coh_helm_{element}_{flavor}`) using the Helm form factor. | ||
|
||
### universal_xs.py | ||
Produce a cross section file for an arbitrary A, Z, and Q. This gives a rough approximation and may only be accurate to within a factor of a few. | ||
Run `python universal_xs.py` for usage information. | ||
|
||
The folder `parameterization/` contains scripts used to generate this universal XS fit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...xs/parameterization/parameterize_shape.py → ...ts/parameterization/parameterize_shape.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
xscns/generic_xs/populate_CEvNS_xs.py → xscns/scripts/populate_CEvNS_xs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters