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

Last change on this file since 5716 was 5716, checked in by gaug, 20 years ago
*** empty log message ***
File size: 16.3 KB
Line 
1\section{Criteria for an Pptimal Pedestal Extraction}
2
3\ldots {\it In this section, the distinction is made between:
4\begin{itemize}
5\item Defining the pedestal RMS as contribution
6 to the extracted signal fluctuations (later used in the calibration)
7\item Defining the Pedestal Mean and RMS as the result of distributions obtained by
8 applying the extractor to pedestal runs (yielding biases and modified widths).
9\item Deriving the correct probability for background fluctuations based on the extracted signal height.
10 ( including biases and modified widths).
11\end{itemize}
12}
13
14\subsection{Pedestal RMS}
15
16
17\vspace{1cm}
18\ldots {\it Modified email by W. Wittek from 25 Oct 2004 and 10 Nov 2004}
19\vspace{1cm}
20
21The background $BG$ (Pedestal)
22can be completely described by the noise-autocorrelation matrix $\boldsymbol{B}$
23(eq.~\ref{eq:autocorr}),
24where the diagonal elements give what is usually denoted as the ``Pedestal RMS''. Note that
25in the MAGIC readout, the diagonal elements do not scale exactly with the square root of
26the number of slices as would be expected from pure stochasitic noise.
27
28\par
29
30By definition, the noise autocorrelation matrix $B$ and thus the ``pedestal RMS''
31is independent from the signal extractor.
32
33\subsection{Bias and Error}
34
35Consider a large number of signals (FADC spectra), all with the same
36integrated charge $ST$ (true signal). By applying some signal extractor
37we obtain a distribution of extracted signals $SE$ (for fixed $ST$ and
38fixed background fluctuations $BG$). The distribution of the quantity
39
40\begin{equation}
41X = SE-ST
42\end{equation}
43
44has the mean $B$ and the RMS $R$
45
46\begin{eqnarray}
47 B &=& <X> \\
48 R^2 &=& <(X-B)^2>
49\end{eqnarray}
50
51One may also define
52
53\begin{equation}
54 D^2 = <(SE-ST)^2> = <(SE-ST-B + B)^2> = B^2 + R^2
55\end{equation}
56
57$B$ is the bias, $R$ is the RMS of the distribution of $X$ and $D$ is something
58like the (asymmetric) error of $SE$.
59The distribution of $X$, and thus the parameters $B$ and $R$,
60depend on the size of $ST$ and the size of the background fluctuations $BG$.
61
62\par
63
64For the normal image cleaning, knowledge of $B$ is sufficient and the
65error $R$ should be know in order to calculate a correct background probability.
66\par
67Also for the model analysis $B$ and $R$ are needed, because you want to keep small
68signals.
69\par
70In the case of the calibration with the F-Factor methoid,
71the basic relation is:
72
73\begin{equation}
74\frac{(\Delta ST)^2}{<ST>^2} = \frac{1}{<m_{pe}>} * F^2
75\end{equation}
76
77Here $\Delta ST$ is the fluctuation of the true signal $ST$ due to the
78fluctuation of the number of photo electrons. $ST$ is obtained from the
79measured fluctuations of $SE$ ($RMS_{SE}$) by subtracting the fluctuation of the
80extracted signal ($R$) due to the fluctuation of the pedestal.
81
82\begin{equation}
83 (\Delta ST)^2 = RMS_{SE}^2 - R^2
84\label{eq:rmssubtraction}
85\end{equation}
86
87A way to check whether the right RMS has been subtracted is to make the
88Razmick plot
89
90\begin{equation}
91 \frac{(\Delta ST)^2}{<ST>^2} \quad \textit{vs.} \quad \frac{1}{<ST>}
92\end{equation}
93
94This should give a straight line passing through the origin. The slope of
95the line is equal to
96
97\begin{equation}
98 c * F^2
99\end{equation}
100
101where $c$ is the photon/ADC conversion factor $<ST>/<m_{pe}>$.
102
103\subsection{How to Retrieve Bias $B$ and Error $R$}
104
105$R$ is in general different from the pedestal RMS. It cannot be
106obtained by applying the signal extractor to pedestal events, especially
107for large signals (e.g. calibration signals).
108\par
109In the case of the optimum filter, $R$ is in theory independent from the
110signal amplitude $ST$ and depends only on the background $BG$, see eq.~\ref{of_noise}.
111It can be obtained from the
112fitted error of the extracted signal ($\Delta(SE)_{fitted}$),
113which one can calculate for every event or by applying the extractor to a fixed window
114of pure background events (``pedestal events'').
115
116\par
117
118In order to get the missing information, we did the following investigations:
119\begin{enumerate}
120\item Determine $R$ by applying the signal extractor to a fixed window
121 of pedestal events. The background fluctuations can be simulated with different
122 levels of night sky background and the continuous light, but no signal size
123 dependency can be retrieved with the method.
124\item Determine bias $B$ and resolution $R$ from MC events with and without added noise.
125 Assuming that $R$ and $B$ are negligible for the events without noise, one can
126 get a dependency of both values from the size of the signal.
127\item Determine $R$ from the fitted error of $SE$, which is possible for the
128 fit and the digital filter (eq.~\ref{of_noise}).
129 In prinicple, all dependencies can be retrieved with this method.
130\end{enumerate}
131
132\subsubsection{ \label{sec:determiner} Determine Error $R$ by Applying the Signal Extractor to a Fixed Window
133of Pedestal Events}
134
135By applying the signal extractor to a fixed window of pedestal events, we
136determined the parameter $R$ for the case of no signal ($ST = 0$). In the case of
137all extractors using a fixed window from the beginning (extractors nr. \#1 to \#22
138in section~\ref{sec:algorithms}), the results were exactly the same as calculating
139the mean and the RMS of a same (fixed) number of FADC slices (the conventional ``Pedestal
140Calculation'').
141
142\par
143In the case of the amplitude extracting spline (extractor nr. \#27), we took the
144spline value at a random place within the digitizing binning resolution (0.02 FADC slices) of
145one central FADC slice.
146In the case of the digital filter (extractor nr. \#28), the time shift was
147randomized for each event within one central FADC slice.
148
149\par
150
151The following plots~\ref{fig:df:distped:run38993} through~\ref{fig:amp:relrms:run38996} show results
152obtained with the second method for three background intensities:
153\begin{enumerate}
154\item Closed camera and no (Poissonian) fluctuation due to photons from the night sky background
155\item The camera pointing to a galactic region with stars in the field of view
156\item The camera illuminated by a continuous light source of high intensity causing much higher pedestal
157fluctuations than in usual observation conditions.
158\end{enumerate}
159
160Figures~\ref{fig:df:distped:run38993},~\ref{fig:df:distped:run38995},~\ref{fig:df:distped:run38996},
161and~\ref{fig:amp:distped:run38993},~\ref{fig:amp:distped:run38995},~\ref{fig:amp:distped:run38996} show the
162extracted pedestal distributions for the digital filter with cosmics weights (extractor~\#28) and the
163spline amplitude (extractor~\#27), respectively for one examplary channel (corresponding to pixel 200).
164One can see the (asymmetric) Poisson behaviour of the
165night sky background photons for the distributions with open camera and the cutoff at the lower egde
166for the distribution with high-intensity continuous light due to a limited pedestal offset and the cutoff
167to negative fluctuations.
168\par
169Figures~\ref{fig:df:relmean:run38993},~\ref{fig:df:relmean:run38995},~\ref{fig:df:relmean:run38996},
170and~\ref{fig:amp:relmean:run38993},~\ref{fig:amp:relmean:run38995},~\ref{fig:amp:relmean:run38996} show the
171relative difference between the calculated pedestal mean and
172the one obtained by applying the extractor for
173all channels of the MAGIC camera. One can see that in all cases, the distribution is centered around zero,
174while its width is never larger than 0.01 which corresponds about to the precision of the extracted mean for
175the number of used events. (A very similar distribution is obtained by comparing the results
176of the same pedestal calculator applied to different ranges of FADC slices.)
177\par
178Figures~\ref{fig:df:relrms:run38993},~\ref{fig:df:relrms:run38995},~\ref{fig:df:relrms:run38996},
179and~\ref{fig:amp:relrms:run38993},~\ref{fig:amp:relrms:run38995},~\ref{fig:amp:relrms:run38996} show the
180relative difference between the calculated pedestal RMS, normalized to an equivalent number of slices
181(2.5 for the digital filter and 1. for the amplitude of the spline) and
182the one obtained by applying the extractor for all channels of the MAGIC camera.
183One can see that in all cases, the distribution is not centered around zero, but shows an offset depending
184on the light intensity. The difference can be 10\% in the case of the digital filter and even 25\% for the
185spline. This big difference for the spline is partly explained by the fact that the pedestals have to be
186calculated from an even number of slices to account for the clock-noise. However, the (normalized) pedestal
187RMS depends critically on the number of summed FADC slices, especially at very low numbers. In general,
188the higher the number of summed FADC slices, the higher the (to the square root of the number of slices)
189normalized pedestal RMS.
190
191\begin{figure}[htp]
192\centering
193\includegraphics[height=0.29\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_00_18_02_14_Run_38993_Signal_Pixel200.eps}
194\caption{MExtractTimeAndChargeDigitalFilter: Distribution of extracted "pedestals" from pedestal run with
195closed camera lids for one channel.}
196\label{fig:df:distped:run38993}
197\vspace{\floatsep}
198\includegraphics[height=0.29\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_00_18_02_14_Run_38995_Signal_Pixel200.eps}
199\caption{MExtractTimeAndChargeDigitalFilter: Distribution of extracted "pedestals" from pedestal run with galactic star background for one channel.}
200\label{fig:df:distped:run38995}
201\vspace{\floatsep}
202\includegraphics[height=0.29\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_00_18_02_14_Run_38996_Signal_Pixel200.eps}
203\caption{MExtractTimeAndChargeDigitalFilter: Distribution of extracted "pedestals" from run with
204continuous light level 100 for one channel.}
205\label{fig:df:distped:run38996}
206\end{figure}
207
208\begin{figure}[htp]
209\centering
210\includegraphics[height=0.27\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_00_18_02_14_Run_38993_RelMean.eps}
211\caption{MExtractTimeAndChargeDigitalFilter: Relative Difference Mean Pedestal per FADC slice from pedestal
212run with closed camera lids}
213\label{fig:df:relmean:run38993}
214\vspace{\floatsep}
215\includegraphics[height=0.27\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_00_18_02_14_Run_38995_RelMean.eps}
216\caption{MExtractTimeAndChargeDigitalFilter: Relative Difference Mean Pedestal per FADC slice from pedestal
217run with galactic star background}
218\label{fig:df:relmean:run38995}
219\vspace{\floatsep}
220\includegraphics[height=0.27\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_00_18_02_14_Run_38996_RelMean.eps}
221\caption{MExtractTimeAndChargeDigitalFilter: Relative Difference Mean Pedestal per FADC slice from run
222with continuous light level: 100}
223\label{fig:df:relmean:run38996}
224\end{figure}
225
226
227\begin{figure}[htp]
228\centering
229\includegraphics[height=0.23\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_00_18_02_14_Run_38993_RMSRelDiff.eps}
230\caption{MExtractTimeAndChargeDigitalFilter: Relative Difference Pedestal RMS per FADC slice
231(calculated out of 2 FADC slices each) from pedestal run
232with closed camera lids for inner (left) and outer (right) pixels. An equivalent number of 2.5 FADC slices
233has been used for the normalization of the pedestal RMS. The difference amounts to about 10\%.}
234\label{fig:df:relrms:run38993}
235\vspace{\floatsep}
236\includegraphics[height=0.23\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_00_18_02_14_Run_38995_RMSRelDiff.eps}
237\caption{MExtractTimeAndChargeDigitalFilter: Relative Difference Pedestal RMS per FADC slice
238(calculated out of 2 FADC slices each) from pedestal run with galactic star background for inner (left)
239and outer (right) pixels. An equivalent number of 2.5 FADC slices
240has been used for the normalization of the pedestal RMS. The difference amounts to about 4\%.}
241\label{fig:df:relrms:run38995}
242\vspace{\floatsep}
243\includegraphics[height=0.23\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_00_18_02_14_Run_38996_RMSRelDiff.eps}
244\caption{MExtractTimeAndChargeDigitalFilter: Relative Difference Pedestal RMS per FADC slice
245(calculated out of 2 FADC slices each) from run with continuous light level: 100 for inner (left)
246and outer (right) pixels. An equivalent number of 2.5 FADC slices
247has been used for the normalization of the pedestal RMS. The difference amounts to about 3--5\%.}
248\label{fig:df:relrms:run38996}
249\end{figure}
250
251
252\begin{figure}[htp]
253\centering
254\includegraphics[height=0.29\textheight]{MExtractTimeAndChargeSpline_Amplitude_Range_00_10_04_11_Run_38993_Signal_Pixel200.eps}
255\caption{MExtractTimeAndChargeSpline with amplitude: Distribution of extracted "pedestals" from pedestal run
256with closed camera lids for one channel.}
257\label{fig:amp:distped:run38993}
258\vspace{\floatsep}
259\includegraphics[height=0.29\textheight]{MExtractTimeAndChargeSpline_Amplitude_Range_00_10_04_11_Run_38995_Signal_Pixel200.eps}
260\caption{MExtractTimeAndChargeSpline with amplitude: Distribution of extracted "pedestals" from pedestal run
261with galactic star background for one channel.}
262\label{fig:amp:distped:run38995}
263\vspace{\floatsep}
264\includegraphics[height=0.29\textheight]{MExtractTimeAndChargeSpline_Amplitude_Range_00_10_04_11_Run_38996_Signal_Pixel200.eps}
265\caption{MExtractTimeAndChargeSpline with amplitude: Distribution of extracted "pedestals" from run with
266continuous light level: 100 for one channel.}
267\label{fig:amp:distped:run38996}
268\end{figure}
269
270\begin{figure}[htp]
271\centering
272\includegraphics[height=0.27\textheight]{MExtractTimeAndChargeSpline_Amplitude_Range_00_10_04_11_Run_38993_RelMean.eps}
273\caption{MExtractTimeAndChargeSpline with amplitude: Relative Difference Mean Pedestal per FADC slice
274from pedestal run with closed camera lids}
275\label{fig:amp:relmean:run38993}
276\vspace{\floatsep}
277\includegraphics[height=0.27\textheight]{MExtractTimeAndChargeSpline_Amplitude_Range_00_10_04_11_Run_38995_RelMean.eps}
278\caption{MExtractTimeAndChargeSpline with amplitude: Relative Difference Mean Pedestal per FADC slice
279from pedestal run with galactic star background}
280\label{fig:amp:relmean:run38995}
281\vspace{\floatsep}
282\includegraphics[height=0.27\textheight]{MExtractTimeAndChargeSpline_Amplitude_Range_00_10_04_11_Run_38996_RelMean.eps}
283\caption{MExtractTimeAndChargeSpline with amplitude: Relative Difference Mean Pedestal per FADC slice
284from run with continuous light level: 100}
285\label{fig:amp:relmean:run38996}
286\end{figure}
287
288
289\begin{figure}[htp]
290\centering
291\includegraphics[height=0.23\textheight]{MExtractTimeAndChargeSpline_Amplitude_Range_00_10_04_11_Run_38993_RMSRelDiff.eps}
292\caption{MExtractTimeAndChargeSpline with amplitude: Relative Difference Pedestal RMS per FADC slice
293(calculated out of 2 FADC slices each) from pedestal run
294with closed camera lids for inner (left) and outer (right) pixels. An equivalent number of 1 FADC slice
295has been used for the normalization of the pedestal RMS. The difference amounts to about 20\%.}
296\label{fig:amp:relrms:run38993}
297\vspace{\floatsep}
298\includegraphics[height=0.23\textheight]{MExtractTimeAndChargeSpline_Amplitude_Range_00_10_04_11_Run_38995_RMSRelDiff.eps}
299\caption{MExtractTimeAndChargeSpline with amplitude: Relative Difference Pedestal RMS per FADC slice
300(calculated out of 2 FADC slices each) from pedestal run with galactic star background for inner (left)
301and outer (right) pixels. An equivalent number of 1 FADC slice
302has been used for the normalization of the pedestal RMS. The difference amounts to about 25\%.}
303\label{fig:amp:relrms:run38995}
304\vspace{\floatsep}
305\includegraphics[height=0.23\textheight]{MExtractTimeAndChargeSpline_Amplitude_Range_00_10_04_11_Run_38996_RMSRelDiff.eps}
306\caption{MExtractTimeAndChargeSpline with amplitude: Relative Difference Pedestal RMS per FADC slice
307(calculated out of 2 FADC slices each) from run with continuous light level: 100 for inner (left)
308and outer (right) pixels. An equivalent number of 1 FADC slice
309has been used for the normalization of the pedestal RMS. The difference amounts to about 25\%.}
310\label{fig:amp:relrms:run38996}
311\end{figure}
312
313
314\vspace{1cm}
315\ldots{\it More test plots can be found under:
316http://magic.ifae.es/$\sim$markus/ExtractorPedestals/ }
317\vspace{1cm}
318
319%%% Local Variables:
320%%% mode: latex
321%%% TeX-master: "MAGIC_signal_reco"
322%%% TeX-master: "MAGIC_signal_reco"
323%%% TeX-master: "MAGIC_signal_reco"
324%%% TeX-master: "MAGIC_signal_reco."
325%%% TeX-master: "MAGIC_signal_reco"
326%%% TeX-master: "Pedestal"
327%%% TeX-master: "MAGIC_signal_reco"
328%%% End:
Note: See TracBrowser for help on using the repository browser.