Skip to content

Commit a946e48

Browse files
committed
Added neutrino data files and .gitignore
1 parent e1723b3 commit a946e48

File tree

6 files changed

+20014
-260
lines changed

6 files changed

+20014
-260
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.ipynb_checkpoints*
2+
*.pyc

CEvNS_example.ipynb

-189
This file was deleted.

DataFiles/NeutrinoList.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
neutrino_spectrum

DataFiles/ScaleConstants.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.326e10 0

DataFiles/neutrino_spectrum.txt

+20,000
Large diffs are not rendered by default.

index.ipynb

+10-71
Original file line numberDiff line numberDiff line change
@@ -2,91 +2,25 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": 2,
66
"metadata": {
77
"collapsed": true
88
},
99
"outputs": [],
1010
"source": [
1111
"import numpy as np\n",
12-
"import CEvNS"
12+
"import CEvNS #Import the module here"
1313
]
1414
},
1515
{
1616
"cell_type": "code",
17-
"execution_count": 2,
17+
"execution_count": 1,
1818
"metadata": {
1919
"collapsed": false
2020
},
21-
"outputs": [
22-
{
23-
"name": "stdout",
24-
"output_type": "stream",
25-
"text": [
26-
"Help on module CEvNS:\n",
27-
"\n",
28-
"NAME\n",
29-
" CEvNS - CEvNS.py - Version 1 - 25/01/2017\n",
30-
"\n",
31-
"FILE\n",
32-
" /Users/bradkav/Projects/RicochetNP/code/CEvNS.py\n",
33-
"\n",
34-
"DESCRIPTION\n",
35-
" Summary: \n",
36-
" Code for calculating differential cross section\n",
37-
" for Coherent Elastic Neutrino Nucleus Scattering (CEvNS).\n",
38-
" \n",
39-
" Cross sections taken from arXiv:1604.01025\n",
40-
" \n",
41-
" Author: Bradley J Kavanagh\n",
42-
" Please report any problems to: bradkav@gmail.com\n",
43-
"\n",
44-
"FUNCTIONS\n",
45-
" ERmax(E_nu, A)\n",
46-
" #Maximum nuclear recoil energy (in keV)\n",
47-
" \n",
48-
" HelmFormFactor(E, A)\n",
49-
" #Helm Form Factor\n",
50-
" \n",
51-
" xsec_CEvNS(E_R, E_nu, A, Z, g_med=0.0, m_med=1000.0)\n",
52-
" Calculates the differential cross section for\n",
53-
" Coherent Elastic Neutrino-Nucleus Scattering.\n",
54-
" \n",
55-
" Parameters\n",
56-
" ----------\n",
57-
" E_R : float\n",
58-
" Recoil energy (in keV)\n",
59-
" E_nu : float\n",
60-
" Neutrino energy (in MeV)\n",
61-
" A : int\n",
62-
" Mass number of target nucleus\n",
63-
" Z : int\n",
64-
" Atomic number of target nucleus\n",
65-
" \n",
66-
" g_med : float, optional\n",
67-
" Coupling of the new mediator to quarks and neutrinos\n",
68-
" (assumed equal). Set to zero by default.\n",
69-
" m_med : float, optional\n",
70-
" Mass of new mediator (in MeV). Set to 1000 MeV\n",
71-
" by default.\n",
72-
" \n",
73-
" \n",
74-
" Returns\n",
75-
" -------\n",
76-
" float\n",
77-
" Differential scattering cross section \n",
78-
" (in cm^2/keV)\n",
79-
"\n",
80-
"DATA\n",
81-
" G_Fermi = 1.1664e-05\n",
82-
" sin2thetaW = 0.2387\n",
83-
"\n",
84-
"\n"
85-
]
86-
}
87-
],
21+
"outputs": [],
8822
"source": [
89-
"help(CEvNS)"
23+
"#help(CEvNS)"
9024
]
9125
},
9226
{
@@ -103,6 +37,11 @@
10337
"%matplotlib inline"
10438
]
10539
},
40+
{
41+
"cell_type": "markdown",
42+
"metadata": {},
43+
"source": []
44+
},
10645
{
10746
"cell_type": "code",
10847
"execution_count": 17,

0 commit comments

Comments
 (0)