1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>AliHLTPHOS: AliHLTPHOSHistogramProducerComponent.cxx Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.3.9.1 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
8 <h1>AliHLTPHOSHistogramProducerComponent.cxx</h1><a href="AliHLTPHOSHistogramProducerComponent_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/**************************************************************************</span>
9 00002 <span class="comment"> * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *</span>
10 00003 <span class="comment"> * *</span>
11 00004 <span class="comment"> * Authors: Boris Polichtchouk & Per Thomas Hille for the ALICE *</span>
12 00005 <span class="comment"> * offline/HLT Project. Contributors are mentioned in the code where *</span>
13 00006 <span class="comment"> * appropriate. *</span>
14 00007 <span class="comment"> * *</span>
15 00008 <span class="comment"> * Permission to use, copy, modify and distribute this software and its *</span>
16 00009 <span class="comment"> * documentation strictly for non-commercial purposes is hereby granted *</span>
17 00010 <span class="comment"> * without fee, provided that the above copyright notice appears in all *</span>
18 00011 <span class="comment"> * copies and that both the copyright notice and this permission notice *</span>
19 00012 <span class="comment"> * appear in the supporting documentation. The authors make no claims *</span>
20 00013 <span class="comment"> * about the suitability of this software for any purpose. It is *</span>
21 00014 <span class="comment"> * provided "as is" without express or implied warranty. *</span>
22 00015 <span class="comment"> **************************************************************************/</span>
24 00017 <span class="preprocessor">#include "<a class="code" href="AliHLTPHOSHistogramProducerComponent_8h.html">AliHLTPHOSHistogramProducerComponent.h</a>"</span>
25 00018 <span class="preprocessor">#include "AliRawReaderMemory.h"</span>
26 00019 <span class="preprocessor">#include "AliCaloRawStream.h"</span>
27 00020 <span class="comment">//#include "cstdio"</span>
28 00021 <span class="preprocessor">#include <iostream></span>
29 00022 <span class="preprocessor">#include "<a class="code" href="AliHLTPHOSRcuCellEnergyDataStruct_8h.html">AliHLTPHOSRcuCellEnergyDataStruct.h</a>"</span>
30 00023 <span class="preprocessor">#include "<a class="code" href="AliHLTPHOSModuleCellAccumulatedEnergyDataStruct_8h.html">AliHLTPHOSModuleCellAccumulatedEnergyDataStruct.h</a>"</span>
32 00025 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
35 <a name="l00028"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#v0">00028</a> <span class="keyword">const</span> <a class="code" href="structAliHLTComponentDataType.html">AliHLTComponentDataType</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#v0">AliHLTPHOSHistogramProducerComponent::fgkInputDataTypes</a>[]={kAliHLTVoidDataType,{0,<span class="stringliteral">""</span>,<span class="stringliteral">""</span>}}; <span class="comment">//'zero' terminated array</span>
36 <a name="l00029"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#v1">00029</a> <span class="keyword">const</span> <a class="code" href="structAliHLTComponentDataType.html">AliHLTComponentDataType</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#v1">AliHLTPHOSHistogramProducerComponent::fgkOutputDataType</a>=kAliHLTVoidDataType;
39 <a name="l00032"></a><a class="code" href="AliHLTPHOSHistogramProducerComponent_8cxx.html#a0">00032</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html">AliHLTPHOSHistogramProducerComponent</a> gAliHLTPHOSHistogramProducerComponent;
41 00034 <span class="comment">/*************************************************************************</span>
42 00035 <span class="comment">* Class AliHLTPHOSHistogramProducerComponent accumulating histograms *</span>
43 00036 <span class="comment">* with amplitudes per PHOS channel *</span>
44 00037 <span class="comment">* It is intended to run at the HLT farm *</span>
45 00038 <span class="comment">* and it fills the histograms with amplitudes per channel. * </span>
46 00039 <span class="comment">* Usage example see in PHOS/macros/Shuttle/AliPHOSCalibHistoProducer.C *</span>
47 00040 <span class="comment">**************************************************************************/</span>
48 <a name="l00041"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a0">00041</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a0">AliHLTPHOSHistogramProducerComponent:: AliHLTPHOSHistogramProducerComponent</a>():<a class="code" href="classAliHLTProcessor.html">AliHLTProcessor</a>(), fEventCount(0), fEquippmentID(0)
50 00046 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#b0">Reset</a>();
54 <a name="l00050"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a1">00050</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a1">AliHLTPHOSHistogramProducerComponent::~ AliHLTPHOSHistogramProducerComponent</a>()
59 <a name="l00058"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a2">00058</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a0">AliHLTPHOSHistogramProducerComponent::AliHLTPHOSHistogramProducerComponent</a>(<span class="keyword">const</span> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html">AliHLTPHOSHistogramProducerComponent</a> & ) : <a class="code" href="classAliHLTProcessor.html">AliHLTProcessor</a>(), fEventCount(0), fEquippmentID(0)
64 00066 <span class="keywordtype">int</span>
65 <a name="l00067"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a5">00067</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a5">AliHLTPHOSHistogramProducerComponent::Deinit</a>()
67 00072 <span class="keywordflow">return</span> 0;
71 00076 <span class="keywordtype">int</span>
72 <a name="l00077"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a6">00077</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a6">AliHLTPHOSHistogramProducerComponent::DoDeinit</a>()
74 00079 <a class="code" href="classAliHLTLogging.html#a7">Logging</a>(<a class="code" href="AliHLTDataTypes_8h.html#a29a21">kHLTLogInfo</a>, <span class="stringliteral">"HLT"</span>, <span class="stringliteral">"PHOS"</span>, <span class="stringliteral">",AliHLTPHOSHistogramProducer DoDeinit"</span>);
75 00080 <span class="keywordflow">return</span> 0;
79 00084 <span class="keyword">const</span> <span class="keywordtype">char</span>*
80 <a name="l00085"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a10">00085</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a10">AliHLTPHOSHistogramProducerComponent::GetComponentID</a>()
82 00090 <span class="keywordflow">return</span> <span class="stringliteral">"HistogramProducer"</span>;
86 00094 <span class="keywordtype">void</span>
87 <a name="l00095"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a11">00095</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a11">AliHLTPHOSHistogramProducerComponent::GetInputDataTypes</a>( vector<AliHLTComponentDataType>& list)
89 00100 <span class="keyword">const</span> <a class="code" href="structAliHLTComponentDataType.html">AliHLTComponentDataType</a>* pType=fgkInputDataTypes;
90 00101 <span class="keywordflow">while</span> (pType-><a class="code" href="structAliHLTComponentDataType.html#o1">fID</a>!=0)
92 00103 list.push_back(*pType);
98 00109 <a class="code" href="structAliHLTComponentDataType.html">AliHLTComponentDataType</a>
99 <a name="l00110"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a12">00110</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a12">AliHLTPHOSHistogramProducerComponent::GetOutputDataType</a>()
101 00115 <span class="keywordflow">return</span> AliHLTPHOSDefinitions::gkCellEnergyDataType;
105 00119 <span class="keywordtype">void</span>
106 <a name="l00120"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a13">00120</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a13">AliHLTPHOSHistogramProducerComponent::GetOutputDataSize</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>& constBase, <span class="keywordtype">double</span>& inputMultiplier )
108 00125 constBase = 30;
109 00126 inputMultiplier = 1;
113 <a name="l00130"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a7">00130</a> <span class="keywordtype">int</span> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a7">AliHLTPHOSHistogramProducerComponent::DoEvent</a>( <span class="keyword">const</span> <a class="code" href="structAliHLTComponentEventData.html">AliHLTComponentEventData</a>& evtData, <span class="keyword">const</span> <a class="code" href="structAliHLTComponentBlockData.html">AliHLTComponentBlockData</a>* blocks,
114 00131 <a class="code" href="structAliHLTComponentTriggerData.html">AliHLTComponentTriggerData</a>& trigData, AliHLTUInt8_t* outputPtr,
115 00132 AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks )
117 00142 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> ndx;
118 00143 UInt_t offset = 0;
119 00144 UInt_t mysize = 0;
120 00145 UInt_t tSize = 0;
122 00147 <span class="keyword">const</span> <a class="code" href="structAliHLTComponentBlockData.html">AliHLTComponentBlockData</a>* iter = NULL;
123 00148 <a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html">AliHLTPHOSRcuCellEnergyDataStruct</a> *cellDataPtr;
124 00149 <a class="code" href="AliHLTDataTypes_8h.html#a4">AliHLTUInt8_t</a>* outBPtr;
125 00150 outBPtr = outputPtr;
126 00151 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r6">fOutPtr</a> = (<a class="code" href="structAliHLTPHOSModuleCellAccumulatedEnergyDataStruct.html">AliHLTPHOSModuleCellAccumulatedEnergyDataStruct</a>*)outBPtr;
128 00153 <span class="keywordtype">int</span> tmpCnt;
129 00154 <a class="code" href="AliHLTDataTypes_8h.html#a4">AliHLTUInt8_t</a> tmpModuleID;
130 00155 <a class="code" href="AliHLTDataTypes_8h.html#a4">AliHLTUInt8_t</a> tmpRcuX;
131 00156 <a class="code" href="AliHLTDataTypes_8h.html#a4">AliHLTUInt8_t</a> tmpRcuZ;
133 00158 <span class="keywordflow">for</span>( ndx = 0; ndx < evtData.<a class="code" href="structAliHLTComponentEventData.html#o4">fBlockCnt</a>; ndx++ )
135 00160 iter = blocks+ndx;
136 00161 cellDataPtr = (<a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html">AliHLTPHOSRcuCellEnergyDataStruct</a>*)( iter-><a class="code" href="structAliHLTComponentBlockData.html#o3">fPtr</a>);
137 00162 tmpCnt = cellDataPtr-><a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html#o3">fCnt</a>;
139 00164 tmpModuleID = cellDataPtr-><a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html#o0">fModuleID</a>;
140 00165 tmpRcuX = cellDataPtr-><a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html#o1">fRcuX</a> ;
141 00166 tmpRcuZ = cellDataPtr-><a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html#o2">fRcuZ</a>;
142 00167 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r6">fOutPtr</a>-><a class="code" href="structAliHLTPHOSModuleCellAccumulatedEnergyDataStruct.html#o0">fModuleID</a> = tmpModuleID;
143 00168 <span class="keywordtype">int</span> tmpGain;
144 00169 <span class="keywordtype">int</span> tmpZ;
145 00170 <span class="keywordtype">int</span> tmpX;
147 00172 <span class="comment">// for(int i= 0; i< tmpCnt; i ++)</span>
148 00173 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i= 0; i <= tmpCnt; i ++)
150 00175 tmpZ = cellDataPtr-><a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html#o4">fValidData</a>[i].<a class="code" href="structAliHLTPHOSValidCellDataStruct.html#o0">fZ</a> + <a class="code" href="AliHLTPHOSCommonDefs_8h.html#a13">N_ZROWS_RCU</a>*tmpRcuZ;
151 00176 tmpX = cellDataPtr-><a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html#o4">fValidData</a>[i].<a class="code" href="structAliHLTPHOSValidCellDataStruct.html#o1">fX</a> + <a class="code" href="AliHLTPHOSCommonDefs_8h.html#a14">N_XCOLUMNS_RCU</a>*tmpRcuX;
153 00178 <span class="keywordflow">if</span>(cellDataPtr-><a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html#o4">fValidData</a>[i].<a class="code" href="structAliHLTPHOSValidCellDataStruct.html#o2">fGain</a> == HIGH_GAIN)
155 00180 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r1">fAccumulatedValues</a>[tmpZ][tmpX][HIGH_GAIN] += cellDataPtr-><a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html#o4">fValidData</a>[i].<a class="code" href="structAliHLTPHOSValidCellDataStruct.html#o3">fEnergy</a>;
156 00181 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r2">fHits</a>[tmpZ][tmpX][HIGH_GAIN] ++;
158 00183 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(cellDataPtr-><a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html#o4">fValidData</a>[i].<a class="code" href="structAliHLTPHOSValidCellDataStruct.html#o2">fGain</a> == LOW_GAIN)
160 00185 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r1">fAccumulatedValues</a>[tmpZ][tmpX][LOW_GAIN] += cellDataPtr-><a class="code" href="structAliHLTPHOSRcuCellEnergyDataStruct.html#o4">fValidData</a>[i].<a class="code" href="structAliHLTPHOSValidCellDataStruct.html#o3">fEnergy</a>;
161 00186 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r2">fHits</a>[tmpZ][tmpX][LOW_GAIN] ++;
167 00192 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> z=0; z < N_ZROWS_MOD; z ++ )
169 00194 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> x = 0; x < N_XCOLUMNS_MOD; x ++)
171 00196 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> gain =0; gain < N_GAINS; gain ++)
173 00198 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r6">fOutPtr</a>-><a class="code" href="structAliHLTPHOSModuleCellAccumulatedEnergyDataStruct.html#o1">fAccumulatedEnergies</a>[z][x][gain] = <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r1">fAccumulatedValues</a>[z][x][gain];
174 00199 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r6">fOutPtr</a>-><a class="code" href="structAliHLTPHOSModuleCellAccumulatedEnergyDataStruct.html#o2">fHits</a>[z][x][gain] = <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r2">fHits</a>[z][x][gain];
180 00205 <span class="comment">//pushing data to shared output memory</span>
181 00206 mysize += <span class="keyword">sizeof</span>(<a class="code" href="structAliHLTPHOSModuleCellAccumulatedEnergyDataStruct.html">AliHLTPHOSModuleCellAccumulatedEnergyDataStruct</a>);
182 00207 <a class="code" href="structAliHLTComponentBlockData.html">AliHLTComponentBlockData</a> bd;
183 00208 <a class="code" href="classAliHLTComponent.html#b0">FillBlockData</a>( bd );
184 00209 bd.<a class="code" href="structAliHLTComponentBlockData.html#o2">fOffset</a> = offset;
185 00210 bd.<a class="code" href="structAliHLTComponentBlockData.html#o4">fSize</a> = mysize;
186 00211 bd.<a class="code" href="structAliHLTComponentBlockData.html#o5">fDataType</a> = AliHLTPHOSDefinitions::gkCellAccumulatedEnergyDataType;
187 00212 bd.<a class="code" href="structAliHLTComponentBlockData.html#o6">fSpecification</a> = 0xFFFFFFFF;
188 00213 outputBlocks.push_back( bd );
189 00214 tSize += mysize;
190 00215 outBPtr += mysize;
192 00217 <span class="keywordflow">if</span>( tSize > size )
194 00219 <a class="code" href="classAliHLTLogging.html#a7">Logging</a>( <a class="code" href="AliHLTDataTypes_8h.html#a29a24">kHLTLogFatal</a>, <span class="stringliteral">"HLT::AliHLTHistogramProducerComponent::DoEvent"</span>, <span class="stringliteral">"Too much data"</span>,
195 00220 <span class="stringliteral">"Data written over allowed buffer. Amount written: %lu, allowed amount: %lu."</span>
196 00221 , tSize, size );
197 00222 <span class="keywordflow">return</span> EMSGSIZE;
200 00225 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r3">fEventCount</a>++;
201 00226 <span class="keywordflow">return</span> 0;
202 00227 }<span class="comment">//end DoEvent</span>
205 00230 <span class="keywordtype">int</span>
206 <a name="l00231"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a4">00231</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a4">AliHLTPHOSHistogramProducerComponent::DoInit</a>( <span class="keywordtype">int</span> argc, <span class="keyword">const</span> <span class="keywordtype">char</span>** argv )
208 00233 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#b0">Reset</a>();
209 00234 <span class="keywordflow">if</span> (argc==0 && argv==NULL) {
210 00235 <span class="comment">// this is currently just to get rid of the warning "unused parameter"</span>
212 00237 <span class="keywordflow">return</span> 0;
216 00241 <span class="keywordtype">void</span>
217 <a name="l00242"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a8">00242</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a8">AliHLTPHOSHistogramProducerComponent::DumpData</a>(<span class="keywordtype">int</span> gain)
220 00245 <span class="keywordflow">if</span>(gain < 0 || gain > N_GAINS)
222 00247 cout <<<span class="stringliteral">"AliHLTPHOSHistogramProducerComponent::DumpDat: Error, gain must be between "</span> << 0 << <span class="stringliteral">"and"</span> << <a class="code" href="AliHLTPHOSCommonDefs_8h.html#a17">N_GAINS</a> << endl;
225 00250 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> mod = 0; mod < N_MODULES; mod ++)
227 00252 <span class="keywordflow">if</span>(gain == HIGH_GAIN)
229 00254 cout << endl <<<span class="stringliteral">" *********** MODULE"</span> << mod << <span class="stringliteral">"****HIGH_GAIN"</span> <<<span class="stringliteral">"************"</span> << endl;
231 00256 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(gain == LOW_GAIN)
233 00258 cout << endl <<<span class="stringliteral">" *********** MODULE"</span> << mod << <span class="stringliteral">"****LOW_GAIN"</span> <<<span class="stringliteral">"************"</span> << endl;
236 00261 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> row = 0; row < N_ROWS_MOD; row ++)
238 00263 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> col = 0; col < N_COLUMNS_MOD; col ++)
240 00265 <span class="keywordflow">if</span>(<a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r1">fAccumulatedValues</a>[row][col][0] != 0)
242 00267 cout << <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r1">fAccumulatedValues</a>[row][col][0] << <span class="stringliteral">"\t"</span>;
251 00276 <span class="keywordtype">void</span>
252 <a name="l00277"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#b0">00277</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#b0">AliHLTPHOSHistogramProducerComponent::Reset</a>()
254 00279 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> mod = 0; mod < N_MODULES; mod ++)
256 00281 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> row = 0; row < N_ROWS_MOD; row ++)
258 00283 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> col = 0; col < N_COLUMNS_MOD; col ++)
260 00285 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> gain = 0; gain < N_GAINS; gain ++ )
262 00287 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r1">fAccumulatedValues</a>[row][col][gain] = 0;
263 00288 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r2">fHits</a>[row][col][gain] = 0;
269 00294 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0 ; i< ALTRO_MAX_SAMPLES; i++)
271 00296 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r5">fTmpChannelData</a>[i] = 0;
273 00298 } <span class="comment">// end Reset</span>
275 00300 <span class="keywordtype">void</span>
276 <a name="l00301"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#b1">00301</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#b1">AliHLTPHOSHistogramProducerComponent::ResetDataPtr</a>()
278 00303 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0 ; i< ALTRO_MAX_SAMPLES; i++)
280 00305 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r5">fTmpChannelData</a>[i] = 0;
285 00310 <span class="keywordtype">void</span>
286 <a name="l00311"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a14">00311</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a14">AliHLTPHOSHistogramProducerComponent::SetEquippmentId</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>)
288 00313 <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#r4">fEquippmentID</a> = id;
291 00316 <span class="keyword">const</span> <span class="keywordtype">int</span>
292 <a name="l00317"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a9">00317</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a9">AliHLTPHOSHistogramProducerComponent::GetEquippmentId</a>()<span class="keyword"> const</span>
293 00318 <span class="keyword"></span>{
294 00319 <span class="keywordflow">return</span> fEquippmentID;
298 00323 <a class="code" href="classAliHLTComponent.html">AliHLTComponent</a>*
299 <a name="l00324"></a><a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a15">00324</a> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html#a15">AliHLTPHOSHistogramProducerComponent::Spawn</a>()
301 00326 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classAliHLTPHOSHistogramProducerComponent.html">AliHLTPHOSHistogramProducerComponent</a>;
305 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 4 04:49:52 2007 for AliHLTPHOS by
306 <a href="http://www.doxygen.org/index.html">
307 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>