\chapter{Data analysis} \label{cha:data_analysis} \section{Analysis modules} \label{sec:analysis_modules} A full offline analysis has not been completed yet, but initial analysis based on the existing modules (Table~\ref{tab:offline_modules}) is possible thanks to the modularity of the analysis framework. \begin{table}[htb] \begin{center} \begin{tabular}{l p{8cm}} \toprule \textbf{Module name} & \textbf{Functions}\\ \midrule MakeAnalysedPulses & make a pulse with parameters extracted from a waveform\\ MaxBinAPGenerator & simplest algorithm to get pulse information\\ TSimpleMuonEvent & sort pulses occur in a fixed time window around the muon hits\\ ExportPulse \& PulseViewer & plot waveforms for diagnostics\\ PlotAmplitude & plot pulse height spectra\\ PlotAmpVsTdiff & plot pulse correlations in timing and amplitude\\ EvdE & identify charged particles using dE/dx\\ \bottomrule \end{tabular} \end{center} \caption{Available offline analysis modules.} \label{tab:offline_modules} \end{table} The MakeAnalysedPulses module takes a raw waveform, calculates the pedestal from a predefined number of first samples, subtracts this pedestal, takes pulse polarity into account, then calls another module to extract pulse parameters. At the moment, the simplest module, so-called MaxBinAPGenerator, for pulse information calculation is in use. The module looks for the sample that has the maximal deviation from the baseline, takes the deviation as pulse amplitude and the time stamp of the sample as pulse time. The procedure is illustrated on Figure~\ref{fig:tap_maxbin_algo}. This module could not detect pile up or double pulses in one \tpulseisland{} in Figure~\ref{fig:tap_maxbin_bad}. \begin{figure}[htb] \centering \includegraphics[width=0.85\textwidth]{figs/tap_maxbin_algo} \caption{Pulse parameters extraction with MaxBinAPGenerator.} \label{fig:tap_maxbin_algo} \end{figure} \begin{figure}[htb] \centering \includegraphics[width=0.47\textwidth]{figs/tap_maxbin_bad} \includegraphics[width=0.47\textwidth]{figs/tap_maxbin_bad2} \caption{Double pulse and pile up are taken as one single pulse by the MaxBinAPGenerator} \label{fig:tap_maxbin_bad} \end{figure} The TSimpleMuonEvent first picks a muon candidate, then loops through all pulses on all detector channels, and picks all pulses occur in a time window of $\pm 10$~\micro\second\ around each candidate to build a muon event. A muon candidates is a hit on the upstream plastic scintillator with an amplitude higher than a threshold which was chosen to reject minimum ionising particles (MIPs). The 10~\micro\second\ is long enough compares to the mean life time of muons in the target materials (0.758~\micro\second\ for silicon, and 0.864~\micro\second\ for aluminium~\cite{SuzukiMeasday.etal.1987}) so practically all of emitted charged particles would be recorded in this time window. %\begin{figure}[htb] %\centering %\includegraphics[width=0.85\textwidth]{figs/tme_musc_threshold} %\caption{Pulse height spectrum of the $\mu$Sc scintillator} %\label{fig:tme_musc_threshold} %\end{figure} A pile-up protection mechanism is employed to reject multiple muons events: if there exists another muon hit in less than 15~\micro\second\ from the candidate then both the candidate and the other muon are discarded. This pile-up protection would cut out less than 11\% total number of events because the beam rate was generally less than 8~\kilo\hertz. %In runs with active silicon targets, another requirement is applied for the %candidate: a prompt hit on the target in $\pm 200$ \nano\second\ around the %time of the $\mu$Sc pulse. The number comes from the observation of the %time correlation between hits on the target and the $\mu$Sc %(Figure~\ref{fig:tme_sir_prompt_rational}). %\begin{figure}[htb] %\centering %\includegraphics[width=0.85\textwidth]{figs/tme_sir_prompt_rational} %\caption{Correlation in time between SiR2 hit and muon hit} %\label{fig:tme_sir_prompt_rational} %\end{figure} To make sure that we will analyse good data, a low level data quality checking was done on the whole data sets. The idea is plotting the variations of basic parameters, such as noise level, length of \tpulseisland{}, \tpulseisland{} rate, time correlation to hits on $\mu$Sc, \ldots on each channel during the data collecting period. Runs with significant difference from the nominal values were further checked for possible causes, and would be discarded if such discrepancy was too large or unaccounted for. Examples of such trend plots are shown in Figure~\ref{fig:lldq}. \begin{figure}[htb] \centering \includegraphics[width=0.47\textwidth]{figs/lldq_noise} \includegraphics[width=0.47\textwidth]{figs/lldq_tdiff} \caption{Example trend plots used in the low level data quality checking: noise level in FWHM (left) and time correlation with muon hits (right). The noise level was basically stable in in this data set, except for one channel. On the right hand side, this sanity check helped find out the sampling frequency was wrongly applied in the first tranche of the data set.} \label{fig:lldq} \end{figure} % section analysis_modules (end) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Detector calibration} \label{sec:detector_calibration} \subsection{Silicon detector} \label{sub:silicon_detector} The energy calibration for the silicon detectors were done routinely during the run, mainly by an $^{241}\textrm{Am}$ alpha source and a tail pulse generator. The source emits 79.5 $\alpha\per\second$ in a 2$\pi$~\steradian~solid angle. The most prominent alpha particles have energies of 5.484~\mega\electronvolt\ (85.2\%) and 5.442~\mega\electronvolt\ (12.5\%). A tail pulse with amplitude of 66 \milli\volt~was used to simulate the response of the silicon detectors' preamplifiers to a particle with 1\mega\electronvolt~energy deposition. During data taking period, electrons in the beam were were also used for energy calibration of thick silicon detectors where energy deposition is large enough. The muons at different momenta provided another mean of calibration in the beam tuning period. %Typical pulse height spectra of the silicon detectors are shown %in Figure~\ref{fig:si_eg_spectra}. According to Micron Semiconductor \footnote{\url{http://www.micronsemiconductor.co.uk/}}, the manufacturer of the silicon detectors, the nominal thickness of the dead layer on each side is 0.5~\micron. The alpha particles from the source would deposit about 66~keV in this layer, and the peak would appear at 5418~keV (Figure~\ref{fig:toyMC_alpha}). \begin{figure}[htb] \centering \includegraphics[width=0.6\textwidth]{figs/toyMC_alpha} \caption{Energy loss of the alpha particles after a dead layer of 0.5~\micron.} \label{fig:toyMC_alpha} \end{figure} The calibration coefficients for the silicon channels are listed in Table~\ref{tab:cal_coeff}. \begin{table}[htb] \begin{center} \begin{tabular}{l c r} \toprule \textbf{Detector} & \textbf{Slope} & \textbf{Offset}\\ \midrule SiL-2 & 7.86 & 14.14\\ SiR-2 & 7.96 & 22.98\\ \midrule SiL1-1 & 2.61 & 37.34\\ SiL1-2 & 2.54 & -20.78\\ SiL1-3 & 2.65 & 67.75\\ SiL1-4 & 2.54 & -18.45\\ \midrule SiR1-1 & 2.53 & 28.69\\ SiR1-2 & 2.62 & 47.10\\ SiR1-3 & 2.49 & 6.32\\ SiR1-4 & 2.53 & 34.81\\ \bottomrule \end{tabular} \end{center} \caption{Calibration coefficients of the silicon detector channels} \label{tab:cal_coeff} \end{table} % subsection silicon_detector (end) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \subsection{Germanium detector} \label{sub:germanium_detector} The germanium detector was calibrated using a $^{152}\textrm{Eu}$ source\footnote{Energies and intensities of gamma rays are taken from the X-ray and Gamma-ray Decay Data Standards for Detector Calibration and Other Applications, which is published by IAEA at \\ \url{https://www-nds.iaea.org/xgamma_standards/}}, the recorded pulse height spectrum is shown in Figure~\ref{fig:ge_eu152_spec}. The source was placed at the target position so that the absolute efficiencies can be calibrated. The relation between pulse height in ADC count and energy is found to be: \begin{equation} \textrm{ E [keV]} = 0.1219 \times \textrm{ADC} + 1.1621 \end{equation} The energy resolution (full width at half maximum) was better than 2.6~\kilo\electronvolt\ for all the $^{152}\textrm{Eu}$ peaks. It was a little worse at 3.1~\kilo\electronvolt~for the annihilation photons at 511.0~\kilo\electronvolt. The absolute efficiencies for the $(2p-1s)$ lines of aluminium (346.828~\kilo\electronvolt) and silicon (400.177~\kilo\electronvolt) are presented in Table~\ref{tab:xray_eff}. In the process of efficiency calibration, corrections for true coincidence summing and self-absorption were not applied. The true coincidence summing probability is estimated to be very small, about \sn{5.4}{-6}, thanks to the far geometry of the calibration. The absorption in the source cover made of 22~\milli\gram\per\centi\meter$^2$ polyethylene is less than \sn{4}{-4} for a 100~\kilo\electronvolt\ photon. \begin{table}[htb] \begin{center} \begin{tabular}{c c c} \toprule \textbf{X-ray} & \textbf{Efficiency} & \textbf{Uncertainty}\\ \midrule 346.828 & $5.12 \times 10^{-4}$ & $0.14\times 10^{-4}$\\ 400.177 & $4.54 \times 10^{-4}$ & $0.11\times 10^{-4}$\\ \bottomrule \end{tabular} \end{center} \caption{Calculated efficiencies at X-rays of interest} \label{tab:xray_eff} \end{table} \begin{figure}[htb] \centering \includegraphics[width=0.70\textwidth]{figs/ge_eu152_spec} \caption{Energy spectrum of the $\rm^{152}\textrm{Eu}$ calibration source recorded by the germanium detector. The most prominent peaks of $^{152}\textrm{Eu}$ along with their energies are annotated in red; the 1460.82 \kilo\electronvolt~line is background from $^{40}\textrm{K}$; and the annihilation 511.0~\kilo\electronvolt~photons come both from the source and the surrounding environment.} \label{fig:ge_eu152_spec} \end{figure} \begin{figure}[htb] \centering \includegraphics[width=0.89\textwidth]{figs/ge_ecal_fwhm} \caption{Germanium energy calibration and resolution.} \label{fig:ge_fwhm} \end{figure} \begin{figure}[htb] \centering \includegraphics[width=0.80\textwidth]{figs/ge_ecal_eff} \caption{Absolute efficiency of the germanium detector, the fit was done with 7 energy points from 244~keV because it is known that the linearity between $ln(\textrm{E})$ and $ln(\textrm{eff})$ holds better. The shaded area is 95\% confidence interval of the fit.} \label{fig:ge_eff} \end{figure} % subsection germanium_detector (end) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %\subsection{Beam tuning and muon momentum scanning} %\label{sub:muon_momentum_scanning} %Before taking any data, we carried out the muon momentum scanning to understand %the muon beam, as well as calibrate the detector system. The nominal muon %momentum used in the Run 2013 had been tuned to 28~MeV\cc\ before the run. By %changing simultaneously the strength of the key magnet elements in the $\pi$E1 %beam line with the same factor, the muon beam momentum would be scaled with the %same factor. %The first study was on the range of muons in an active silicon target. The SiL2 %detector was placed perpendicular to the nominal beam path, after an oval %collimator. The beam momentum scaling factor was scanned from 1.10 to 1.60, %muon momenta and energies in the measured points are listed in %Table~\ref{tab:mu_scales}. %\begin{table}[htbp] %\begin{center} %\begin{tabular}{c c c c} %\toprule %\textbf{Scaling} & \textbf{Momentum} & \textbf{Kinetic energy} %& \textbf{Momentum spread}\\ %\textbf{factor} & \textbf{(MeV\per\cc)} & \textbf{(MeV)} %& \textbf{(MeV\per\cc, 3\% FWHM)}\\ %\midrule %1.03 & 28.84 & 3.87& 0.87\\ %1.05 & 29.40 & 4.01& 0.88\\ %1.06 & 29.68 & 4.09& 0.89\\ %1.07 & 29.96 & 4.17& 0.90\\ %1.10 & 30.80 & 4.40& 0.92\\ %1.15 & 32.20 & 4.80& 0.97\\ %1.20 & 33.60 & 5.21& 1.01\\ %1.30 & 36.40 & 6.09& 1.09\\ %1.40 & 39.20 & 7.04& 1.18\\ %1.43 & 40.04 & 7.33& 1.20\\ %1.45 & 40.60 & 7.53& 1.22\\ %1.47 & 41.16 & 7.73& 1.23\\ %1.50 & 42.00 & 8.04& 1.26\\ %\bottomrule %\end{tabular} %\end{center} %\caption{Muon beam scaling factors, energies and momenta.} %\label{tab:mu_scales} %\end{table} % subsection muon_momentum_scanning (end) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % section detector_calibration (end) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Charged particles following muon capture on a thick silicon target} \label{sec:charged_particles_from_muon_capture_on_silicon_thick_silicon} This analysis was done on a subset of the active target runs 2119 -- 2140 because of the problem of wrong clock frequency found in the data quality checking shown in Figure~\ref{fig:lldq}. The data set contains \sn{6.43}{7} muon events. %64293720 Firstly, the number of charged particles emitted after nuclear muon capture on the active target is calculated. This number then is normalised to the number of nuclear muon capture to obtain an emission rate. Finally, the rate is compared with that from the literature. \subsection{Event selection} \label{sub:event_selection} Because of the active target, a stopped muon would cause two coincident hits on the muon counter and the target. The energy of the muon hit on the active target is also well-defined as a narrow momentum spread beam was used. The correlation between the energy and timing of all the hits on the active target is shown in Figure~\ref{fig:sir2f_Et_corr}. The most intense spot at zero time and about 5 MeV energy corresponds to stopped muons in the thick target. The band below 1 MeV is due to electrons, either in the beam or from muon decay in orbits, or emitted during the cascading of muon to the muonic 1S state. The valley between time zero and 1200~ns shows the minimum distance in time between two pulses. It is the limitation of the current pulse parameter extraction method where no pile up or double pulses is accounted for. \begin{figure}[htb] \centering \includegraphics[width=0.85\textwidth]{figs/sir2_sir2f_E_t_corr} \caption{Energy - timing correlation of hits on the active target.} \label{fig:sir2f_Et_corr} \end{figure} The hits on the silicon active target after 1200~ns are mainly secondary particles from the stopped muons: \begin{itemize} \item electrons from muon decay in the 1S orbit \item products emitted after nuclear muon capture, including: gamma, neutron, heavy charged particles and recoiled nucleus \end{itemize} It can be seen that there is a faint stripe of muons in the time larger than 1200~ns region, they are scattered muons by other materials without hitting the muon counter. The electrons in the beam caused the constant band below 1 MeV and $t > 5000$ ns (see Figure~\ref{fig:sir2_1us_slices}). \begin{figure}[htb] \centering \includegraphics[width=0.85\textwidth]{figs/sir2_sir2f_amp_1us_slices} \caption{Energy deposit on the active target in 1000 ns time slices from the muon hit. The peaks at about 800 keV in large delayed time are from the beam electrons.} \label{fig:sir2_1us_slices} \end{figure} From the energy-timing correlation above, the cuts to select stopped muons are: \begin{enumerate} \item has one hit on muon counter (where a threshold was set to reject MIPs), and the first hit on the silicon active target is in coincidence with that muon counter hit: \begin{equation} \lvert t_{\textrm{target}} - t_{\mu\textrm{ counter}}\rvert<50\textrm{ ns} \label{eqn:sir2_prompt_cut} \end{equation} \item the first hit on the target has energy of that of the muons: \begin{equation} 3.4 \textrm{ MeV}