\documentstyle[12pt,epsfig]{article}

\setlength{\textwidth}{6.5in}
\setlength{\textheight}{8.5in}
%\setlength{\footskip}{0.35in}
\setlength{\topmargin}{0.0in}
\setlength{\oddsidemargin}{0in}
\setlength{\parindent}{5ex}
\setlength{\parskip}{.12in}
\newcommand{\detw}{\mbox{$\frac{\Delta E}{2}$}}
\newcommand{\hs}{\hspace*{5ex}}



%\def\decayright#1{\kern#1em\raise1.1ex\hbox{$|$}\kern-.5em\rightarrow}

\begin{document}


\begin{center}
{\Large
Summary of a Variables in tsignals Tree
}
~\\
Amy Connolly\\
\today\\
\end{center}
~\\
~\\

\section{The tsignals Tree}

The tree called ``tsignals'' is stored in outputs/signals.root, which
is written by \texttt{icemc}.  Only events that survive any preselection cuts
to reach the Anita trigger are written to this tree.
Remember that as with the \texttt{passing\_events} tree, each event
has a weight given by \texttt{weight\_test/dnutries} to account for earth absorption and
selection of the interaction position within the horizon of the payload.
This is only filled for the antenna that is closest to the interaction, which
is always on the lowest of the three layers of the antennas (there are no
drop-downs implemented yet).  For all waveforms, there are 512 samples separated
by (1/2.6)~ns.

Where I refer to the first polarization, I mean LCP for Anita~I and vertical polarization for
Anita~II.  And for second polarization I mean RCP for Anita~I and horizontal polarization for
Anita~II.

A channel passes the trigger if the output of the tunnel diode\\
(\texttt{timedomain\_output\_1\_inanita[j]} or 
\texttt{timedomain\_output\_1\_inanita[j]})
goes lower than the (negative) 
threshold within the time window that lies between the 
232$^{\mathrm{nd}}$ and 284$^{\mathrm{th}}$ bins, or between about
89~ns and 109~ns.  Notice that this window
is centered about 15~ns later than the center of the 
signal waveforms since under my
tunnel diode model it imposes a delay.
The thresholds for ANITA~I are -1.251E-14 (Lo),-1.13106E-14 (Mid1),
-7.98583E-15 (Mid2),-1.40634E-14 (Hi) and -3.55069E-11 (full when used).
For ANITA~II, they are -1.15638e-14 (Lo), -1.42725e-14 (Mid),
-2.20845e-14 (Hi), -2.71869e-14 (Full).


\begin{center}
  \begin{tabular}{p{2.2in}p{4.0in}}
\texttt{double dangle} & Viewing angle - Cerenkov angle \\
\texttt{double emfrac} & EM fraction of the shower \\
\texttt{double hadfrac} & Hadronic fraction of the shower \\
\texttt{int inu} & \texttt{icemc}'s event number \\
\multicolumn{2}{p{6.0in}}{The event weight is the quotient \texttt{weight\_test/dnutries}}\\
\texttt{double dnutries} &  The number of ``tries'' for the interaction position across Antarctica before it would have landed within the horizon of the balloon.\\
\texttt{double weight\_test} & Weight due to absorption in the earth.  Is it the probability that the neutrino would have survived its trip through the earth.  When we fill this tree, we haven't stepped through the Earth using the full geographical model to calculate the absorption yet, so instead we just assume the 
neutrino only traverses ice on its way to the interaction.\\
\texttt{double peak\_e\_rx} & Peak of the signal waveform at the antenna receiver, first polarization.  No RFCM amplification or any attenuation of any sort imposed.  Just antenna effective heights imposed on the incident signal.\\
\texttt{double peak\_h\_rx} & Same as previous, but second polarization.\\
\texttt{double volts\_rx\_rfcm\_lab\_e[512]} & Time domain {\it signal} waveform read by the surf in the first polarization\\
\texttt{double peak\_e\_rx\_rfcm\_lab} & Peak of the previous waveform \\
\texttt{double volts\_rx\_rfcm\_lab\_h} & Time domain {\it signal} waveform read by the surf in the second polarization\\
\texttt{double peak\_h\_rx\_rfcm\_lab} & Peak of the previous waveform \\
\end{tabular}
\end{center}

\begin{center}
  \begin{tabular}{p{3.0in}p{3.2in}}
\texttt{double signal\_vpol\_inanita[5][512]} & Time domain {\it signal} waveforms (voltage v. time) for each of the five channels and each of the 512 samples in the vertical polarization only, before coverting to LCP, RCP for ANITA~I. \\
\texttt{double noise\_vpol\_inanita[5][512]} & Same as previous, but just the {\it noise} waveform in the vertical polarization only, with no signal.  This is before converting to LCP, RCP for ANITA~I. \\
\texttt{double total\_vpol\_inanita[5][512]} & Sum of the previous two waveforms. \\
\texttt{double total\_diodeinput\_1\_inanita[5][512]} & Waveform that is input to the tunnel diode for the first polarization.\\
\texttt{double total\_diodeinput\_2\_inanita[5][512]} & Waveform that is input to the tunnel diode for the second polarization.\\
\texttt{double peak\_e[5]} & Peak voltage of the signal waveform in the first polarization \\
\texttt{double peak\_h[5]} & Peak voltage of the noise waveform in the second polarization \\
\texttt{double timedomain\_output\_1\_inanita[5][512]} & Output waveforms of the tunnel diodes for each channel (voltage v. time) for the first polarization \\
\texttt{double timedomain\_output\_2\_inanita[5][512]} & Output waveforms of the tunnel diodes for each channel (voltage v. time) for the second polarization \\
\texttt{int flag\_e\_inanita[5][512]} & 1 when the channel has fired and 0 otherwise, for the first polarization.  This flag is held high for a L1 trigger coincidence window of 11.19~ns. \\
\texttt{int flag\_h\_inanita} & same as previous, but for the second polarization. \\
\texttt{double bwslice\_vrms[5]} & RMS noise voltage for each channel \\
\texttt{double ston[5]} & This is the peak signal voltage divided by rms noise voltage for each channel (\texttt{peak\_e[i]/bwslice\_vrms[i]}).  Not that this is not what is input to the discriminator, it is just one measure of signal strength. \\
\texttt{int channels\_passing\_e[5]} & Which channels in the first polarization pass the single-channel trigger at some time.  1 for yes, 0 for no. \\
\texttt{int channels\_passing\_h[5]/I} & Same as previous, but second polarization. \\
\texttt{int l1\_passing} & Whether this antenna passes the L1 trigger. 1 for yes, 0 for no. \\
 \texttt{double integral\_vmmhz} & Integral of the electric field in V/m/MHz incident on the closest antenna.  For the older frequency domain simulation, this was the measure of signal strength. \\
\end{tabular}
\end{center}




\end{document}










