Changeset 6378 for trunk/MagicSoft/TDAS-Extractor/Pedestal.tex
- Timestamp:
- 02/11/05 16:54:01 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/TDAS-Extractor/Pedestal.tex
r6374 r6378 9 9 \par 10 10 11 By definition, the noise autocorrelation matrix $B$ and thus the ``pedestal RMS''11 By definition, the $\boldsymbol{B}$ and thus the ``pedestal RMS'' 12 12 is independent from the signal extractor. 13 13 14 \subsection{Bias and Error} 15 16 Consider a large number of signals (FADC spectra), all with the same 17 integrated charge $ST$ (true signal). By applying a signal extractor 18 we obtain a distribution of extracted signals $SE$ (for fixed $ST$ and 14 \subsection{Bias and Mean-squared Error} 15 16 Consider a large number of same signals $S$. By applying a signal extractor 17 we obtain a distribution of estimated signals $\widehat{S}$ (for fixed $S$ and 19 18 fixed background fluctuations $BG$). The distribution of the quantity 20 19 21 20 \begin{equation} 22 X = SE-ST23 \end{equation} 24 25 has the mean $B$ and the RMS $R$ defined by:21 X = \widehat{S}-S 22 \end{equation} 23 24 has the mean $B$ and the Variance $MSE$ defined as: 26 25 27 26 \begin{eqnarray} 28 B &=& <X> \\ 29 R &=& \sqrt{<(X-B)^2>} 27 B \ \ \ \ = \ \ \ \ \ \ <X> \ \ \ \ \ &=& \ \ <\widehat{S}> \ -\ S\\ 28 R \ \ \ \ = \ <(X-B)^2> &=& \ Var[\widehat{S}]\\ 29 MSE \ = \ \ \ \ \ <X^2> \ \ \ \ &=& \ Var[\widehat{S}] +\ B^2 30 30 \end{eqnarray} 31 31 32 The parameter $B$ can be called the {\textit{\bf bias}} of the pedestal extractor and $R$33 the RMS of the distribution of $X$ which34 depend generally on the size of $ST$ and the size of the background fluctuations $BG$. 35 36 \par 37 38 For the normal image cleaning, knowledge of $B$ is sufficient and the39 error $R$ should be known in order to calculate a correct background probability. 40 \par 41 Also for the model analysis, $B$ and $R$ are needed if one wants to keep small 42 signals. 32 The parameter $B$ is also called the {\textit{\bf BIAS}} of the estimator and $MSE$ 33 the {\textit{\bf MEAN-SQUARED ERROR}} which combines the variance of $\widehat{S}$ and 34 the bias. Both depend generally on the size of $S$ and the background fluctuations $BG$, 35 thus: $B = B(S,BG)$ and $MSE = MSE(S,BG)$. 36 37 \par 38 Usually, one measures easily the parameter $R$, but needs the $MSE$ for statistical analysis (e.g. 39 in the image cleaning). 40 However, only in case of a vanishing bias $B$, the two numbers are equal. Otherwise, 41 the bias $B$ has to be known beforehand. Note that every sliding window extractor has a 42 bias, especially at low or vanishing signals $S$. 43 43 44 44 \subsection{Pedestal Fluctuations as Contribution to the Signal Fluctuations} 45 45 46 In case of the calibration with the F-Factor methoid, 47 the basic relation is: 48 49 \begin{equation} 50 \frac{(\Delta ST)^2}{<ST>^2} = \frac{1}{<n_{phe}>} * F^2 51 \end{equation} 52 53 Here $\Delta ST$ is the fluctuation of the true signal $ST$ due to the 54 fluctuation of the number of photo-electrons. $ST$ is obtained from the 55 measured fluctuations of $SE$ ($RMS_{SE}$) subtracting those contributions to the 56 fluctuations of the 57 extracted signal which are due to the fluctuation of the pedestal\footnote{% 46 A photo-multiplier signal yields, to a very good approximation, the 47 following relation: 48 49 \begin{equation} 50 \frac{Var[Q]}{<Q>^2} = \frac{1}{<n_{phe}>} * F^2 51 \end{equation} 52 53 Here, $Q$ is the signal fluctuation due to the number of signal photo-electrons 54 (equiv. to the signal $S$), and $Var[Q]$ the fluctuations of the true signal $Q$ 55 due to the Poisson fluctuations of the number of photo-electrons. Because of: 56 57 \begin{eqnarray} 58 \widehat{Q} &=& Q + X \\ 59 Var(\widehat{Q}) &=& Var(Q) + Var(X) \\ 60 Var(Q) &=& Var(\widehat{Q}) - Var(X) 61 \end{eqnarray} 62 63 $Var[Q]$ can be obtained from: 64 65 \begin{eqnarray} 66 Var(Q) &\approx& Var(\widehat{Q}) - Var(\widehat{Q}=0) 67 \label{eq:rmssubtraction} 68 \end{eqnarray} 69 70 In the last line of eq.~\ref{eq:rmssubtraction}, it is assumed that $R$ does not dependent 71 on the signal height\footnote{% 58 72 A way to check whether the right RMS has been subtracted is to make the 59 73 ``Razmick''-plot 60 74 61 75 \begin{equation} 62 \frac{ (\Delta ST)^2}{<ST>^2} \quad \textit{vs.} \quad \frac{1}{<ST>}76 \frac{Var[\widehat{Q}]}{<\widehat{Q}>^2} \quad \textit{vs.} \quad \frac{1}{<\widehat{Q}>} 63 77 \end{equation} 64 78 … … 70 84 \end{equation} 71 85 72 where $c$ is the photon/ADC conversion factor $<ST>/<m_{pe}>$.}. 73 74 \begin{equation} 75 (\Delta ST)^2 = RMS_{SE}^2 - R^2 76 \label{eq:rmssubtraction} 77 \end{equation} 78 79 If $R$ does not dependent on the signal height, (as it is the case 80 for the digital filter, eq.~\ref{eq:of_noise}), then one can retrieve $R$ by 81 applying the signal extractor on a {\textit{\bf fixed window}} of pedestal events. 82 83 \subsection{Methods to Retrieve Bias $B$ and Errors $R$} 84 85 $R$ is in general different from the pedestal RMS. It cannot be 86 obtained by applying the signal extractor to pedestal events, especially 87 for large signals (e.g. calibration signals). 88 \par 89 In the case of the digital filter, $R$ is in theory independent from the 90 signal amplitude $ST$ and depends only on the background $BG$ (eq.~\ref{eq:of_noise}). 91 It can be obtained from the 92 fitted error of the extracted signal ($\Delta(SE)_{fitted}$), 93 which one can calculate for every event or by applying the extractor to a fixed window 94 of pure background events (``pedestal events''). 95 96 \par 97 98 In order to get the missing information, we did the following investigations: 86 where $c$ is the photon/ADC conversion factor $<Q>/<m_{pe}>$.} 87 (as is the case 88 for the digital filter, eq.~\ref{eq:of_noise}). One can then retrieve $R$ 89 by applying the signal extractor to a {\textit{\bf fixed window}} of pedestal events, where the 90 bias vanishes and measure $Var[\widehat{Q}=0]$. 91 92 \subsection{Methods to Retrieve Bias and Mean-Squared Error} 93 94 In general, the extracted signal variance $R$ is different from the pedestal RMS. 95 It cannot be obtained by applying the signal extractor to pedestal events, because of the 96 (unknown) bias. 97 \par 98 In the case of the digital filter, $R$ is expected to be independent from the 99 signal amplitude $S$ and depends only on the background $BG$ (eq.~\ref{eq:of_noise}). 100 It can then be obtained from the calculation of the variance $Var[\widehat{Q}]$ 101 by applying the extractor to a fixed window of pure background events (``pedestal events'') 102 and get rid of the bias in that way. Figures~\ref{fig:amp:relmean} through~\ref{fig:df:relmean} 103 show that the bias vanishes indeed for the used extractors in this TDAS. 104 105 \begin{figure}[htp] 106 \centering 107 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38993_RelMean.eps} 108 \vspace{\floatsep} 109 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38995_RelMean.eps} 110 \vspace{\floatsep} 111 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38996_RelMean.eps} 112 \caption{MExtractTimeAndChargeSpline with amplitude extraction: 113 Difference in mean pedestal (per FADC slice) between extraction algorithm 114 applied on a fixed window of 1 FADC slice (``extractor random'') and a simple addition of 115 2 FADC slices (``fundamental''). On the top, a run with closed camera has been taken, in the center 116 an opened camera observing an extra-galactic star field and on the bottom, an open camera being 117 illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 118 pixel.} 119 \label{fig:amp:relmean} 120 \end{figure} 121 122 123 \begin{figure}[htp] 124 \centering 125 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38993_RelMean.eps} 126 \vspace{\floatsep} 127 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38995_RelMean.eps} 128 \vspace{\floatsep} 129 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38996_RelMean.eps} 130 \caption{MExtractTimeAndChargeSpline with integral over 2 slices: 131 Difference in mean pedestal (per FADC slice) between extraction algorithm 132 applied on a fixed window of 2 FADC slices (``extractor random'') and a simple addition of 133 2 FADC slices (``fundamental''). On the top, a run with closed camera has been taken, in the center 134 an opened camera observing an extra-galactic star field and on the bottom, an open camera being 135 illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 136 pixel.} 137 \label{fig:int:relmean} 138 \end{figure} 139 140 \begin{figure}[htp] 141 \centering 142 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38993_RelMean.eps} 143 \vspace{\floatsep} 144 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38995_RelMean.eps} 145 \vspace{\floatsep} 146 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38996_RelMean.eps} 147 \caption{MExtractTimeAndChargeDigitalFilter: 148 Difference in mean pedestal (per FADC slice) between extraction algorithm 149 applied on a fixed window of 6 FADC slices and time-randomized weights (``extractor random'') 150 and a simple addition of 151 6 FADC slices (``fundamental''). On the top, a run with closed camera has been taken, in the center 152 an opened camera observing an extra-galactic star field and on the bottom, an open camera being 153 illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 154 pixel.} 155 \label{fig:df:relmean} 156 \end{figure} 157 158 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 159 160 In order to calculate bias and Mean-squared error, we proceeded in the following ways: 99 161 \begin{enumerate} 100 162 \item Determine $R$ by applying the signal extractor to a fixed window 101 163 of pedestal events. The background fluctuations can be simulated with different 102 164 levels of night sky background and the continuous light source, but no signal size 103 dependency can be retrieved with th emethod.104 \item Determine bias $B$ and resolution $R$ from MC events with and without added noise.105 Assuming that $ R$ and $B$ are negligible for the events without noise, one can165 dependency can be retrieved with this method. 166 \item Determine $B$ and $MSE$ from MC events with and without added noise. 167 Assuming that $MSE$ and $B$ are negligible for the events without noise, one can 106 168 get a dependency of both values from the size of the signal. 107 \item Determine $ R$ from the fitted error of $SE$, which is possible for the169 \item Determine $MSE$ from the fitted error of $\widehat{S}$, which is possible for the 108 170 fit and the digital filter (eq.~\ref{eq:of_noise}). 109 171 In prinicple, all dependencies can be retrieved with this method. … … 114 176 115 177 By applying the signal extractor to a fixed window of pedestal events, we 116 determine the parameter $R$ for the case of no signal ($ST = 0$). In the case of 117 all extractors using a fixed window from the beginning (extractors nr. \#1 to \#22 118 in section~\ref{sec:algorithms}), the results are by construction the same as calculating 119 the pedestal RMS. 120 \par 121 In MARS, this possibility is implemented with a function-call to: \\ 122 123 {\textit{\bf MJPedestal::SetExtractionWithExtractorRndm()}}. \\ 124 125 In the case of the {\textit{\bf amplitude extracting spline}} (extractor nr. \#23), we placed the 126 spline maximum value (which determines the exact extraction window) at a random place 127 within the digitizing binning resolution of one central FADC slice. 128 In the case of the {\textit{\bf digital filter}} (extractor nr. \#28), the time shift was 129 randomized for each event within a fixed global extraction window. 130 131 \par 178 determine the parameter $R$ for the case of no signal ($Q = 0$). In the case of 179 extractors using a fixed window (extractors nr. \#1 to \#22 180 in section~\ref{sec:algorithms}), the results are the same by construction 181 as calculating the pedestal RMS. 182 \par 183 In MARS, this functionality is implemented with a function-call to: \\ 184 185 {\textit{\bf MJPedestal::SetExtractionWithExtractorRndm()}} and/or \\ 186 {\textit{\bf MExtractPedestal::SetRandomCalculation()}}\\ 187 188 Besides fixing the global extraction window, additionally the following steps are undertaken 189 in order to assure that the bias vanishes: 190 191 \begin{description} 192 \item[\textit{MExtractTimeAndChargeSpline}:\xspace] The spline 193 maximum position -- which determines the exact extraction window -- is placed arbitrarily 194 at a random place within the digitizing binning resolution of one central FADC slice. 195 \item[{\textit{MExtractTimeAndChargeDigitalFilter}:\xspace] The second step timing 196 offset $\tau$ (eq.~\ref{eq:offsettau} gets randomized for each event. 197 \end{description} 132 198 133 199 The following plots~\ref{fig:sw:distped} through~\ref{fig:amp:relrms:run38996} show results … … 212 278 213 279 214 \begin{figure}[htp] 215 \centering 216 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38993_RelMean.eps} 217 \vspace{\floatsep} 218 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38995_RelMean.eps} 219 \vspace{\floatsep} 220 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Amplitude_Amplitude_Range_01_09_01_10_Run_38996_RelMean.eps} 221 \caption{MExtractTimeAndChargeSpline with amplitude extraction: 222 Difference in mean pedestal (per FADC slice) between extraction algorithm 223 applied on a fixed window of 1 FADC slice (``extractor random'') and a simple addition of 224 2 FADC slices (``fundamental''). On the top, a run with closed camera has been taken, in the center 225 an opened camera observing an extra-galactic star field and on the bottom, an open camera being 226 illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 227 pixel.} 228 \label{fig:amp:relmean} 229 \end{figure} 230 231 232 \begin{figure}[htp] 233 \centering 234 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38993_RelMean.eps} 235 \vspace{\floatsep} 236 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38995_RelMean.eps} 237 \vspace{\floatsep} 238 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeSpline_Rise-and-Fall-Time_0.5_1.5_Range_01_10_02_12_Run_38996_RelMean.eps} 239 \caption{MExtractTimeAndChargeSpline with integral over 2 slices: 240 Difference in mean pedestal (per FADC slice) between extraction algorithm 241 applied on a fixed window of 2 FADC slices (``extractor random'') and a simple addition of 242 2 FADC slices (``fundamental''). On the top, a run with closed camera has been taken, in the center 243 an opened camera observing an extra-galactic star field and on the bottom, an open camera being 244 illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 245 pixel.} 246 \label{fig:int:relmean} 247 \end{figure} 248 249 \begin{figure}[htp] 250 \centering 251 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38993_RelMean.eps} 252 \vspace{\floatsep} 253 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38995_RelMean.eps} 254 \vspace{\floatsep} 255 \includegraphics[height=0.3\textheight]{MExtractTimeAndChargeDigitalFilter_Weights_cosmics_weights.dat_Range_01_14_02_14_Run_38996_RelMean.eps} 256 \caption{MExtractTimeAndChargeDigitalFilter: 257 Difference in mean pedestal (per FADC slice) between extraction algorithm 258 applied on a fixed window of 6 FADC slices and time-randomized weights (``extractor random'') 259 and a simple addition of 260 6 FADC slices (``fundamental''). On the top, a run with closed camera has been taken, in the center 261 an opened camera observing an extra-galactic star field and on the bottom, an open camera being 262 illuminated by the continuous light of the calibration (level: 100). Every entry corresponds to one 263 pixel.} 264 \label{fig:df:relmean} 265 \end{figure} 266 267 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 280 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%1 268 281 269 282 \begin{figure}[htp] … … 324 337 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 325 338 326 Figures~\ref{fig:df:distped} 339 Figures~\ref{fig:df:distped},~\ref{fig:amp:distped} 327 340 and~\ref{fig:amp:distped} show the 328 341 extracted pedestal distributions for the digital filter with cosmics weights (extractor~\#28) and the
Note:
See TracChangeset
for help on using the changeset viewer.