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

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