\item The thresholds can either be set by the \verb!padiwa.pl! script
in the daqtools repository or via the web frontend (choose Padiwa
SPI and set the reference to 3300 mV). There's also some script
- which sets the thresholds automagically, see folder \verb!thresholds!.
+ which sets the thresholds automatically, see folder \verb!thresholds!.
\item Due to the somewhat special design, it is expected behaviour
that you see no counts for very low thresholds, then some noise at
about the bias voltage ($\approx1.7\,\text{V}$) and then again no
--- /dev/null
+How to set thresholds for PaDiWa-AMPS
+
+Thresholds can be set via an graphical interface or via the \verb!padiwa.pl! script. For the graphical interface one has to go to \verb!locahlhost:1234/thresh/threshold.htm!. There one has to choose the correct Board, DAC-Chain and Channel (even numbers are the FAST channels, odd numbers are the SLOW channels). The Reference has to be set to 3300\,mV. For PaDiWa-AMPS the signal polarity and the approximate value of the baseline is shown in Figure \ref{fig_fast_slow}. The FAST signal is a positive Signal with an baseline at around 60\,mV. One has to find the baseline which is indicated by a very high rate in the TDC Hit Counters (\verb!localhost:1234/tdc/tdc.htm!). Then one has to increase the threshold to set a proper value. The SLOW signal is a negative Signal, so after finding the baseline at around 2890\,mV one has to degrease the threshold to set a proper value. For the FAST channels a threshold of about 10\,mV above the threshold is a reasonable value. The SLOW channels are more sensitive to noise, here values above 20\,mV are reasonable.
+
+\begin{figure}[h]
+\centering
+\includegraphics[width=0.8\textwidth]{./figures/FAST_SLOW.pdf}
+\caption[FAST and SLOW signal]{Signal polarity and the approximate value of
+the baseline for FAST and SLOW channels of PaDiWa-AMPS.}
+\label{fig_fast_slow}
+\end{figure}
+
+An script to set the thresholds automatically one can find in \verb!???!. ...tobeadded
+
+To save the thresholds one can use the pearl script in \verb!/thresholds! The
+thresholds can be saved to a file by
+typeing \verb!dump_thresholds_mainz.pl! \verb!>! \verb!filename.txt! (have a look to that script and chose the correct DAQ-chain and
+make it executable by typeing \verb!chmod! \verb!u+x!
+\verb!dump_thresholds_your_script.pl! and loaded to the padiwa by \verb!write_thresholds.pl! \verb!filename.txt!.