Index: /trunk/MagicSoft/TDAS-Extractor/Pedestal.tex
===================================================================
--- /trunk/MagicSoft/TDAS-Extractor/Pedestal.tex	(revision 6792)
+++ /trunk/MagicSoft/TDAS-Extractor/Pedestal.tex	(revision 6793)
@@ -93,56 +93,56 @@
 
 
-\begin{figure}[htp]
-\centering
-\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38993_RelMean.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38995_RelMean.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38996_RelMean.eps}
-\caption{MExtractTimeAndChargeSpline with amplitude extraction: 
-Difference in mean pedestal (per FADC slice) between extraction algorithm
-applied on a fixed window of 1 FADC slice (``extractor random'') and a simple addition of 
-2 fixed FADC slices (``fundamental''). On the left, a run with closed camera has been taken, in the center
- an opened camera observing an extra-galactic star field and on the right, an open camera being 
-illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 
-pixel.}
-\label{fig:amp:relmean}
-\end{figure}
-
-\begin{figure}[htp]
-\centering
-\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38993_RelMean.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38995_RelMean.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38996_RelMean.eps}
-\caption{MExtractTimeAndChargeSpline with integral over 2 slices: 
-Difference in mean pedestal (per FADC slice) between extraction algorithm
-applied on a fixed window of 2 FADC slices (``extractor random'') and a simple addition of 
-2 FADC fixed slices (``fundamental''). On the left, a run with closed camera has been taken, in the center
- an opened camera observing an extra-galactic star field and on the right, an open camera being 
-illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 
-pixel.}
-\label{fig:int:relmean}
-\end{figure}
-
-\begin{figure}[htp]
-\centering
-\vspace{\floatsep}
-\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38993_RelMean.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38995_RelMean.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38996_RelMean.eps}
-\caption{MExtractTimeAndChargeDigitalFilter: 
-Difference in mean pedestal (per FADC slice) between extraction algorithm
-applied on a fixed window of 6 FADC slices and time-randomized weights (``extractor random'') 
-and a simple addition of 
-6 FADC fixed slices (``fundamental''). On the left, a run with closed camera has been taken, in the center
- an opened camera observing an extra-galactic star field and on the right, an open camera being 
-illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 
-pixel.}
-\label{fig:df:relmean}
-\end{figure}
+%\begin{figure}[htp]
+%\centering
+%\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38993_RelMean.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38995_RelMean.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38996_RelMean.eps}
+%\caption{MExtractTimeAndChargeSpline with amplitude extraction: 
+%Difference in mean pedestal (per FADC slice) between extraction algorithm
+%applied on a fixed window of 1 FADC slice (``extractor random'') and a simple addition of 
+%2 fixed FADC slices (``fundamental''). On the left, a run with closed camera has been taken, in the center
+% an opened camera observing an extra-galactic star field and on the right, an open camera being 
+%illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 
+%pixel.}
+%\label{fig:amp:relmean}
+%\end{figure}
+
+%\begin{figure}[htp]
+%\centering
+%\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38993_RelMean.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38995_RelMean.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38996_RelMean.eps}
+%\caption{MExtractTimeAndChargeSpline with integral over 2 slices: 
+%Difference in mean pedestal (per FADC slice) between extraction algorithm
+%applied on a fixed window of 2 FADC slices (``extractor random'') and a simple addition of 
+%2 FADC fixed slices (``fundamental''). On the left, a run with closed camera has been taken, in the center
+% an opened camera observing an extra-galactic star field and on the right, an open camera being 
+%illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 
+%pixel.}
+%\label{fig:int:relmean}
+%\end{figure}
+
+%\begin{figure}[htp]
+%\centering
+%\vspace{\floatsep}
+%\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38993_RelMean.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38995_RelMean.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38996_RelMean.eps}
+%\caption{MExtractTimeAndChargeDigitalFilter: 
+%Difference in mean pedestal (per FADC slice) between extraction algorithm
+%applied on a fixed window of 6 FADC slices and time-randomized weights (``extractor random'') 
+%and a simple addition of 
+%6 FADC fixed slices (``fundamental''). On the left, a run with closed camera has been taken, in the center
+% an opened camera observing an extra-galactic star field and on the right, an open camera being 
+%illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 
+%pixel.}
+%\label{fig:df:relmean}
+%\end{figure}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -177,87 +177,144 @@
 \par
 
-The following figures~\ref{fig:amp:relmean} through~\ref{fig:df:relrms} show results 
-obtained with the second method for three background intensities: 
-
-\begin{enumerate}
-\item Closed camera and no (Poissonian) fluctuation due to photons from the night sky background
-\item The camera pointing to an extra-galactic region with stars in the field of view
-\item The camera illuminated by a continuous light source of intensity 100. 
-\end{enumerate}
-
-Figures~\ref{fig:amp:relmean} through~\ref{fig:df:relmean} 
-show the calculated biases obtained with this method for all pixels in the camera 
-and for the different levels of (night-sky) background applied to 1000 pedestal events.
-One can see that the bias vanishes to an accuracy of better than 2\% of a photo-electron
+%The following figures~\ref{fig:amp:relmean} through~\ref{fig:df:relrms} show results 
+%obtained with the second method for three background intensities: 
+
+%\begin{enumerate}
+%\item Closed camera and no (Poissonian) fluctuation due to photons from the night sky background
+%\item The camera pointing to an extra-galactic region with stars in the field of view
+%\item The camera illuminated by a continuous light source of intensity 100. 
+%\end{enumerate}
+
+The calculated biases obtained with this method for all pixels in the camera 
+and for the different levels of (night-sky) background applied vanish 
+to an accuracy of better than 2\% of a photo-electron
 for the extractors which are used in this TDAS. 
+\par
+Table~\ref{tab::ped:fw} shows the resolutions $R$ obtained 
+by applying an extractor to a fixed extraction window, 
+for the inner and outer pixels, respectively, for four different camera illumination conditions: 
+Closed camera (run \#38993), star-field of an extra-galactic source observation (run~\#38995), 
+star-field of the Crab-Nebula observation (run~\#39258) and observation with the almost fully 
+illuminated moon at an angular distance of about~60$^\circ$ from the telescope pointing position 
+(run~\#46471). In the first three cases, the RMS of the values has been calculated while in the 
+fourth case, the high-end side of the signal distributions have been fitted to a Gaussian.
+\par
+The entries belonging to the rows denoted as ``Slid. Win.'' are by construction identical to those 
+obtained by simply summing up the FADC slices (the ``fundamental Pedestal RMS''). 
+Note that the digital filter yields much smaller values of $R$ than the ``sliding windows'' of 
+a same window size. This characteristic shows the 
+``filter''--capacity of that algorithm. It ``filters out'' up to 50\% of the night sky 
+background photo-electrons.
+\par
+One can see that the ratio between the pedestal RMS of outer and inner pixels is around a factor~3 
+for the closed camera and then 1.6--1.9 for the other conditions.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%1
 
-\begin{figure}[htp]
-\centering
-\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38993_RMSDiff.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38995_RMSDiff.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38996_RMSDiff.eps}
-\caption{MExtractTimeAndChargeSpline with amplitude:  
-Difference in RMS (per FADC slice) between extraction algorithm
-applied on a fixed window and the corresponding pedestal RMS. 
-Closed camera (left), open camera observing extra-galactic star field (right) and 
-camera being illuminated by the continuous light (bottom). 
-Every entry corresponds to one pixel.}
-\label{fig:amp:relrms}
-\end{figure}
-
-
-\begin{figure}[htp]
-\centering
-\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38993_RMSDiff.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38995_RMSDiff.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38996_RMSDiff.eps}
-\caption{MExtractTimeAndChargeSpline with integral over 2 slices:  
-Difference in RMS (per FADC slice) between extraction algorithm
-applied on a fixed window and the corresponding pedestal RMS. 
-Closed camera (left), open camera observing extra-galactic star field (right) and 
-camera being illuminated by the continuous light (bottom). 
-Every entry corresponds to one 
-pixel.}
-\label{fig:int:relrms}
-\end{figure}
-
-
-\begin{figure}[htp]
-\centering
-\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38993_RMSDiff.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38995_RMSDiff.eps}
-\vspace{\floatsep}
-\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38996_RMSDiff.eps}
-\caption{MExtractTimeAndChargeDigitalFilter:  
-Difference in RMS (per FADC slice) between extraction algorithm
-applied on a fixed window and the corresponding pedestal RMS. 
-Closed camera (left), open camera observing extra-galactic star field (right) and 
-camera being illuminated by the continuous light (bottom). 
-Every entry corresponds to one pixel.}
-\label{fig:df:relrms}
-\end{figure}
-
+%\begin{figure}[htp]
+%\centering
+%\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38993_RMSDiff.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38995_RMSDiff.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38996_RMSDiff.eps}
+%\caption{MExtractTimeAndChargeSpline with amplitude:  
+%Difference in RMS (per FADC slice) between extraction algorithm
+%applied on a fixed window and the corresponding pedestal RMS. 
+%Closed camera (left), open camera observing extra-galactic star field (right) and 
+%camera being illuminated by the continuous light (bottom). 
+%Every entry corresponds to one pixel.}
+%\label{fig:amp:relrms}
+%\end{figure}
+
+
+%\begin{figure}[htp]
+%\centering
+%\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38993_RMSDiff.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38995_RMSDiff.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38996_RMSDiff.eps}
+%\caption{MExtractTimeAndChargeSpline with integral over 2 slices:  
+%Difference in RMS (per FADC slice) between extraction algorithm
+%applied on a fixed window and the corresponding pedestal RMS. 
+%Closed camera (left), open camera observing extra-galactic star field (right) and 
+%camera being illuminated by the continuous light (bottom). 
+%Every entry corresponds to one 
+%pixel.}
+%\label{fig:int:relrms}
+%\end{figure}
+
+
+%\begin{figure}[htp]
+%\centering
+%\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38993_RMSDiff.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38995_RMSDiff.eps}
+%\vspace{\floatsep}
+%\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38996_RMSDiff.eps}
+%\caption{MExtractTimeAndChargeDigitalFilter:  
+%Difference in RMS (per FADC slice) between extraction algorithm
+%applied on a fixed window and the corresponding pedestal RMS. 
+%Closed camera (left), open camera observing extra-galactic star field (right) and 
+%camera being illuminated by the continuous light (bottom). 
+%Every entry corresponds to one pixel.}
+%\label{fig:df:relrms}
+%\end{figure}
+
+%\begin{landscape}
+%\rotatebox{90}{%
+\begin{table}[htp]
+\vspace{3cm}
+\small{%
+\centering
+\begin{tabular}{|c|c||c|c||c|c||c|c||c|c|}
+\hline
+\hline
+\multicolumn{10}{|c|}{Resolution for $S=0$ and fixed window (units in $N_{\mathrm{phe}}$)  \rule{0mm}{6mm} \rule[-2mm]{0mm}{6mm} \hspace{-3mm}} \\
+\hline
+\hline
+ & & \multicolumn{2}{|c|}{Closed camera} & \multicolumn{2}{|c|}{Extra-gal. NSB}  & \multicolumn{2}{|c|}{Galactic NSB}  & \multicolumn{2}{|c|}{Moon} \\ 
+\hline
+\hline
+Nr. & Name         & $R$ & $R$ &  $R$ & $R$ & $R$ & $R$ &  $R$ & $R$ \\
+    &              & inner & outer & inner & outer & inner & outer & inner & outer \\
+\hline                                                     
+17  & Slid. Win. 2  & 0.3 & 0.9 &  1.2 & 2.0 &  1.5 & 2.4 &  3.0 & 5.3   \\
+18  & Slid. Win. 4  & 0.4 & 1.2 &  1.6 & 2.7 &  2.0 & 3.3 &  3.9 & 7.3   \\
+20  & Slid. Win. 6  & 0.5 & 1.6 &  2.0 & 3.5 &  2.4 & 4.3 &  4.7 & 9.0   \\
+21  & Slid. Win. 8  & 0.6 & 2.0 &  2.3 & 4.1 &  2.9 & 5.0 &  5.3 & 10.1  \\
+\hline                                  
+23  & Spline Amp.   & 0.3 & 0.8 &  1.0 & 1.8 &  1.2 & 2.2 &  2.5 & 4.9   \\
+24  & Spline Int. 1 & 0.3 & 0.7 &  0.9 & 1.6 &  1.1 & 1.9 &  2.5 & 4.6   \\
+25  & Spline Int. 2 & 0.3 & 0.9 &  1.2 & 2.0 &  1.5 & 2.4 &  3.0 & 5.3   \\
+26  & Spline Int. 4 & 0.4 & 1.2 &  1.6 & 2.8 &  1.9 & 3.4 &  3.6 & 7.1   \\
+27  & Spline Int. 6 & 0.5 & 1.6 &  1.9 & 3.6 &  2.4 & 4.2 &  4.3 & 8.7   \\
+\hline                                                
+28  & Dig. Filt. 6  & 0.3 & 0.8 &  1.0 & 1.6 &  1.2 & 1.9 &  2.8 & 4.3   \\
+29  & Dig. Filt. 4  & 0.3 & 0.7 &  0.9 & 1.6 &  1.1 & 1.9 &  2.5 & 4.3   \\
+\hline
+\hline
+\end{tabular}
+\vspace{1cm}
+\caption{The mean resolution $R$ for different extractors applied to a fixed window of pedestal events. 
+Four different conditions of night sky background are shown: 
+Closed camera, extra-galactic star-field, galactic star-field and almost full moon at 60$^\circ$ angular 
+distance from the pointing position. With the first three conditions, a simple RMS of the extracted 
+signals has been calculated while in the fourth case, a Gauss fit to the high part of the distribution
+has been made.
+The obtained values can typically vary by up to 10\% for different channels of the camera readout.}
+\label{tab:ped:fw}
+}
+\end{table}
+%}
+%\end{landscape}
 
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
-Figures~\ref{fig:amp:relrms} through~\ref{fig:df:relrms} show the 
-differences in $R$ between the RMS of simply summing up the FADC slices over the extraction window 
-(in MARS called: ``Fundamental Pedestal RMS'') and 
-the one obtained by applying the extractor to the same extraction window 
-(in MARS called: ``Pedestal RMS with Extractor Rndm''). One entry of each histogram corresponds to one 
-pixel of the camera.
-The distributions have a negative mean in the case of the digital filter showing the 
-``filter'' capacity of that algorithm. It ``filters out'' between 0.12 photo-electrons night sky 
-background for the extra-galactic star-field until 0.2 photo-electrons for the continuous light.
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
@@ -315,5 +372,5 @@
 \hline
 \hline
-\multicolumn{16}{|c|}{Statistical Parameters for $S=0$ units in $N_{\mathrm{phe}}$} \\
+\multicolumn{16}{|c|}{Statistical Parameters for $S=0$ (units in $N_{\mathrm{phe}}$) \rule{0mm}{6mm} \rule[-2mm]{0mm}{6mm} \hspace{-3mm}} \\
 \hline
 \hline
