\section{TOF2E\_monitor: A time-of-flight monitor with simple energy analysis} \label{s:TOF2E_monitor}
\index{Monitors!TOF2E monitor}
%\component{E\_monitor}{System}{$x_\textrm{min}$, $x_\textrm{max}$, $y_\textrm{
%min}$, $y_\textrm{max}$, $n_\textrm{chan}$, $E_\textrm{min}$, $E_\textrm{max}$,
%$t_0$, $L_\textrm{flight}$, filename}{}{Not validated}
\mcdoccomp{monitors/TOF2E_monitor.parms}

The component \textbf{TOF2E\_monitor} resembles \textbf{TOF\_monitor}
to a very large extent. Only this monitor converts the neutron flight
time to energy - as would be done in an experiment.
The {\em apparent} neutron energy, $E_\textrm{app}$ is calculated 
from the apparent velocity, given by 
\begin{equation}
v_\textrm{app} = \frac{L_\textrm{flight}}{t-t_0} ,
\end{equation}
where the time offset, $t_0$ defaults to zero.
$E_\textrm{app}$ is binned in \textit{nchan} bins between
$E_\textrm{min}$ and $E_\textrm{max}$ (in meV).

The output parameters from \textbf{TOF2E\_monitor} are the total counts,
and a file with 1-dimensional data vs. $E_\textrm{app}$, 
similar to \textbf{TOF\_monitor}.

