Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions doc/documentation.bib
Original file line number Diff line number Diff line change
Expand Up @@ -404,4 +404,48 @@ @article{SNEWS:2021ezc
primaryclass = {astro-ph.IM},
note = {\href{https://arxiv.org/abs/2109.08188}{\texttt{arXiv:2109.08188}}},
year = {2021},
}

@article{anderson2021development,
title={Development, characterisation, and deployment of the SNO+ liquid scintillator},
author={Anderson, MR and Andringa, S and Anselmo, L and Arushanova, E and Asahi, S and Askins, M and Auty, DJ and Back, AR and Barnard, Z and Barros, N and others},
journal={Journal of Instrumentation},
volume={16},
number={05},
pages={P05009},
year={2021},
publisher={IOP Publishing}
}

@article{albanese2021sno+,
title={The SNO+ experiment},
author={Albanese, V and Alves, R and Anderson, MR and Andringa, S and Anselmo, L and Arushanova, E and Asahi, S and Askins, M and Auty, DJ and Back, AR and others},
journal={Journal of Instrumentation},
volume={16},
number={08},
pages={P08059},
year={2021},
publisher={IOP Publishing}
}

@article{beacom2002detection,
title={Detection of supernova neutrinos by neutrino-proton elastic scattering},
author={Beacom, John F and Farr, Will M and Vogel, Petr},
journal={Physical Review D},
volume={66},
number={3},
pages={033001},
year={2002},
publisher={APS}
}

@article{ahrens1987measurement,
title={Measurement of neutrino-proton and antineutrino-proton elastic scattering},
author={Ahrens, LA and Aronson, SH and Connolly, PL and Gibbard, BG and Murtagh, MJ and Murtagh, SJ and Terada, S and White, DH and Callas, JL and Cutts, D and others},
journal={Physical Review D},
volume={35},
number={3},
pages={785},
year={1987},
publisher={APS}
}
12 changes: 10 additions & 2 deletions doc/documentation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ \section{More Details}
\subsection{Detector Materials}
sntools currently supports three detector materials: water, liquid scintillator and water-based liquid scintillator.
Water is assumed to consist of an oxygen-16 nucleus and two hydrogen nuclei (free protons).
Liquid scintillator is assumed to consist of $n$ carbon-12 nuclei and $2n$ hydrogen nuclei (free protons).
Generic liquid scintillator is assumed to consist of $n$ carbon-12 nuclei and $2n$ hydrogen nuclei (free protons). In addition, linear alkylbenzene (LAB) is available as a liquid scintillator material and assumes a molecular structure of C$_6$H$_5$C$_n$H$_{2n+1}$ where $n$ is between 9-14 (95\% 9-12) \cite{anderson2021development}.
Water-based liquid scintillator is assumed to be a mixture of $x\,\%$ liquid scintillator and $(100-x)\,\%$ water.
%Each material supports the appropriate detection channels presented in section~\ref{sec:interaction-channels}.

Expand All @@ -159,12 +159,14 @@ \subsection{Detector Configurations}\label{sec:detector-configurations}
\item[\texttt{WATCHMAN-WbLS}] Same as \texttt{WATCHMAN}, but filled with water-based liquid scintillator (3\,\% LS, 97\,\% water).
\item[\texttt{THEIA25}] THEIA-25 geometry~\cite{Askins2020}. Box with dimensions $\SI{20}{m}\times\SI{18}{m}\times\SI{70}{m}$, filled with \SI{25}{kt} of water-based liquid scintillator (10\,\% LS, 90\,\% water).
\item[\texttt{THEIA100}] THEIA-100 geometry~\cite{Askins2020}. Cylindrical detector filled with \SI{100}{kt} of water-based liquid scintillator (10\,\% LS, 90\,\% water).
\item[\texttt{SNOplusAV}] Inner acrylic vessel of SNO+ \cite{albanese2021sno+}. Sphere with a radius of \SI{6}{m}, filled with linear alkylbenzene (LAB) liquid scintillator.
\item[\texttt{SNOplusEW}] External water of SNO+ \cite{albanese2021sno+}. Two concentric spheres of radii \SI{9}{m} and \SI{6.05}{m}. The outer sphere is filled with water, the inner sphere is empty.
\end{description}


\subsection{Interaction Channels} \label{sec:interaction-channels}
sntools supports multiple different interaction channels described in this section.
By default, it will generate events across all channels that are available in the selected detector, but it can be restricted to a single channel by using the \texttt{--channel <value>} command line argument, where \texttt{<value>} can be one of \texttt{ibd}, \texttt{es}, \texttt{o16e}, \texttt{o16eb}, \texttt{c12e}, \texttt{c12eb} and \texttt{c12nc}.
By default, it will generate events across all channels that are available in the selected detector, but it can be restricted to a single channel by using the \texttt{--channel <value>} command line argument, where \texttt{<value>} can be one of \texttt{ibd}, \texttt{es}, \texttt{ps}, \texttt{o16e}, \texttt{o16eb}, \texttt{c12e}, \texttt{c12eb} and \texttt{c12nc}.

For all supported channels, sntools includes code to calculate the differential cross sections, outgoing particle energy as a function of neutrino energy and other quantities.
These could be used as a library from other Python code, e.\,g. as follows:\\
Expand Down Expand Up @@ -193,6 +195,12 @@ \subsubsection{\texttt{es}: Neutrino-Electron Scattering}

In sntools, elastic scattering is implemented using the tree-level cross sections from standard electroweak theory calculated by ’t~Hooft~\cite{t-Hooft1971} and including one-loop electroweak and QCD corrections as well as QED radiative corrections as calculated in reference~\cite{Bahcall1995}.

\subsubsection{\texttt{ps}: Neutrino-Proton Scattering}
In liquid scintillator, neutrino-proton scattering ($\nu + p \rightarrow \nu + p$) is an additional available subdominant interaction channel. The recoiling proton energy spectrum is soft meaning the deposited energy in the detector is relatively low ($<5$~MeV). These protons are invisible in water as they're below the Cherenkov threshold. Furthermore, the slow heavily ionizing protons lose energy very quickly, quenching the effective signal. Despite this, over a realistic detection threshold ($\mathcal{O}(100)$s~keV), the neutrino-proton scattering yield can be the second largest available to liquid scintillator detectors below IBD.

Neutrino-proton scattering is a neutral current interaction and is available to all (anti-)neutrino flavours. The proton recoil spectrum can also provide spectral information about the incoming neutrino, which could solve a long-standing problem of how to separately measure the total energy and temperature of $\nu_{\mu}$, $\nu_{\tau}$, $\bar{\nu}_{\mu}$, and $\bar{\nu}_{\tau}$ \cite{beacom2002detection}.

In sntools, the implementation of neutrino-proton scattering is based a prediction by Beacom, Farr, and Vogel \cite{beacom2002detection}. Here the cross-section is calculated directly from the Standard Model, which has been extensively verified by GeV-scale experiments \cite{ahrens1987measurement}.

\subsubsection{\texttt{o16e} and \texttt{o16eb}: Charged-Current Interactions on $^{16}$O}
In water, charged-current interactions of \nue and \nuebar on $^{16}$O nuclei,
Expand Down
2 changes: 1 addition & 1 deletion sntools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def setup():
with open('outfile.kin', 'r') as f:
output_sha = hashlib.sha256(f.read().encode('utf-8')).hexdigest()

test_sha = "4424b738d32b6c4baa459fb6fb76d63f944b572a02d319bde4fd247a520f1e29"
test_sha = "0e3444d5a174ee49bd3adad498a2a022d2340736f2e056bfab12df0e5a9b0c54"
if output_sha == test_sha:
tryprint(u"\u2705", "[SUCCESS]")
print("Everything seems to work fine. Enjoy using sntools!")
Expand Down
38 changes: 36 additions & 2 deletions sntools/detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
ls = {
"molecular_weight": 14.0266, # g/mol
"density": 0.86, # g/cm^3
"channel_weights": {"ibd": 2, "es": 8, "c12e": 1, "c12eb": 1, "c12nc": 1},
"channel_weights": {"ibd": 2, "es": 8, "ps": 2, "c12e": 1, "c12eb": 1, "c12nc": 1},
}

# liquid scintillator: LAB, average structure -> C_16.65H_27.3 (C6H5CnH2n+1 where n is 95% 9-12, 5% 13-14)
lab = {
"molecular_weight": 227.50, # g/mol
"density": 0.856, # g/cm^3
"channel_weights": {"ibd": 27.3, "es": 127.2, "ps": 27.3, "c12e": 16.65, "c12eb": 16.65, "c12nc": 16.65},
}


Expand All @@ -38,7 +45,7 @@ def wbls(x):
# List of supported detector configurations
supported_detectors = ["HyperK", "HyperKDR", "SuperK",
"WATCHMAN", "WATCHMAN-LS", "WATCHMAN-WbLS",
"THEIA25", "THEIA100"]
"THEIA25", "THEIA100", "SNOplusAV", "SNOplusEW"]


class Detector(object):
Expand Down Expand Up @@ -89,6 +96,15 @@ def __init__(self, name):
self.height = 5000
self.radius = 5000 / 2
self.material = wbls(0.10) # 10% LS, 90% water
elif name == "SNOplusAV": # SNO+ inner AV only
self.shape = "sphere"
self.radius = 600
self.material = lab
elif name == "SNOplusEW": # SNO+ external water
self.shape = "hollowSphere"
self.innerRadius = 605
self.outerRadius = 900
self.material = water
else:
raise ValueError(f"Unknown detector name: {name}")

Expand All @@ -97,6 +113,10 @@ def __init__(self, name):
volume = self.x * self.y * self.z
elif self.shape == "cylinder":
volume = pi * self.radius ** 2 * self.height # assumes cylindrical detector
elif self.shape == "sphere":
volume = (4 * pi * self.radius ** 3) / 3
elif self.shape == "hollowSphere":
volume = ((4 * pi * self.outerRadius ** 3) / 3) - ((4 * pi * self.innerRadius ** 3) / 3)
else:
raise ValueError(f"Unknown detector shape: {self.shape}")
number_density = self.material["density"] * 6.022e23 / self.material["molecular_weight"]
Expand All @@ -122,6 +142,20 @@ def generate_random_vertex(self):
if x ** 2 + y ** 2 < self.radius ** 2:
break
z = random.uniform(-self.height / 2, self.height / 2)
elif self.shape == "sphere":
while True:
x = random.uniform(-self.radius, self.radius)
y = random.uniform(-self.radius, self.radius)
z = random.uniform(-self.radius, self.radius)
if x ** 2 + y ** 2 + z ** 2 < self.radius ** 2:
break
elif self.shape == "hollowSphere":
while True:
x = random.uniform(-self.outerRadius, self.outerRadius)
y = random.uniform(-self.outerRadius, self.outerRadius)
z = random.uniform(-self.outerRadius, self.outerRadius)
if (x**2 + y**2 + z**2 < self.outerRadius**2) and (x**2 + y**2 + z**2 > self.innerRadius**2):
break
else:
raise ValueError(f"Unknown detector shape: {self.shape}")
return x, y, z
2 changes: 2 additions & 0 deletions sntools/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def ratpac_string(self, i, events):
mass = 0.0
if pid == 2112:
mass = 939.56563
if pid == 2212:
mass = 938.27205
p2 = (e**2) - (mass**2)
p = p2**0.5
px = dirx * p
Expand Down
7 changes: 4 additions & 3 deletions sntools/genevts.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@ def parse_command_line_options():
help="Transformation between neutrino flux inside SN and flux in the detector on Earth. \
Choices: %(choices)s. Default: %(default)s.")

choices = ("ibd", "es", "o16e", "o16eb", "c12e", "c12eb", "c12nc")
choices = ("ibd", "es", "ps", "o16e", "o16eb", "c12e", "c12eb", "c12nc")
parser.add_argument("-c", "--channel", metavar="INTCHANNEL", choices=choices, default="all",
help="Interaction channels to consider. Currently supported: inverse beta decay (ibd), \
electron scattering (es), nu_e + oxygen CC (o16e), nu_e-bar + oxygen CC (o16eb), \
nu_e + carbon CC (c12e), nu_e-bar + carbon CC (c12eb) and nu + carbon NC (c12nc). \
electron scattering (es), proton scattering (ps), nu_e + oxygen CC (o16e), \
nu_e-bar + oxygen CC (o16eb), nu_e + carbon CC (c12e), nu_e-bar + carbon CC (c12eb), \
and nu + carbon NC (c12nc). \
Default: All channels available in selected detector.")

parser.add_argument("-d", "--detector", metavar="DETECTOR", choices=supported_detectors, default="HyperK",
Expand Down
124 changes: 124 additions & 0 deletions sntools/interaction_channels/ps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
"""
Implementation of nu + p -> nu + p

Largely based on John F Beacom et al., 2002: 10.1103/PhysRevD.66.033001.
This neutrino-proton scattering process only has a NC channel. The calculation assumes neutrinos at SN neutrino energies.

Written by S. Valder (2022), based on other interaction channels in sntools.
"""

from math import pi, sqrt, log
from scipy import integrate

from sntools.event import Event
from sntools.interaction_channels import BaseChannel, cherenkov_threshold


# List of neutrino flavors ("e", "eb", "x", "xb") that interact in this channel.
possible_flavors = ["e", "eb", "x", "xb"]

sin2theta_w = 0.23155 # weak mixing angle
mP = 938.27205 # proton mass (MeV)
gF = 1.16637e-11 # Fermi coupling constant
gA_0 = 1.267 # axial proton form factor; from Beringer et al. 2012, doi: 10.1103/PhysRevD.86.010001
eta = 0.12 # proton strangeness; from Ahrens et al. 1987, doi 10.1103/PhysRevD.35.785
cA_0 = (gA_0 * (1 + eta)) / 2 # axial vector coupling constant
cV = (1 - (4 * sin2theta_w)) / 2 # axial vector coupling constant


class Channel(BaseChannel):
def generate_event(self, eNu, dirx, diry, dirz):
"""Return an event with the appropriate incoming/outgoing particles.

Input:
eNu: neutrino energy
dirx, diry, dirz: direction of outgoing particle (normalized to 1)
"""
incoming_flv = {'e': 12, 'eb': -12, 'x': 14, 'xb': -14}[self.flavor]
eE = self.get_eE(eNu, dirz)

evt = Event(2001001 if incoming_flv > 0 else -2001001)
evt.incoming_particles.append((incoming_flv, eNu, 0, 0, 1)) # incoming neutrino
evt.incoming_particles.append((2212, mP, 0, 0, 1)) # proton at rest
evt.outgoing_particles.append((2212, eE, dirx, diry, dirz)) # outgoing proton
return evt

def dSigma_dE(self, eNu, eE):
"""Return differential cross section in MeV^-2.

Inputs:
eNu: neutrino energy
eE: energy of outgoing (detected) particle
"""
if eE < self.bounds_eE(eNu)[0] or eE > self.bounds_eE(eNu)[1]:
return 0

if self.flavor in ("e", "x"): # neutrino
cA = cA_0

if self.flavor in ("eb", "xb"): # antineutrino
cA = -cA_0

T = eE - mP # Kinetic energy of outgoing proton

result = (((gF**2 * mP) / (2 * pi * eNu**2)) * (((cV + cA)**2 * eNu**2) + ((cV - cA)**2 * (eNu - T)**2) - ((cV**2 - cA**2) * mP * T)))

if result < 0:
raise ValueError(f"Calculated negative cross section for E_nu={eNu}, E_e={eE}. Aborting...")

return result

def get_eE(self, eNu, cosT):
"""Return energy of scattered proton (in MeV).

Input:
eNu: neutrino energy (in MeV)
cosT: cosine of the angle between neutrino and outgoing (detected) particle
"""

return (((2 * cosT**2 * eNu**2) / (mP)) + mP) # calculation from 10.1103/PhysRevD.66.033001, first order approximation


def dSigma_dCosT(self, eNu, cosT):
"""Return differential cross section in MeV^-2 as a function of the emission angle of the outgoing (detected) particle.

Input:
eNu: neutrino energy (MeV)
cosT: cosine of the angle between neutrino and outgoing (detected) particle
"""
if cosT < 0: # backward scattering is kinematically impossible
return 0

dE_dCosT = (4 * cosT * eNu**2) / mP # differentiate eE wrt cosT
eE = self.get_eE(eNu, cosT)
return dE_dCosT * self.dSigma_dE(eNu, eE)

# Minuimum energy of the outgoing proton is the mass of the proton
eE_min = mP

def bounds_eE(self, eNu, *args): # ignore additional arguments handed over by integrate.nquad()
"""Return kinematic bounds for integration over eE.

Input:
eNu: neutrino energy (in MeV)
args: [ignore this]
Output:
list with minimum & maximum allowed energy of outgoing (detected) particle
"""

#eE_max = mP + ((2 * eNu**2) / mP) # this is get_eE(eNu, cosT=1); could use
eE_max = mP + ((2 * eNu**2) / (mP + 2 * eNu))

return [self.eE_min, eE_max]

# Bounds for integration over eNu
def eNu_min(self, eE):
T = eE - mP
return ((T + (sqrt(T * (T + (2 * mP))))) / 2) # see 10.1103/PhysRevD.66.033001

bounds_eNu = [eNu_min(None, eE_min), 100]

def _bounds_eNu(self, eE):
"""Min/max neutrino energy that can produce a given positron energy."""
return [self.eNu_min(eE), self.bounds_eNu[1]]

Loading