Skip to content

Commit a91f81f

Browse files
author
mhostert
committed
fix savefile argument in scalar_total_xsec and fix u = 0 argument for example 2
1 parent a1361f9 commit a91f81f

File tree

2 files changed

+122
-112
lines changed

2 files changed

+122
-112
lines changed

examples/Example_1_total_xsecs.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@
100100
"metadata": {},
101101
"outputs": [],
102102
"source": [
103-
"maj_test = dn.model.ThreePortalModel(name='maj_test', m4 = 0.1, Umu4=np.sqrt(2.2e-7), epsilon2=4.6e-4, alphaD=0.4, UD4=1, HNLtype='majorana', mzprime=1.25)\n",
104-
"dir_test = dn.model.ThreePortalModel(name='dirac_test', m4 = 0.1, Umu4=np.sqrt(2.2e-7), epsilon2=4.6e-4, alphaD=0.4, UD4=1, HNLtype='dirac', mzprime=1.25)\n",
103+
"maj_test = dn.model.ThreePortalModel(name='maj_test', m4 = 0.2, Umu4=np.sqrt(2.2e-7), epsilon2=4.6e-4, alphaD=0.4, UD4=1, HNLtype='majorana', mzprime=1.25)\n",
104+
"dir_test = dn.model.ThreePortalModel(name='dirac_test', m4 = 0.2, Umu4=np.sqrt(2.2e-7), epsilon2=4.6e-4, alphaD=0.4, UD4=1, HNLtype='dirac', mzprime=1.25)\n",
105105
"\n",
106106
"calc_maj_coh = dn.UpscatteringProcess(TheoryModel = maj_test, scattering_regime = 'coherent', **common_kwargs) \n",
107107
"calc_dir_coh = dn.UpscatteringProcess(TheoryModel = dir_test, scattering_regime = 'coherent', **common_kwargs) \n",
108108
"\n",
109-
"print(f'maj: tot_sigma = {calc_maj_coh.total_xsec(1.0, NEVAL=1000, NINT=10)}')\n",
110-
"print(f'dir: tot_sigma = {calc_dir_coh.total_xsec(1.0, NEVAL=1000, NINT=10)}')\n"
109+
"print(f'maj: tot_sigma = {calc_maj_coh.total_xsec(Enu=1.0, NEVAL=1000, NINT=10)}')\n",
110+
"print(f'dir: tot_sigma = {calc_dir_coh.total_xsec(Enu=1.0, NEVAL=1000, NINT=10)}')\n"
111111
]
112112
},
113113
{
@@ -121,8 +121,8 @@
121121
"\n",
122122
"fig, ax = dn.plot_tools.std_fig(figsize=(6,3))\n",
123123
"\n",
124-
"ax.plot(q2,calc_maj_coh.diff_xsec_Q2(1,q2),label='majorana', lw=2)\n",
125-
"ax.plot(q2,calc_dir_coh.diff_xsec_Q2(1,q2),ls='--',label='dirac', lw=2)\n",
124+
"ax.plot(q2,calc_maj_coh.diff_xsec_Q2(1,q2, diagrams=['total']),label='majorana', lw=2)\n",
125+
"ax.plot(q2,calc_dir_coh.diff_xsec_Q2(1,q2, diagrams=['total']),ls='--',label='dirac', lw=2)\n",
126126
"ax.set_yscale(\"log\")\n",
127127
"ax.set_xscale(\"log\")\n",
128128
"ax.set_xlabel(r\"$Q^2$/GeV$^2$\")\n",

0 commit comments

Comments
 (0)