]>
Commit | Line | Data |
---|---|---|
6ab63b4a | 1 | \section{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder Class Reference} |
2 | \label{classAliHLTPHOSRawAnalyzerPeakFinder}\index{AliHLTPHOSRawAnalyzerPeakFinder@{AliHLTPHOSRawAnalyzerPeakFinder}} | |
3 | {\tt \#include $<$Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.h$>$} | |
4 | ||
5 | Inheritance diagram for Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::\begin{figure}[H] | |
6 | \begin{center} | |
7 | \leavevmode | |
8 | \includegraphics[height=2cm]{classAliHLTPHOSRawAnalyzerPeakFinder} | |
9 | \end{center} | |
10 | \end{figure} | |
11 | \subsection*{Public Member Functions} | |
12 | \begin{CompactItemize} | |
13 | \item | |
14 | {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder} () | |
15 | \item | |
16 | {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder} (const {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder} \&) | |
17 | \item | |
18 | {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder} \& {\bf operator=} (const {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}) | |
19 | \item | |
20 | virtual {\bf $\sim$Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder} () | |
21 | \item | |
b75ae699 | 22 | virtual void {\bf Set\-TVector} (Double\_\-t $\ast$t\-Vect, Int\_\-t size) |
6ab63b4a | 23 | \item |
b75ae699 | 24 | virtual void {\bf Set\-AVector} (Double\_\-t $\ast$a\-Vect, Int\_\-t size) |
6ab63b4a | 25 | \item |
b75ae699 | 26 | virtual void {\bf Evaluate} (Int\_\-t start=0, Int\_\-t lenght=100) |
631f0149 | 27 | \item |
28 | void {\bf Baseline\-Correction} (double $\ast$data\-Ptr, int N) | |
29 | \item | |
30 | void {\bf Baseline\-Correction} (double $\ast$data\-Ptr, double baseline\-Value) | |
31 | \item | |
32 | int {\bf Find\-Start\-Index} (double treshold) | |
33 | \item | |
34 | float {\bf Get\-Timing} () | |
35 | \item | |
36 | float {\bf Get\-Energy} () | |
37 | \item | |
38 | void {\bf Set\-Data} (double $\ast$data) | |
39 | \item | |
40 | void {\bf Set\-Sample\-Freq} (double freq) | |
41 | \item | |
b75ae699 | 42 | void {\bf Set\-Start\-Index} (int start\-Index) |
43 | \item | |
631f0149 | 44 | void {\bf Make\-Initial\-Guess} () |
45 | \item | |
46 | void {\bf Make\-Initial\-Guess} (int treshold) | |
b75ae699 | 47 | \item |
48 | virtual void {\bf Evaluate} (int start=0, int lenght=100)=0 | |
49 | \item | |
50 | Double\_\-t {\bf Get\-Max\-Value} (Double\_\-t $\ast$dta, Int\_\-t size) | |
631f0149 | 51 | \end{CompactItemize} |
52 | \subsection*{Protected Attributes} | |
53 | \begin{CompactItemize} | |
54 | \item | |
b75ae699 | 55 | Double\_\-t $\ast$ {\bf f\-Float\-Data\-Ptr} |
631f0149 | 56 | \item |
57 | double {\bf f\-Sample\-Frequency} | |
58 | \item | |
59 | double {\bf f\-DTof\-Guess} | |
60 | \item | |
61 | double {\bf f\-DAmpl\-Guess} | |
62 | \item | |
63 | double {\bf f\-Tau} | |
64 | \item | |
65 | double {\bf f\-DTof} | |
66 | \item | |
67 | double {\bf f\-DAmpl} | |
68 | \item | |
b75ae699 | 69 | int {\bf f\-Start\-Index} |
6ab63b4a | 70 | \end{CompactItemize} |
71 | \subsection*{Private Attributes} | |
72 | \begin{CompactItemize} | |
73 | \item | |
b75ae699 | 74 | Double\_\-t $\ast$ {\bf f\-TVector\-Ptr} |
75 | \item | |
76 | Double\_\-t $\ast$ {\bf f\-AVector\-Ptr} | |
77 | \item | |
78 | Int\_\-t {\bf f\-TVector\-Size} | |
6ab63b4a | 79 | \item |
b75ae699 | 80 | Int\_\-t {\bf f\-AVector\-Size} |
6ab63b4a | 81 | \end{CompactItemize} |
82 | ||
83 | ||
84 | \subsection{Constructor \& Destructor Documentation} | |
85 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!AliHLTPHOSRawAnalyzerPeakFinder@{AliHLTPHOSRawAnalyzerPeakFinder}} | |
86 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{AliHLTPHOSRawAnalyzerPeakFinder}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
631f0149 | 87 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder ()}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFindera0} |
88 | ||
6ab63b4a | 89 | |
631f0149 | 90 | The Ali\-HLTPHOSPeakfinder class is the class for extracting the basic signal parameters \char`\"{}timing\char`\"{} and \char`\"{}energy\char`\"{} from the PHOS raw data. Physical data will for a given readout channel be a sequense of ADC digitized 10 bit integer values, however for performance reasons all values used in calculation is of type double. |
6ab63b4a | 91 | |
b75ae699 | 92 | Definition at line 42 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.cxx. |
631f0149 | 93 | |
b75ae699 | 94 | \footnotesize\begin{verbatim}42 :AliHLTPHOSRawAnalyzer(), fTVectorPtr(0), fAVectorPtr(0), fTVectorSize(0), fAVectorSize(0) |
95 | 43 { | |
96 | 44 // cout <<"PeakFinder:You cannot invoke the Fitter without arguments"<<endl;; | |
97 | 45 } | |
631f0149 | 98 | \end{verbatim}\normalsize |
99 | ||
100 | ||
101 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!AliHLTPHOSRawAnalyzerPeakFinder@{AliHLTPHOSRawAnalyzerPeakFinder}} | |
6ab63b4a | 102 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{AliHLTPHOSRawAnalyzerPeakFinder}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} |
631f0149 | 103 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder (const {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder} \&)}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFindera1} |
6ab63b4a | 104 | |
105 | ||
106 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!~AliHLTPHOSRawAnalyzerPeakFinder@{$\sim$AliHLTPHOSRawAnalyzerPeakFinder}} | |
107 | \index{~AliHLTPHOSRawAnalyzerPeakFinder@{$\sim$AliHLTPHOSRawAnalyzerPeakFinder}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
631f0149 | 108 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::$\sim${\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder} ()\hspace{0.3cm}{\tt [virtual]}}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFindera3} |
109 | ||
110 | ||
111 | ||
112 | ||
b75ae699 | 113 | Definition at line 49 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.cxx. |
631f0149 | 114 | |
b75ae699 | 115 | \footnotesize\begin{verbatim}50 { |
116 | 51 | |
117 | 52 } //end AliHLTPHOSRawAnalyzerPeakFinder | |
631f0149 | 118 | \end{verbatim}\normalsize |
6ab63b4a | 119 | |
120 | ||
121 | ||
122 | ||
123 | \subsection{Member Function Documentation} | |
631f0149 | 124 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!BaselineCorrection@{BaselineCorrection}} |
125 | \index{BaselineCorrection@{BaselineCorrection}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
126 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSRaw\-Analyzer::Baseline\-Correction (double $\ast$ {\em data\-Ptr}, double {\em baseline\-Value})\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera8} | |
127 | ||
128 | ||
b75ae699 | 129 | Shifts the baseline with the amount given by baseline\-Value If pretrigger samples are not present then the basline correction will be incorrect. \begin{Desc} |
631f0149 | 130 | \item[Parameters:] |
131 | \begin{description} | |
132 | \item[{\em data\-Ptr}]array for wich to correct the basline \item[{\em Basline\-Value}]the basline value to subtract.. \end{description} | |
133 | \end{Desc} | |
134 | ||
135 | ||
b75ae699 | 136 | Definition at line 75 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. |
631f0149 | 137 | |
138 | References Ali\-HLTPHOSRaw\-Analyzer::f\-Float\-Data\-Ptr. | |
139 | ||
b75ae699 | 140 | \footnotesize\begin{verbatim}76 { |
141 | 77 fFloatDataPtr = dataPtr; | |
142 | 78 printf("\nbaselineValue = %f\n", baselineValue); | |
143 | 79 cout << "Baseline correction not yet implemeted" << endl; | |
144 | 80 } //end BaslineCorrection | |
631f0149 | 145 | \end{verbatim}\normalsize |
146 | ||
147 | ||
148 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!BaselineCorrection@{BaselineCorrection}} | |
149 | \index{BaselineCorrection@{BaselineCorrection}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
150 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSRaw\-Analyzer::Baseline\-Correction (double $\ast$ {\em data\-Ptr}, int {\em N})\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera7} | |
151 | ||
152 | ||
153 | Attemps to level the basline to zero. The baseline will be calculated from the pretrigger samples and subtracted from the data array. If pretrigger samples are not present then the basline correction will be incorrect. \begin{Desc} | |
154 | \item[Parameters:] | |
155 | \begin{description} | |
156 | \item[{\em data\-Ptr}]array for wich to correct the basline \item[{\em N}]the number of pretrigger samples used to calculate the baseline. \end{description} | |
157 | \end{Desc} | |
158 | ||
159 | ||
b75ae699 | 160 | Definition at line 60 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. |
631f0149 | 161 | |
b75ae699 | 162 | References Ali\-HLTPHOSRaw\-Analyzer::f\-Float\-Data\-Ptr. |
631f0149 | 163 | |
b75ae699 | 164 | \footnotesize\begin{verbatim}61 { |
165 | 62 fFloatDataPtr = dataPtr; | |
166 | 63 // n=N; | |
167 | 64 cout << "Baseline correction not yet implemeted" << endl; | |
168 | 65 } //end BaselineCorrection | |
631f0149 | 169 | \end{verbatim}\normalsize |
170 | ||
171 | ||
6ab63b4a | 172 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!Evaluate@{Evaluate}} |
173 | \index{Evaluate@{Evaluate}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
b75ae699 | 174 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void Ali\-HLTPHOSRaw\-Analyzer::Evaluate (int {\em start} = {\tt 0}, int {\em lenght} = {\tt 100})\hspace{0.3cm}{\tt [pure virtual, inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera17} |
6ab63b4a | 175 | |
176 | ||
6ab63b4a | 177 | |
178 | ||
b75ae699 | 179 | Implemented in {\bf Ali\-HLTPHOSRaw\-Analyzer\-Chi\-Square\-Fit} {\rm (p.\,\pageref{classAliHLTPHOSRawAnalyzerChiSquareFit_AliHLTPHOSRawAnalyzerChiSquareFita4})}, {\bf Ali\-HLTPHOSRaw\-Analyzer\-Crude} {\rm (p.\,\pageref{classAliHLTPHOSRawAnalyzerCrude_AliHLTPHOSRawAnalyzerCrudea4})}, {\bf Ali\-HLTPHOSRaw\-Analyzer\-KLevel} {\rm (p.\,\pageref{classAliHLTPHOSRawAnalyzerKLevel_AliHLTPHOSRawAnalyzerKLevela4})}, and {\bf Ali\-HLTPHOSRaw\-Analyzer\-LMS} {\rm (p.\,\pageref{classAliHLTPHOSRawAnalyzerLMS_AliHLTPHOSRawAnalyzerLMSa5})}.\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!Evaluate@{Evaluate}} |
180 | \index{Evaluate@{Evaluate}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
181 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::Evaluate (Int\_\-t {\em start} = {\tt 0}, Int\_\-t {\em lenght} = {\tt 100})\hspace{0.3cm}{\tt [virtual]}}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFindera6} | |
631f0149 | 182 | |
631f0149 | 183 | |
631f0149 | 184 | |
185 | ||
b75ae699 | 186 | Referenced by main().\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!FindStartIndex@{FindStartIndex}} |
631f0149 | 187 | \index{FindStartIndex@{FindStartIndex}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} |
188 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Ali\-HLTPHOSRaw\-Analyzer::Find\-Start\-Index (double {\em treshold})\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera9} | |
189 | ||
190 | ||
191 | ||
192 | ||
b75ae699 | 193 | Definition at line 124 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. |
631f0149 | 194 | |
b75ae699 | 195 | \footnotesize\begin{verbatim}125 { |
196 | 126 printf("\ntreshold = %f \n", treshold); | |
197 | 127 cout << "Find Start index not yet implemented" << endl; | |
198 | 128 return 0; | |
199 | 129 } //end FindStartIndex | |
631f0149 | 200 | \end{verbatim}\normalsize |
201 | ||
202 | ||
203 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!GetEnergy@{GetEnergy}} | |
204 | \index{GetEnergy@{GetEnergy}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
205 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}float Ali\-HLTPHOSRaw\-Analyzer::Get\-Energy ()\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera11} | |
206 | ||
207 | ||
208 | Gives the time in entities of ADC channels (quantization levels). Absolute enrgy is found by multiplying with offline calibration constants. | |
209 | ||
b75ae699 | 210 | Definition at line 99 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. |
211 | ||
212 | Referenced by main(). | |
213 | ||
214 | \footnotesize\begin{verbatim}100 { | |
215 | 101 return fDAmpl; | |
216 | 102 } //end GetEnergy | |
217 | \end{verbatim}\normalsize | |
218 | ||
631f0149 | 219 | |
b75ae699 | 220 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!GetMaxValue@{GetMaxValue}} |
221 | \index{GetMaxValue@{GetMaxValue}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
222 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Double\_\-t Ali\-HLTPHOSRaw\-Analyzer::Get\-Max\-Value (Double\_\-t $\ast$ {\em dta}, Int\_\-t {\em size})\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera18} | |
223 | ||
224 | ||
225 | ||
226 | ||
227 | Definition at line 176 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. | |
228 | ||
229 | \footnotesize\begin{verbatim}177 { | |
230 | 178 | |
231 | 179 Double_t tmpMax = 0; | |
232 | 180 | |
233 | 181 for(int i = 0; i < size; i++) | |
234 | 182 { | |
235 | 183 if(dta[i] > tmpMax) | |
236 | 184 { | |
237 | 185 tmpMax = dta[i]; | |
238 | 186 } | |
239 | 187 | |
240 | 188 } | |
241 | 189 | |
242 | 190 return tmpMax; | |
243 | 191 | |
244 | 192 } | |
631f0149 | 245 | \end{verbatim}\normalsize |
246 | ||
247 | ||
248 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!GetTiming@{GetTiming}} | |
249 | \index{GetTiming@{GetTiming}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
250 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}float Ali\-HLTPHOSRaw\-Analyzer::Get\-Timing ()\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera10} | |
251 | ||
252 | ||
253 | Gives the timing in entities of sample indexes Physical time is found by multiplying with the sampling intervall (Ts). | |
254 | ||
b75ae699 | 255 | Definition at line 88 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. |
256 | ||
257 | Referenced by main(). | |
631f0149 | 258 | |
b75ae699 | 259 | \footnotesize\begin{verbatim}89 { |
260 | 90 return fDTof; | |
261 | 91 } //end GetTiming | |
631f0149 | 262 | \end{verbatim}\normalsize |
263 | ||
264 | ||
265 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!MakeInitialGuess@{MakeInitialGuess}} | |
266 | \index{MakeInitialGuess@{MakeInitialGuess}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
b75ae699 | 267 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSRaw\-Analyzer::Make\-Initial\-Guess (int {\em treshold})\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera16} |
631f0149 | 268 | |
269 | ||
270 | This function applies only to the Chi and Least mean square fit. An initial guess is made based on the average of the first 5 samples and the first value exeeding threshold + this value. \begin{Desc} | |
271 | \item[Parameters:] | |
272 | \begin{description} | |
273 | \item[{\em treshold}]The index of the first value above treshold is ntaken to be the first value. \end{description} | |
274 | \end{Desc} | |
275 | ||
276 | ||
b75ae699 | 277 | Definition at line 149 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. |
631f0149 | 278 | |
b75ae699 | 279 | \footnotesize\begin{verbatim}150 { |
280 | 151 printf("\ntreshold = %d\n", treshold); | |
281 | 152 cout << "Make initial guess not yet implemeted" << endl; | |
282 | 153 } | |
631f0149 | 283 | \end{verbatim}\normalsize |
284 | ||
285 | ||
286 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!MakeInitialGuess@{MakeInitialGuess}} | |
287 | \index{MakeInitialGuess@{MakeInitialGuess}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
b75ae699 | 288 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSRaw\-Analyzer::Make\-Initial\-Guess ()\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera15} |
631f0149 | 289 | |
290 | ||
291 | This function applies only to the Chi and Least mean square fit. An initial guess is made based on the average of the first 5 samples and the first value exeeding this value. | |
292 | ||
b75ae699 | 293 | Definition at line 137 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. |
631f0149 | 294 | |
b75ae699 | 295 | \footnotesize\begin{verbatim}138 { |
296 | 139 cout << "Make initial guess not yet implemeted" << endl; | |
297 | 140 } | |
631f0149 | 298 | \end{verbatim}\normalsize |
299 | ||
300 | ||
301 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!operator=@{operator=}} | |
6ab63b4a | 302 | \index{operator=@{operator=}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} |
631f0149 | 303 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}\& Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::operator= (const {\em Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder})\hspace{0.3cm}{\tt [inline]}}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFindera2} |
304 | ||
305 | ||
306 | ||
307 | ||
b75ae699 | 308 | Definition at line 16 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.h. |
631f0149 | 309 | |
b75ae699 | 310 | \footnotesize\begin{verbatim}17 { |
311 | 18 return *this; | |
312 | 19 } | |
631f0149 | 313 | \end{verbatim}\normalsize |
6ab63b4a | 314 | |
315 | ||
316 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!SetAVector@{SetAVector}} | |
317 | \index{SetAVector@{SetAVector}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
b75ae699 | 318 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::Set\-AVector (Double\_\-t $\ast$ {\em a\-Vect}, Int\_\-t {\em size})\hspace{0.3cm}{\tt [virtual]}}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFindera5} |
319 | ||
320 | ||
631f0149 | 321 | |
322 | ||
b75ae699 | 323 | Reimplemented from {\bf Ali\-HLTPHOSRaw\-Analyzer} {\rm (p.\,\pageref{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerLMSa17})}. |
631f0149 | 324 | |
b75ae699 | 325 | Definition at line 74 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.cxx. |
631f0149 | 326 | |
b75ae699 | 327 | References f\-AVector\-Ptr, and f\-AVector\-Size. |
631f0149 | 328 | |
b75ae699 | 329 | Referenced by main(). |
631f0149 | 330 | |
b75ae699 | 331 | \footnotesize\begin{verbatim}75 { |
332 | 76 | |
333 | 77 fAVectorSize = size; | |
334 | 78 | |
335 | 79 if(fAVectorPtr != 0) | |
336 | 80 { | |
337 | 81 delete fAVectorPtr; | |
338 | 82 } | |
339 | 83 | |
340 | 84 fAVectorPtr = new Double_t[size]; | |
341 | 85 | |
342 | 86 for(int i=0; i< size; i++) | |
343 | 87 { | |
344 | 88 fAVectorPtr[i] = aVec[i]; | |
345 | 89 } | |
346 | 90 } | |
631f0149 | 347 | \end{verbatim}\normalsize |
348 | ||
349 | ||
350 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!SetData@{SetData}} | |
351 | \index{SetData@{SetData}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
352 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSRaw\-Analyzer::Set\-Data (double $\ast$ {\em data})\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera12} | |
353 | ||
354 | ||
355 | Set data array. Overrides data data array set in the constructor. | |
356 | ||
b75ae699 | 357 | Definition at line 109 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. |
631f0149 | 358 | |
359 | References Ali\-HLTPHOSRaw\-Analyzer::f\-Float\-Data\-Ptr. | |
360 | ||
b75ae699 | 361 | Referenced by main(). |
362 | ||
363 | \footnotesize\begin{verbatim}110 { | |
364 | 111 // double *dta; | |
365 | 112 // dta = data; | |
366 | 113 fFloatDataPtr = data; | |
367 | 114 // cout << "Set data not yet implemented" << endl; | |
368 | 115 } | |
631f0149 | 369 | \end{verbatim}\normalsize |
370 | ||
371 | ||
372 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!SetSampleFreq@{SetSampleFreq}} | |
373 | \index{SetSampleFreq@{SetSampleFreq}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
374 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSRaw\-Analyzer::Set\-Sample\-Freq (double {\em freq})\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera13} | |
375 | ||
376 | ||
377 | ||
378 | ||
b75ae699 | 379 | Definition at line 118 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. |
380 | ||
381 | References Ali\-HLTPHOSRaw\-Analyzer::f\-Sample\-Frequency. | |
631f0149 | 382 | |
b75ae699 | 383 | Referenced by main(). |
384 | ||
385 | \footnotesize\begin{verbatim}119 { | |
386 | 120 fSampleFrequency = freq; | |
387 | 121 } | |
388 | \end{verbatim}\normalsize | |
389 | ||
390 | ||
391 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!SetStartIndex@{SetStartIndex}} | |
392 | \index{SetStartIndex@{SetStartIndex}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
393 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSRaw\-Analyzer::Set\-Start\-Index (int {\em start\-Index})\hspace{0.3cm}{\tt [inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFindera14} | |
394 | ||
395 | ||
396 | ||
397 | ||
398 | Definition at line 156 of file Ali\-HLTPHOSRaw\-Analyzer.cxx. | |
399 | ||
400 | References Ali\-HLTPHOSRaw\-Analyzer::f\-Start\-Index. | |
401 | ||
402 | \footnotesize\begin{verbatim}157 { | |
403 | 158 fStartIndex = index; | |
404 | 159 } | |
631f0149 | 405 | \end{verbatim}\normalsize |
6ab63b4a | 406 | |
407 | ||
408 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!SetTVector@{SetTVector}} | |
409 | \index{SetTVector@{SetTVector}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
b75ae699 | 410 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::Set\-TVector (Double\_\-t $\ast$ {\em t\-Vect}, Int\_\-t {\em size})\hspace{0.3cm}{\tt [virtual]}}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFindera4} |
411 | ||
412 | ||
631f0149 | 413 | |
414 | ||
b75ae699 | 415 | Reimplemented from {\bf Ali\-HLTPHOSRaw\-Analyzer} {\rm (p.\,\pageref{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerLMSa16})}. |
631f0149 | 416 | |
b75ae699 | 417 | Definition at line 55 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.cxx. |
631f0149 | 418 | |
b75ae699 | 419 | References f\-TVector\-Ptr, and f\-TVector\-Size. |
631f0149 | 420 | |
b75ae699 | 421 | Referenced by main(). |
631f0149 | 422 | |
b75ae699 | 423 | \footnotesize\begin{verbatim}56 { |
424 | 57 fTVectorSize = size; | |
425 | 58 | |
426 | 59 if(fTVectorPtr != 0) | |
427 | 60 { | |
428 | 61 delete fTVectorPtr; | |
429 | 62 } | |
430 | 63 | |
431 | 64 fTVectorPtr = new Double_t[size]; | |
432 | 65 | |
433 | 66 for(int i=0; i< size; i++) | |
434 | 67 { | |
435 | 68 fTVectorPtr[i] = tVec[i]; | |
436 | 69 } | |
437 | 70 } | |
631f0149 | 438 | \end{verbatim}\normalsize |
6ab63b4a | 439 | |
440 | ||
441 | ||
442 | ||
443 | \subsection{Member Data Documentation} | |
b75ae699 | 444 | \index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fAVectorPtr@{fAVectorPtr}} |
445 | \index{fAVectorPtr@{fAVectorPtr}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
446 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Double\_\-t$\ast$ {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::f\-AVector\-Ptr}\hspace{0.3cm}{\tt [private]}}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFinderr1} | |
447 | ||
631f0149 | 448 | |
449 | ||
631f0149 | 450 | |
451 | Definition at line 26 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.h. | |
452 | ||
b75ae699 | 453 | Referenced by Set\-AVector().\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fAVectorSize@{fAVectorSize}} |
454 | \index{fAVectorSize@{fAVectorSize}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
455 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Int\_\-t {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::f\-AVector\-Size}\hspace{0.3cm}{\tt [private]}}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFinderr3} | |
456 | ||
457 | ||
458 | ||
459 | ||
460 | Definition at line 28 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.h. | |
461 | ||
462 | Referenced by Set\-AVector().\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fDAmpl@{fDAmpl}} | |
631f0149 | 463 | \index{fDAmpl@{fDAmpl}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} |
464 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}double {\bf Ali\-HLTPHOSRaw\-Analyzer::f\-DAmpl}\hspace{0.3cm}{\tt [protected, inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFinderp6} | |
465 | ||
466 | ||
467 | Amplitude in entities of ADC levels | |
468 | ||
b75ae699 | 469 | Definition at line 44 of file Ali\-HLTPHOSRaw\-Analyzer.h.\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fDAmplGuess@{fDAmplGuess}} |
631f0149 | 470 | \index{fDAmplGuess@{fDAmplGuess}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} |
471 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}double {\bf Ali\-HLTPHOSRaw\-Analyzer::f\-DAmpl\-Guess}\hspace{0.3cm}{\tt [protected, inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFinderp3} | |
472 | ||
473 | ||
474 | Initial guess for amplitude | |
475 | ||
b75ae699 | 476 | Definition at line 41 of file Ali\-HLTPHOSRaw\-Analyzer.h.\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fDTof@{fDTof}} |
631f0149 | 477 | \index{fDTof@{fDTof}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} |
478 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}double {\bf Ali\-HLTPHOSRaw\-Analyzer::f\-DTof}\hspace{0.3cm}{\tt [protected, inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFinderp5} | |
479 | ||
480 | ||
481 | Time of flight in entities of sample intervals | |
482 | ||
b75ae699 | 483 | Definition at line 43 of file Ali\-HLTPHOSRaw\-Analyzer.h.\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fDTofGuess@{fDTofGuess}} |
631f0149 | 484 | \index{fDTofGuess@{fDTofGuess}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} |
485 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}double {\bf Ali\-HLTPHOSRaw\-Analyzer::f\-DTof\-Guess}\hspace{0.3cm}{\tt [protected, inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFinderp2} | |
6ab63b4a | 486 | |
487 | ||
631f0149 | 488 | Initial guess for t0 |
489 | ||
b75ae699 | 490 | Definition at line 40 of file Ali\-HLTPHOSRaw\-Analyzer.h.\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fFloatDataPtr@{fFloatDataPtr}} |
631f0149 | 491 | \index{fFloatDataPtr@{fFloatDataPtr}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} |
b75ae699 | 492 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Double\_\-t$\ast$ {\bf Ali\-HLTPHOSRaw\-Analyzer::f\-Float\-Data\-Ptr}\hspace{0.3cm}{\tt [protected, inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFinderp0} |
631f0149 | 493 | |
494 | ||
495 | Float representation of data that should be fitted | |
496 | ||
b75ae699 | 497 | Definition at line 38 of file Ali\-HLTPHOSRaw\-Analyzer.h. |
631f0149 | 498 | |
499 | Referenced by Ali\-HLTPHOSRaw\-Analyzer::Ali\-HLTPHOSRaw\-Analyzer(), Ali\-HLTPHOSRaw\-Analyzer::Baseline\-Correction(), and Ali\-HLTPHOSRaw\-Analyzer::Set\-Data().\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fSampleFrequency@{fSampleFrequency}} | |
500 | \index{fSampleFrequency@{fSampleFrequency}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
501 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}double {\bf Ali\-HLTPHOSRaw\-Analyzer::f\-Sample\-Frequency}\hspace{0.3cm}{\tt [protected, inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFinderp1} | |
502 | ||
503 | ||
504 | The ADC sample frequency in MHz used under data taking | |
505 | ||
b75ae699 | 506 | Definition at line 39 of file Ali\-HLTPHOSRaw\-Analyzer.h. |
507 | ||
508 | Referenced by Ali\-HLTPHOSRaw\-Analyzer::Ali\-HLTPHOSRaw\-Analyzer(), and Ali\-HLTPHOSRaw\-Analyzer::Set\-Sample\-Freq().\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fStartIndex@{fStartIndex}} | |
509 | \index{fStartIndex@{fStartIndex}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
510 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf Ali\-HLTPHOSRaw\-Analyzer::f\-Start\-Index}\hspace{0.3cm}{\tt [protected, inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFinderp7} | |
631f0149 | 511 | |
b75ae699 | 512 | |
513 | ||
514 | ||
515 | Definition at line 46 of file Ali\-HLTPHOSRaw\-Analyzer.h. | |
516 | ||
517 | Referenced by Ali\-HLTPHOSRaw\-Analyzer::Set\-Start\-Index().\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fTau@{fTau}} | |
631f0149 | 518 | \index{fTau@{fTau}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} |
519 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}double {\bf Ali\-HLTPHOSRaw\-Analyzer::f\-Tau}\hspace{0.3cm}{\tt [protected, inherited]}}\label{classAliHLTPHOSRawAnalyzer_AliHLTPHOSRawAnalyzerPeakFinderp4} | |
520 | ||
521 | ||
522 | The risetime in micro seconds | |
523 | ||
b75ae699 | 524 | Definition at line 42 of file Ali\-HLTPHOSRaw\-Analyzer.h.\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fTVectorPtr@{fTVectorPtr}} |
525 | \index{fTVectorPtr@{fTVectorPtr}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
526 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Double\_\-t$\ast$ {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::f\-TVector\-Ptr}\hspace{0.3cm}{\tt [private]}}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFinderr0} | |
631f0149 | 527 | |
528 | ||
529 | ||
530 | ||
b75ae699 | 531 | Definition at line 25 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.h. |
631f0149 | 532 | |
b75ae699 | 533 | Referenced by Set\-TVector().\index{AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}!fTVectorSize@{fTVectorSize}} |
534 | \index{fTVectorSize@{fTVectorSize}!AliHLTPHOSRawAnalyzerPeakFinder@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder}} | |
535 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Int\_\-t {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder::f\-TVector\-Size}\hspace{0.3cm}{\tt [private]}}\label{classAliHLTPHOSRawAnalyzerPeakFinder_AliHLTPHOSRawAnalyzerPeakFinderr2} | |
6ab63b4a | 536 | |
537 | ||
6ab63b4a | 538 | |
631f0149 | 539 | |
b75ae699 | 540 | Definition at line 27 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.h. |
541 | ||
542 | Referenced by Set\-TVector(). | |
631f0149 | 543 | |
6ab63b4a | 544 | The documentation for this class was generated from the following files:\begin{CompactItemize} |
545 | \item | |
546 | {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.h}\item | |
547 | {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder.cxx}\end{CompactItemize} |