]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/latex/classAliHLTPHOSRawAnalyzerPeakFinderComponent.tex
New component for writing calibration data to fxs (Oystein)
[u/mrichter/AliRoot.git] / HLT / PHOS / latex / classAliHLTPHOSRawAnalyzerPeakFinderComponent.tex
1 \section{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component Class Reference}
2 \label{classAliHLTPHOSRawAnalyzerPeakFinderComponent}\index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{AliHLTPHOSRawAnalyzerPeakFinderComponent}}
3 {\tt \#include $<$Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.h$>$}
4
5 Inheritance diagram for Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component::\begin{figure}[H]
6 \begin{center}
7 \leavevmode
8 \includegraphics[height=5cm]{classAliHLTPHOSRawAnalyzerPeakFinderComponent}
9 \end{center}
10 \end{figure}
11 \subsection*{Public Member Functions}
12 \begin{CompactItemize}
13 \item 
14 {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component} ()
15 \item 
16 {\bf $\sim$Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component} ()
17 \item 
18 virtual const char $\ast$ {\bf Get\-Component\-ID} ()
19 \item 
20 virtual {\bf Ali\-HLTComponent} $\ast$ {\bf Spawn} ()
21 \end{CompactItemize}
22 \subsection*{Private Member Functions}
23 \begin{CompactItemize}
24 \item 
25 Bool\_\-t {\bf Load\-PFVector} ()
26 \item 
27 Bool\_\-t {\bf Load\-PFVector} (int startindex, int Nsamples, int tau, int fs)
28 \item 
29 {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component} (const {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component} \&)
30 \item 
31 {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component} \& {\bf operator=} (const {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component})
32 \end{CompactItemize}
33
34
35 \subsection{Constructor \& Destructor Documentation}
36 \index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}!AliHLTPHOSRawAnalyzerPeakFinderComponent@{AliHLTPHOSRawAnalyzerPeakFinderComponent}}
37 \index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{AliHLTPHOSRawAnalyzerPeakFinderComponent}!AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}}
38 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component::Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component ()}\label{classAliHLTPHOSRawAnalyzerPeakFinderComponent_a0}
39
40
41
42
43 Definition at line 26 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.cxx.
44
45 References Load\-PFVector().
46
47 \footnotesize\begin{verbatim}26                                                                                   :AliHLTPHOSRawAnalyzerComponent()
48 27 {
49 28   fAnalyzerPtr = new AliHLTPHOSRawAnalyzerPeakFinder();
50 29 
51 30   if(LoadPFVector() == kFALSE)
52 31     {
53 32       //      cout << "Warning, could not load PF vectors" << endl;
54 33     }
55 34   else 
56 35     {
57 36       //    cout << "Loaded PF vectors" << endl;
58 37     }
59 38 } 
60 \end{verbatim}\normalsize 
61
62
63 \index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}!~AliHLTPHOSRawAnalyzerPeakFinderComponent@{$\sim$AliHLTPHOSRawAnalyzerPeakFinderComponent}}
64 \index{~AliHLTPHOSRawAnalyzerPeakFinderComponent@{$\sim$AliHLTPHOSRawAnalyzerPeakFinderComponent}!AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}}
65 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component::$\sim${\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component} ()}\label{classAliHLTPHOSRawAnalyzerPeakFinderComponent_a1}
66
67
68
69
70 Definition at line 41 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.cxx.
71
72 \footnotesize\begin{verbatim}42 {
73 43 
74 44 }
75 \end{verbatim}\normalsize 
76
77
78 \index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}!AliHLTPHOSRawAnalyzerPeakFinderComponent@{AliHLTPHOSRawAnalyzerPeakFinderComponent}}
79 \index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{AliHLTPHOSRawAnalyzerPeakFinderComponent}!AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}}
80 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component::Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component (const {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component} \&)\hspace{0.3cm}{\tt  [private]}}\label{classAliHLTPHOSRawAnalyzerPeakFinderComponent_d2}
81
82
83
84
85 Definition at line 47 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.cxx.
86
87 \footnotesize\begin{verbatim}47                                                                                                                                     : AliHLTPHOSRawAnalyzerComponent()
88 48 {
89 49 
90 50 }
91 \end{verbatim}\normalsize 
92
93
94
95
96 \subsection{Member Function Documentation}
97 \index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}!GetComponentID@{GetComponentID}}
98 \index{GetComponentID@{GetComponentID}!AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}}
99 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component::Get\-Component\-ID ()\hspace{0.3cm}{\tt  [virtual]}}\label{classAliHLTPHOSRawAnalyzerPeakFinderComponent_a2}
100
101
102 Returns the component ID 
103
104 Implements {\bf Ali\-HLTPHOSRaw\-Analyzer\-Component} {\rm (p.\,\pageref{classAliHLTPHOSRawAnalyzerComponent_a12})}.
105
106 Definition at line 54 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.cxx.
107
108 \footnotesize\begin{verbatim}55 {
109 56   return "PhosRawPeakFinder";
110 57 }
111 \end{verbatim}\normalsize 
112
113
114 \index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}!LoadPFVector@{LoadPFVector}}
115 \index{LoadPFVector@{LoadPFVector}!AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}}
116 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Bool\_\-t Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component::Load\-PFVector (int {\em startindex}, int {\em Nsamples}, int {\em tau}, int {\em fs})\hspace{0.3cm}{\tt  [private]}}\label{classAliHLTPHOSRawAnalyzerPeakFinderComponent_d1}
117
118
119
120
121 Definition at line 67 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.cxx.
122
123 References HLTFatal, PF\_\-VECTOR\_\-DIR, Ali\-HLTPHOSRaw\-Analyzer::Set\-AVector(), and Ali\-HLTPHOSRaw\-Analyzer::Set\-TVector().
124
125 \footnotesize\begin{verbatim}68 {
126 69   char tmpPFPath[PF_MAX_PATH_LENGTH];
127 70   Double_t tmpAVector[nSamples];
128 71   Double_t tmpTVector[nSamples]; 
129 72   sprintf(tmpPFPath,"%s%s/start%dN%dtau%dfs%d.txt", getenv("ALICE_ROOT"), PF_VECTOR_DIR, startIndex, nSamples, tau, fs);
130 73   FILE *fp;
131 74   fp = fopen(tmpPFPath, "r");
132 75   
133 76   if(fp != 0)
134 77     {
135 78       for(int i=0; i <  nSamples; i++)
136 79         {
137 80           fscanf(fp, "%lf", &tmpAVector[i]);
138 81         }
139 82 
140 83       fscanf(fp, "\n");
141 84 
142 85       for(int i=0; i < nSamples; i++)
143 86         {
144 87                   fscanf(fp, "%lf", &tmpTVector[i]);
145 88         }
146 89       fAnalyzerPtr->SetAVector(tmpAVector,  nSamples);
147 90       fAnalyzerPtr->SetTVector(tmpTVector,  nSamples);
148 91       fclose(fp);
149 92       return kTRUE;
150 93     }
151 94   
152 95   else
153 96     {
154 97       HLTFatal("ERROR: could not  open PF vector file");
155 98       return kFALSE;
156 99     }
157 100 }
158 \end{verbatim}\normalsize 
159
160
161 \index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}!LoadPFVector@{LoadPFVector}}
162 \index{LoadPFVector@{LoadPFVector}!AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}}
163 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}Bool\_\-t Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component::Load\-PFVector ()\hspace{0.3cm}{\tt  [private]}}\label{classAliHLTPHOSRawAnalyzerPeakFinderComponent_d0}
164
165
166
167
168 Definition at line 60 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.cxx.
169
170 References DEFAULT\_\-FS, DEFAULT\_\-TAU, PF\_\-DEFAULT\_\-N\_\-SAMPLES, and PF\_\-DEFAULT\_\-STARTINDEX.
171
172 Referenced by Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component().
173
174 \footnotesize\begin{verbatim}61 {
175 62   return LoadPFVector(PF_DEFAULT_STARTINDEX,  PF_DEFAULT_N_SAMPLES, DEFAULT_TAU, DEFAULT_FS );
176 63 }
177 \end{verbatim}\normalsize 
178
179
180 \index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}!operator=@{operator=}}
181 \index{operator=@{operator=}!AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}}
182 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}\& Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component::operator= (const  {\em Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component})\hspace{0.3cm}{\tt  [inline, private]}}\label{classAliHLTPHOSRawAnalyzerPeakFinderComponent_d3}
183
184
185
186
187 Definition at line 22 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.h.
188
189 \footnotesize\begin{verbatim}23     {
190 24       return *this;
191 25     };
192 \end{verbatim}\normalsize 
193
194
195 \index{AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}!Spawn@{Spawn}}
196 \index{Spawn@{Spawn}!AliHLTPHOSRawAnalyzerPeakFinderComponent@{Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component}}
197 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Ali\-HLTComponent} $\ast$ Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component::Spawn ()\hspace{0.3cm}{\tt  [virtual]}}\label{classAliHLTPHOSRawAnalyzerPeakFinderComponent_a3}
198
199
200 Spawn function. Each component must implement a spawn function to create a new instance of the class. Basically the function must return {\em new {\bf my\_\-class\_\-name}\/}. \begin{Desc}
201 \item[Returns:]new class instance \end{Desc}
202
203
204 Implements {\bf Ali\-HLTPHOSRaw\-Analyzer\-Component} {\rm (p.\,\pageref{classAliHLTPHOSRawAnalyzerComponent_a16})}.
205
206 Definition at line 104 of file Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.cxx.
207
208 \footnotesize\begin{verbatim}105 {
209 106   return new AliHLTPHOSRawAnalyzerPeakFinderComponent;
210 107 }
211 \end{verbatim}\normalsize 
212
213
214
215
216 The documentation for this class was generated from the following files:\begin{CompactItemize}
217 \item 
218 {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.h}\item 
219 {\bf Ali\-HLTPHOSRaw\-Analyzer\-Peak\-Finder\-Component.cxx}\end{CompactItemize}