source: trunk/MagicSoft/TDAS-Extractor/Pedestal.tex@ 6579

Last change on this file since 6579 was 6559, checked in by gaug, 20 years ago
*** empty log message ***
File size: 29.7 KB
Line 
1\section{Pedestal Extraction \label{sec:pedestals}}
2
3\subsection{Pedestal RMS}
4
5The background $BG$ (Pedestal)
6can be completely described by the noise-autocorrelation matrix $\boldsymbol{B}$
7(eq.~\ref{eq:autocorr}),
8where the diagonal elements give what is usually denoted as the ``Pedestal RMS''.
9\par
10
11By definition, the $\boldsymbol{B}$ and thus the ``pedestal RMS''
12is independent from the signal extractor.
13
14\subsection{Pedestal Fluctuations as Contribution to the Signal Fluctuations \label{sec:ffactor}}
15
16A photo-multiplier signal yields, to a very good approximation, the
17following relation:
18
19\begin{equation}
20\frac{Var[Q]}{<Q>^2} = \frac{1}{<n_{phe}>} * F^2
21\end{equation}
22
23Here, $Q$ is the signal fluctuation due to the number of signal photo-electrons
24(equiv. to the signal $S$), and $Var[Q]$ the fluctuations of the true signal $Q$
25due to the Poisson fluctuations of the number of photo-electrons. Because of:
26
27\begin{eqnarray}
28\widehat{Q} &=& Q + X \\
29Var(\widehat{Q}) &=& Var(Q) + Var(X) \\
30Var(Q) &=& Var(\widehat{Q}) - Var(X)
31\end{eqnarray}
32
33$Var[Q]$ can be obtained from:
34
35\begin{eqnarray}
36Var(Q) &\approx& Var(\widehat{Q}) - Var(\widehat{Q}=0)
37\label{eq:rmssubtraction}
38\end{eqnarray}
39
40In the last line of eq.~\ref{eq:rmssubtraction}, it is assumed that $R$ does not dependent
41on the signal height\footnote{%
42A way to check whether the right RMS has been subtracted is to make the
43``Razmick''-plot
44
45\begin{equation}
46 \frac{Var[\widehat{Q}]}{<\widehat{Q}>^2} \quad \textit{vs.} \quad \frac{1}{<\widehat{Q}>}
47\end{equation}
48
49This should give a straight line passing through the origin. The slope of
50the line is equal to
51
52\begin{equation}
53 c * F^2
54\end{equation}
55
56where $c$ is the photon/ADC conversion factor $<Q>/<m_{pe}>$.}
57(as is the case
58for the digital filter, eq.~\ref{eq:of_noise}). One can then retrieve $R$
59by applying the signal extractor to a {\textit{\bf fixed window}} of pedestal events, where the
60bias vanishes and measure $Var[\widehat{Q}=0]$.
61
62\subsection{Methods to Retrieve Bias and Mean-Squared Error}
63
64In general, the extracted signal variance $R$ is different from the pedestal RMS.
65It cannot be obtained by applying the signal extractor to pedestal events, because of the
66(unknown) bias.
67\par
68In the case of the digital filter, $R$ is expected to be independent from the
69signal amplitude $S$ and depends only on the background $BG$ (eq.~\ref{eq:of_noise}).
70It can then be obtained from the calculation of the variance $Var[\widehat{Q}]$
71by applying the extractor to a fixed window of pure background events (``pedestal events'')
72and get rid of the bias in that way.
73\par
74
75In order to calculate bias and Mean-squared error, we proceeded in the following ways:
76\begin{enumerate}
77\item Determine $R$ by applying the signal extractor to a fixed window
78 of pedestal events. The background fluctuations can be simulated with different
79 levels of night sky background and the continuous light source, but no signal size
80 dependency can be retrieved with this method.
81\item Determine $B$ and $MSE$ from MC events with and without added noise.
82 Assuming that $MSE$ and $B$ are negligible for the events without noise, one can
83 get a dependency of both values from the size of the signal.
84\item Determine $MSE$ from the fitted error of $\widehat{S}$, which is possible for the
85 fit and the digital filter (eq.~\ref{eq:of_noise}).
86 In principle, all dependencies can be retrieved with this method.
87\end{enumerate}
88
89
90\begin{figure}[htp]
91\centering
92\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38993_RelMean.eps}
93\vspace{\floatsep}
94\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38995_RelMean.eps}
95\vspace{\floatsep}
96\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38996_RelMean.eps}
97\caption{MExtractTimeAndChargeSpline with amplitude extraction:
98Difference in mean pedestal (per FADC slice) between extraction algorithm
99applied on a fixed window of 1 FADC slice (``extractor random'') and a simple addition of
1002 FADC slices (``fundamental''). On the left, a run with closed camera has been taken, in the center
101 an opened camera observing an extra-galactic star field and on the right, an open camera being
102illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one
103pixel.}
104\label{fig:amp:relmean}
105\end{figure}
106
107\begin{figure}[htp]
108\centering
109\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38993_RelMean.eps}
110\vspace{\floatsep}
111\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38995_RelMean.eps}
112\vspace{\floatsep}
113\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38996_RelMean.eps}
114\caption{MExtractTimeAndChargeSpline with integral over 2 slices:
115Difference in mean pedestal (per FADC slice) between extraction algorithm
116applied on a fixed window of 2 FADC slices (``extractor random'') and a simple addition of
1172 FADC slices (``fundamental''). On the left, a run with closed camera has been taken, in the center
118 an opened camera observing an extra-galactic star field and on the right, an open camera being
119illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one
120pixel.}
121\label{fig:int:relmean}
122\end{figure}
123
124\begin{figure}[htp]
125\centering
126\vspace{\floatsep}
127\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38993_RelMean.eps}
128\vspace{\floatsep}
129\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38995_RelMean.eps}
130\vspace{\floatsep}
131\includegraphics[width=0.3\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38996_RelMean.eps}
132\caption{MExtractTimeAndChargeDigitalFilter:
133Difference in mean pedestal (per FADC slice) between extraction algorithm
134applied on a fixed window of 6 FADC slices and time-randomized weights (``extractor random'')
135and a simple addition of
1366 FADC slices (``fundamental''). On the left, a run with closed camera has been taken, in the center
137 an opened camera observing an extra-galactic star field and on the right, an open camera being
138illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one
139pixel.}
140\label{fig:df:relmean}
141\end{figure}
142
143%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
144
145\subsubsection{ \label{sec:ped:fixedwindow} Application of the Signal Extractor to a Fixed Window
146of Pedestal Events}
147
148By applying the signal extractor to a fixed window of pedestal events, we
149determine the parameter $R$ for the case of no signal ($Q = 0$). In the case of
150extractors using a fixed window (extractors nr. \#1 to \#22
151in section~\ref{sec:algorithms}), the results are the same by construction
152as calculating the pedestal RMS.
153\par
154In MARS, this functionality is implemented with a function-call to: \\
155
156{\textit{\bf MJPedestal::SetExtractionWithExtractorRndm()}} and/or \\
157{\textit{\bf MExtractPedestal::SetRandomCalculation()}}\\
158
159Besides fixing the global extraction window, additionally the following steps are undertaken
160in order to assure that the bias vanishes:
161
162\begin{description}
163\item[\textit{MExtractTimeAndChargeSpline}:\xspace] The spline
164maximum position -- which determines the exact extraction window -- is placed arbitrarily
165at a random place within the digitizing binning resolution of one central FADC slice.
166\item[\textit{MExtractTimeAndChargeDigitalFilter}:\xspace] The second step timing
167offset $\tau$ (eq.~\ref{eq:offsettau}) gets randomized for each event.
168\end{description}
169
170\par
171
172The following figures~\ref{fig:amp:relmean} through~\ref{fig:df:relrms} show results
173obtained with the second method for three background intensities:
174
175\begin{enumerate}
176\item Closed camera and no (Poissonian) fluctuation due to photons from the night sky background
177\item The camera pointing to an extra-galactic region with stars in the field of view
178\item The camera illuminated by a continuous light source of intensity 100.
179\end{enumerate}
180
181Figures~\ref{fig:amp:relmean} through~\ref{fig:df:relmean}
182show the calculated biases obtained with this method for all pixels in the camera
183and for the different levels of (night-sky) background.
184One can see that the bias vanishes to an accuracy of better than 1\%
185for the extractors which are used in this TDAS.
186
187%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%1
188
189\begin{figure}[htp]
190\centering
191\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38993_RMSDiff.eps}
192\vspace{\floatsep}
193\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38995_RMSDiff.eps}
194\vspace{\floatsep}
195\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38996_RMSDiff.eps}
196\caption{MExtractTimeAndChargeSpline with amplitude:
197Difference in RMS (per FADC slice) between extraction algorithm
198applied on a fixed window and the corresponding pedestal RMS.
199Closed camera (left), open camera observing extra-galactic star field (right) and
200camera being illuminated by the continuous light (bottom).
201Every entry corresponds to one pixel.}
202\label{fig:amp:relrms}
203\end{figure}
204
205
206\begin{figure}[htp]
207\centering
208\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38993_RMSDiff.eps}
209\vspace{\floatsep}
210\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38995_RMSDiff.eps}
211\vspace{\floatsep}
212\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38996_RMSDiff.eps}
213\caption{MExtractTimeAndChargeSpline with integral over 2 slices:
214Difference in RMS (per FADC slice) between extraction algorithm
215applied on a fixed window and the corresponding pedestal RMS.
216Closed camera (left), open camera observing extra-galactic star field (right) and
217camera being illuminated by the continuous light (bottom).
218Every entry corresponds to one
219pixel.}
220\label{fig:amp:relrms}
221\end{figure}
222
223
224\begin{figure}[htp]
225\centering
226\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38993_RMSDiff.eps}
227\vspace{\floatsep}
228\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38995_RMSDiff.eps}
229\vspace{\floatsep}
230\includegraphics[width=0.47\linewidth]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38996_RMSDiff.eps}
231\caption{MExtractTimeAndChargeDigitalFilter:
232Difference in RMS (per FADC slice) between extraction algorithm
233applied on a fixed window and the corresponding pedestal RMS.
234Closed camera (left), open camera observing extra-galactic star field (right) and
235camera being illuminated by the continuous light (bottom).
236Every entry corresponds to one pixel.}
237\label{fig:df:relrms}
238\end{figure}
239
240
241
242%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
243
244Figures~\ref{fig:amp:relrms} through~\ref{fig:amp:relrms} show the
245differences in $R$ between the calculated pedestal RMS and
246the one obtained by applying the extractor, converted to equivalent photo-electrons. One entry
247corresponds to one pixel of the camera.
248The distributions have a negative mean in the case of the digital filter showing the
249``filter'' capacity of that algorithm. It ``filters out'' between 0.12 photo-electrons night sky
250background for the extra-galactic star-field until 0.2 photo-electrons for the continuous light.
251
252%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
253
254
255\subsubsection{ \label{sec:ped:slidingwindow} Application of the Signal Extractor to a Sliding Window
256of Pedestal Events}
257
258By applying the signal extractor to a global extraction window of pedestal events, allowing
259it to ``slide'' and maximize the encountered signal, we
260determine the bias $B$ and the mean-squared error $MSE$ for the case of no signal ($S=0$).
261\par
262In MARS, this functionality is implemented with a function-call to: \\
263
264{\textit{\bf MJPedestal::SetExtractionWithExtractor()}} \\
265
266\par
267Table~\ref{tab:bias} shows bias, resolution and mean-square error for all extractors using
268a sliding window. In this sample, every extractor had the freedom to move 5 slices,
269i.e. the global window size was fixed to five plus the extractor window size. This first line
270shows the resolution of the smallest existing robust fixed window algorithm in order to give the reference
271value of 2.5 and 3 photo-electrons RMS.
272\par
273One can see that the bias $B$ typically decreases
274with increasing window size (except for the digital filter), while the error $R$ increases with
275increasing window size. There is also a small difference between the obtained error on a fixed window
276extraction and the one obtained from a sliding window extraction in the case of the spline and digital
277filter algorithms.
278The mean-squared error has an optimum somewhere between: In the case of the
279sliding window and the spline at the lowest window size, in the case of the digital filter
280at 4 slices. The global winners are extractors \#25 (spline with integration of 1 slice) and \#29
281(digital filter with integration of 4 slices). All sliding window extractors -- except \#21 --
282have a smaller mean-square error than the resolution of the fixed window reference extractor. This means
283that the global error of the sliding window extractors is smaller than the one of the fixed window extractors
284even if the first have a bias.
285
286\begin{table}[htp]
287\centering
288\scriptsize{
289\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
290\hline
291\hline
292\multicolumn{14}{|c|}{Statistical Parameters for $S=0$} \\
293\hline
294\hline
295 & & \multicolumn{4}{|c|}{Closed camera} & \multicolumn{4}{|c|}{Extra-galactic NSB} & \multicolumn{4}{|c|}{Galactic NSB} \\
296\hline
297\hline
298Nr. & Name & $R$ & $R$ & $B$ & $\sqrt{MSE}$ & $R$ &$R$ & $B$ & $\sqrt{MSE}$& $R$ & $R$& $B$ & $\sqrt{MSE}$ \\
299 & & (FW) & (SW)& (SW)& (SW) & (FW) &(SW) & (SW)& (SW) & (FW)&(SW) & (SW)&(SW) \\
300\hline
301\hline
3024 & Fixed Win. 8 & 1.2 & -- & 0.0 & 1.2 & 2.5 & -- & 0.0 & 2.5 & 3.0 & -- & 0.0 & 3.0 \\
303\hline
304-- & Slid. Win. 1 & 0.4 & 0.4 & 0.4 & 0.6 & 1.2 & 1.2 & 1.3 & 1.8 & 1.4 & 1.4 & 1.5 & 2.0 \\
30517 & Slid. Win. 2 & 0.5 & 0.5 & 0.4 & 0.6 & 1.4 & 1.4 & 1.2 & 1.8 & 1.6 & 1.6 & 1.5 & 2.2 \\
30618 & Slid. Win. 4 & 0.8 & 0.8 & 0.5 & 0.9 & 1.9 & 1.9 & 1.2 & 2.2 & 2.2 & 2.3 & 1.6 & 2.8 \\
30720 & Slid. Win. 6 & 1.0 & 1.0 & 0.4 & 1.1 & 2.2 & 2.2 & 1.1 & 2.5 & 2.6 & 2.7 & 1.4 & 3.0 \\
30821 & Slid. Win. 8 & 1.2 & 1.3 & 0.4 & 1.4 & 2.5 & 2.5 & 1.0 & 2.7 & 3.0 & 3.2 & 1.4 & 3.5 \\
309\hline
31023 & Spline Amp. & 0.4 & \textcolor{red}{\bf 0.4} & 0.4 & 0.6 & 1.1 & 1.2 & 1.3 & 1.8 & 1.3 & 1.4 & 1.6 & 2.1 \\
31124 & \textcolor{red}{\bf Spline Int. 1} & 0.4 & \textcolor{red}{\bf 0.4} & 0.3 & \textcolor{red}{\bf 0.5} & 1.0 & 1.2 & 1.0 & 1.6 & 1.3 & \textcolor{red}{\bf 1.3} & 1.3 & 1.8 \\
31225 & Spline Int. 2 & 0.5 & 0.5 & 0.3 & 0.6 & 1.3 & 1.4 & 0.9 & 1.7 & 1.7 & 1.6 & 1.2 & 2.0 \\
31326 & Spline Int. 4 & 0.7 & 0.7 & \textcolor{red}{\bf 0.2 } & 0.7 & 1.5 & 1.7 & \textcolor{red}{\bf 0.8} & 1.9 & 2.0 & 2.0 & 1.0 & 2.2 \\
31427 & Spline Int. 6 & 1.0 & 1.0 & 0.3 & 1.0 & 2.0 & 2.0 & \textcolor{red}{\bf 0.8} & 2.2 & 2.6 & 2.5 & \textcolor{red}{\bf 0.9} & 2.7 \\
315\hline
31628 & Dig. Filt. 6 & 0.4 & 0.5 & 0.4 & 0.6 & 1.1 & 1.3 & 1.3 & 1.8 & 1.3 & 1.5 & 1.5 & 2.1 \\
31729 & \textcolor{red}{\bf Dig. Filt. 4} & 0.3 & \textcolor{red}{\bf 0.4} & 0.3 & \textcolor{red}{\bf 0.5} & 0.9 & \textcolor{red}{\bf 1.1} & 0.9 & \textcolor{red}{\bf 1.4} & 1.0 & 1.3 & 1.1 & \textcolor{red}{\bf 1.7} \\
318\hline
319\hline
320\end{tabular}
321}
322\caption{The statistical parameters bias, resolution and mean error for the sliding window
323algorithm. The first line displays the resolution of the smallest existing robust fixed--window extractor
324for reference. All units in equiv.
325photo-electrons, uncertainty: 0.1 phes. All extractors were allowed to move 5 FADC slices plus
326their window size. The ``winners'' for each row are marked in red. Global winners (within the given
327uncertainty) are the extractors Nr. \#24 (MExtractTimeAndChargeSpline with an integration window of
3281 FADC slice) and Nr.\#29
329(MExtractTimeAndChargeDigitalFilter with an integration window size of 4 slices)}
330\label{tab:bias}
331\end{table}
332
333Figures~\ref{fig:sw:distped} through~\ref{fig:df4:distped} show the
334extracted pedestal distributions for some selected extractors (\#18, \#23, \#25, \#28 and \#29)
335 for one exemplary channel (pixel 100) and two background situations: Closed camera with only electronic
336noise and open camera pointing to an extra-galactic source.
337One can see the (asymmetric) Poisson behaviour of the
338night sky background photons for the distributions with open camera.
339
340\begin{figure}[htp]
341\centering
342\includegraphics[height=0.43\textheight]{PedestalSpectrum-18-Run38993.eps}
343\vspace{\floatsep}
344\includegraphics[height=0.43\textheight]{PedestalSpectrum-18-Run38995.eps}
345\caption{MExtractTimeAndChargeSlidingWindow with extraction window of 4 FADC slices:
346Distribution of extracted "pedestals" from pedestal run with
347closed camera (top) and open camera observing an extra-galactic star field (bottom) for one channel
348(pixel 100). The result obtained from a simple addition of 4 FADC
349slice contents (``fundamental'') is displayed as red histogram, the one obtained from the application of
350the algorithm on
351a fixed window of 4 FADC slices as blue histogram (``extractor random'') and the one obtained from the
352full algorithm allowed to slide within a global window of 12 slices. The obtained histogram means and
353RMSs have been converted to equiv. photo-electrons.}
354\label{fig:sw:distped}
355\end{figure}
356
357
358\begin{figure}[htp]
359\centering
360\includegraphics[height=0.43\textheight]{PedestalSpectrum-23-Run38993.eps}
361\vspace{\floatsep}
362\includegraphics[height=0.43\textheight]{PedestalSpectrum-23-Run38995.eps}
363\caption{MExtractTimeAndChargeSpline with amplitude extraction:
364Spectrum of extracted "pedestals" from pedestal run with
365closed camera lids (top) and open lids observing an extra-galactic star field (bottom) for one channel
366(pixel 100). The result obtained from a simple addition of 2 FADC
367slice contents (``fundamental'') is displayed as red histogram, the one obtained from the application
368of the algorithm on a fixed window of 1 FADC slice as blue histogram (``extractor random'')
369and the one obtained from the
370full algorithm allowed to slide within a global window of 12 slices. The obtained histogram means and
371RMSs have been converted to equiv. photo-electrons.}
372\label{fig:amp:distped}
373\end{figure}
374
375\begin{figure}[htp]
376\centering
377\includegraphics[height=0.43\textheight]{PedestalSpectrum-25-Run38993.eps}
378\vspace{\floatsep}
379\includegraphics[height=0.43\textheight]{PedestalSpectrum-25-Run38995.eps}
380\caption{MExtractTimeAndChargeSpline with integral extraction over 2 FADC slices:
381Distribution of extracted "pedestals" from pedestal run with
382closed camera lids (top) and open lids observing an extra-galactic star field (bottom) for one channel
383(pixel 100). The result obtained from a simple addition of 2 FADC
384slice contents (``fundamental'') is displayed as red histogram, the one obtained from the application
385of time-randomized weights on a fixed window of 2 FADC slices as blue histogram and the one obtained from the
386full algorithm allowed to slide within a global window of 12 slices. The obtained histogram means and
387RMSs have been converted to equiv. photo-electrons.}
388\label{fig:int:distped}
389\end{figure}
390
391\begin{figure}[htp]
392\centering
393\includegraphics[height=0.43\textheight]{PedestalSpectrum-28-Run38993.eps}
394\vspace{\floatsep}
395\includegraphics[height=0.43\textheight]{PedestalSpectrum-28-Run38995.eps}
396\caption{MExtractTimeAndChargeDigitalFilter: Spectrum of extracted "pedestals" from pedestal run with
397closed camera lids (top) and open lids observing an extra-galactic star field (bottom) for one channel
398(pixel 100). The result obtained from a simple addition of 6 FADC
399slice contents (``fundamental'') is displayed as red histogram, the one obtained from the application
400of time-randomized weights on a fixed window of 6 slices as blue histogram and the one obtained from the
401full algorithm allowed to slide within a global window of 12 slices. The obtained histogram means and
402RMSs have been converted to equiv. photo-electrons.}
403\label{fig:df6:distped}
404\end{figure}
405
406\begin{figure}[htp]
407\centering
408\includegraphics[height=0.43\textheight]{PedestalSpectrum-29-Run38993.eps}
409\vspace{\floatsep}
410\includegraphics[height=0.43\textheight]{PedestalSpectrum-29-Run38995.eps}
411\caption{MExtractTimeAndChargeDigitalFilter: Spectrum of extracted "pedestals" from pedestal run with
412closed camera lids (top) and open lids observing an extra-galactic star field (bottom) for one channel
413(pixel 100). The result obtained from a simple addition of 4 FADC
414slice contents (``fundamental'') is displayed as red histogram, the one obtained from the application
415of time-randomized weights on a fixed window of 4 slices as blue histogram and the one obtained from the
416full algorithm allowed to slide within a global window of 10 slices. The obtained histogram means and
417RMSs have been converted to equiv. photo-electrons.}
418\label{fig:df4:distped}
419\end{figure}
420
421\subsection{ \label{sec:ped:singlephe} Single Photo-Electron Extraction with the Digital Filter}
422
423Figures~\ref{fig:df:sphespectrum} show spectra
424obtained with the digital filter applied on two different global search windows.
425One can clearly distinguish a pedestal peak (fitted to Gaussian with index 0)
426and further, positive contributions.
427\par
428Because the background is determined by the single photo-electrons from the night-sky background,
429the following possibilities can occur:
430
431\begin{enumerate}
432\item There is no ``signal'' (photo-electron) in the extraction window and the extractor
433finds only electronic noise.
434Usually, the returned signal charge is then negative.
435\item There is one photo-electron in the extraction window and the extractor finds it.
436\item There are more than on photo-electrons in the extraction window, but separated by more than
437two FADC slices whereupon the extractor finds the one with the highest charge (upward fluctuation).
438\item The extractor finds an overlap of two or more photo-electrons.
439\end{enumerate}
440
441Although the probability to find a certain number of photo-electrons in a fixed window follows a
442Poisson distribution, the one for employing the sliding window is {\textit{not}} Poissonian. The extractor
443will usually find one photo-electron even if more are present in the global search window, i.e. the
444probability for two or more photo-electrons to occur in the global search window is much higher than
445the probability for these photo-electrons to overlap in time such as to be recognized as a double
446or triple photo-electron pulse by the extractor. This is especially true for small extraction windows
447and for the digital filter.
448
449\par
450
451Given a global extraction window of size $WS$ and an average rate of photo-electrons from the night-sky
452background $R$, we will now calculate the probability for the extractor to find zero photo-electrons in the
453$WS$. The probability to find any number of $k$ photo-electrons can be written as:
454
455\begin{equation}
456P(k) = \frac{e^{-R\cdot WS} (R \cdot WS)^k}{k!}
457\end{equation}
458
459and thus:
460
461\begin{equation}
462P(0) = e^{-R\cdot WS}
463\end{equation}
464
465The probability to find one or more photo-electrons is then:
466
467\begin{equation}
468P(>0) = 1 - e^{-R\cdot WS}
469\end{equation}
470
471In figures~\ref{fig:df:sphespectrum},
472one can clearly distinguish the pedestal peak (fitted to Gaussian with index 0),
473corresponding to the case of  $P(0)$ and further
474contributions of $P(1)$ and $P(2)$ (fitted to Gaussians with index 1 and 2).
475One can also see that the contribution of $P(0)$ dimishes
476with increasing global search window size.
477
478\begin{figure}
479\centering
480\includegraphics[height=0.3\textheight]{SinglePheSpectrum-28-Run38995-WS2.5.eps}
481\vspace{\floatsep}
482\includegraphics[height=0.3\textheight]{SinglePheSpectrum-28-Run38995-WS4.5.eps}
483\vspace{\floatsep}
484\includegraphics[height=0.3\textheight]{SinglePheSpectrum-28-Run38995-WS8.5.eps}
485\caption{MExtractTimeAndChargeDigitalFilter: Spectrum obtained from the extraction
486of a pedestal run using a sliding window of 6 FADC slices allowed to move within a window of
4877 (top), 9 (center) and 13 slices.
488A pedestal run with galactic star background has been taken and one exemplary pixel (Nr. 100).
489One can clearly see the pedestal contribution and a further part corresponding to one or more
490photo-electrons.}
491\label{fig:df:sphespectrum}
492\end{figure}
493
494In the following, we will make a short consistency test: Assuming that the spectral peaks are
495attributed correctly, one would expect the following relation:
496
497\begin{equation}
498P(0) / P(>0) = \frac{e^{-R\cdot WS}}{1-e^{-R\cdot WS}}
499\end{equation}
500
501We tested this relation assuming that the fitted area underneath the pedestal peak Area$_0$ is
502proportional to $P(0)$ and the sum of the fitted areas underneath the single photo-electron peak
503Area$_1$ and the double photo-electron peak Area$_2$ proportional to $P(>0)$. Thus, one expects:
504
505\begin{equation}
506\mathrm{Area}_0 / (\mathrm{Area}_1 + \mathrm{Area}_2 ) = \frac{e^{-R\cdot WS}}{1-e^{-R\cdot WS}}
507\end{equation}
508
509We estimated the effective window size $WS$ as the sum of the range in which the digital filter
510amplitude weights are greater than 0.5 (1.5 FADC slices) and the global search window minus the
511size of the window size of the weights (which is 6 FADC slices). Figures~\ref{fig:df:ratiofit}
512show the result for two different levels of night-sky background. The fitted rates deliver
5130.08 and 0.1 phes/ns, respectively. These rates are about 50\% too low compared to the results obtained
514in the November 2004 test campaign. However, we should take into account that the method is at
515the limit of distinguishing single photo-electrons. It may occur often that a single photo-electron
516signal is too low in order to get recognized as such. We tried various pixels and found that
517some of them do not permit to apply this method at all. The ones which succeed, however, yield about
518the same fitted rates. To conclude, one may say that there is consistency within the double-peak
519structure of the pedestal spectrum found by the digital filter which can be explained by the fact that
520single photo-electrons are found.
521\par
522
523\begin{figure}[htp]
524\centering
525\includegraphics[height=0.4\textheight]{SinglePheRatio-28-Run38995.eps}
526\vspace{\floatsep}
527\includegraphics[height=0.4\textheight]{SinglePheRatio-28-Run39258.eps}
528\caption{MExtractTimeAndChargeDigitalFilter: Fit to the ratio of the area beneath the pedestal peak and
529the single and double photo-electron(s) peak(s) with the extraction algorithm
530applied on a sliding window of different sizes.
531In the top plot, a pedestal run with extra-galactic star background has been taken and in the bottom,
532a galatic star background. An exemplary pixel (Nr. 100) has been used.
533Above, a rate of 0.08 phe/ns and below, a rate of 0.1 phe/ns has been obtained.}
534\label{fig:df:ratiofit}
535\end{figure}
536
537Figure~\ref{fig:df:convfit} shows the obtained ``conversion factors'' and ``F-Factor'' computed as:
538
539\begin{eqnarray}
540c_{phe} &=& \frac{1}{\mu_1 - \mu_0} \\
541F_{phe} &=& \sqrt{1 + \frac{\sigma_1^2 - \sigma_0^2}{(\mu_1 - \mu_0)^2} }
542\end{eqnarray}
543
544where $\mu_0$ is the mean position of the pedestal peak and $\mu_1$ the mean position of the (assumed)
545single photo-electron peak. The obtained conversion factors are systematically lower than the ones
546obtained from the standard calibration and decrease with increasing window size. This is consistent
547with the assumption that the digital filter finds the upward fluctuating pulse out of several. Therefore,
548$\mu_1$ is biased against higher values. The F-Factor is also systematically low, which is also consistent
549with the assumption that the spacing between $\mu_1$ and $\mu_0$ is artificially high. One can also see
550that the error bars are too high for a ``calibration'' of the F-Factor.
551\par
552In conclusion, one can say that the digital filter is at the edge of being able to see single photo-electrons,
553however a single photo-electron calibration cannot yet be done with the current FADC system because the
554resolution is too poor.
555
556\begin{figure}[htp]
557\centering
558\includegraphics[height=0.4\textheight]{ConvFactor-28-Run38995.eps}
559\vspace{\floatsep}
560\includegraphics[height=0.4\textheight]{FFactor-28-Run38995.eps}
561\caption{MExtractTimeAndChargeDigitalFilter: Obtained conversion factors (top) and F-Factors (bottom)
562from the position and width of
563the fitted Gaussian mean of the single photo-electron peak and the pedestal peak depending on
564the applied global extraction window sizes.
565A pedestal run with extra-galactic star background has been taken and
566an exemplary pixel (Nr. 100) used. The conversion factor obtained from the
567standard calibration is shown as a reference line. The obtained conversion factors are systematically
568lower than the reference one.}
569\label{fig:df:convfit}
570\end{figure}
571
572
573
574%%% Local Variables:
575%%% mode: latex
576%%% TeX-master: "MAGIC_signal_reco"
577%%% TeX-master: "MAGIC_signal_reco"
578%%% TeX-master: "MAGIC_signal_reco"
579%%% End:
Note: See TracBrowser for help on using the repository browser.