]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/html/AliHLTPHOSRawAnalyzerComponent_8cxx-source.html
Added source code to the hrml documentation
[u/mrichter/AliRoot.git] / HLT / PHOS / html / AliHLTPHOSRawAnalyzerComponent_8cxx-source.html
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: AliHLTPHOSRawAnalyzerComponent.cxx Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.3.9.1 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
8 <h1>AliHLTPHOSRawAnalyzerComponent.cxx</h1><a href="AliHLTPHOSRawAnalyzerComponent_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"> * Author: Per Thomas Hille for the ALICE HLT Project.                    *</span>
12 00005 <span class="comment"> * Contributors are mentioned in the code where appropriate.              *</span>
13 00006 <span class="comment"> *                                                                        *</span>
14 00007 <span class="comment"> * Permission to use, copy, modify and distribute this software and its   *</span>
15 00008 <span class="comment"> * documentation strictly for non-commercial purposes is hereby granted   *</span>
16 00009 <span class="comment"> * without fee, provided that the above copyright notice appears in all   *</span>
17 00010 <span class="comment"> * copies and that both the copyright notice and this permission notice   *</span>
18 00011 <span class="comment"> * appear in the supporting documentation. The authors make no claims     *</span>
19 00012 <span class="comment"> * about the suitability of this software for any purpose. It is          *</span>
20 00013 <span class="comment"> * provided "as is" without express or implied warranty.                  *</span>
21 00014 <span class="comment"> **************************************************************************/</span>
22 00015 
23 00016 <span class="preprocessor">#include "<a class="code" href="AliHLTPHOSRawAnalyzerComponent_8h.html">AliHLTPHOSRawAnalyzerComponent.h</a>"</span>
24 00017 <span class="preprocessor">#include &lt;iostream&gt;</span>
25 00018 
26 <a name="l00019"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponentv0">00019</a> <span class="keyword">const</span> AliHLTComponentDataType <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponentv0">AliHLTPHOSRawAnalyzerComponent::inputDataTypes</a>[]={kAliHLTVoidDataType,{0,<span class="stringliteral">""</span>,<span class="stringliteral">""</span>}}; <span class="comment">//'zero' terminated array</span>
27 <a name="l00020"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponentv1">00020</a> <span class="keyword">const</span> AliHLTComponentDataType <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponentv1">AliHLTPHOSRawAnalyzerComponent::outputDataType</a>=kAliHLTVoidDataType;
28 00021 
29 00022 
30 00023 
31 00024 <span class="comment">//ClassImp(AliHLTPHOSRawAnalyzerComponent) </span>
32 <a name="l00025"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponenta0">00025</a> <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponenta0">AliHLTPHOSRawAnalyzerComponent::AliHLTPHOSRawAnalyzerComponent</a>():AliHLTProcessor(), eventCount(0)
33 00026 {
34 00027 
35 00028 } 
36 00029 
37 <a name="l00030"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponenta1">00030</a> <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponenta1">AliHLTPHOSRawAnalyzerComponent::~AliHLTPHOSRawAnalyzerComponent</a>()
38 00031 {
39 00032 
40 00033 }
41 00034 
42 00035 
43 <a name="l00036"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponenta2">00036</a> <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponenta0">AliHLTPHOSRawAnalyzerComponent::AliHLTPHOSRawAnalyzerComponent</a>(<span class="keyword">const</span> <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html">AliHLTPHOSRawAnalyzerComponent</a> &amp; ) : AliHLTProcessor(), eventCount(0)
44 00037 {
45 00038 
46 00039 }
47 00040 
48 00041 <span class="keywordtype">int</span> 
49 <a name="l00042"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta7">00042</a> <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta7">AliHLTPHOSRawAnalyzerComponent::Deinit</a>()
50 00043 {
51 00044   <span class="keywordflow">return</span> 0;
52 00045 }
53 00046 
54 00047 <span class="keywordtype">int</span> 
55 <a name="l00048"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta8">00048</a> <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta8">AliHLTPHOSRawAnalyzerComponent::DoDeinit</a>()
56 00049 {
57 00050  Logging(kHLTLogInfo, <span class="stringliteral">"HLT"</span>, <span class="stringliteral">"PHOS"</span>, <span class="stringliteral">",AliHLTPHOSRawAnalyzerComponen DoDeinit"</span>);
58 00051   <span class="keywordflow">return</span> 0;
59 00052 
60 00053 }
61 00054 
62 00055 <span class="comment">//const char* </span>
63 00056 <span class="comment">//AliHLTPHOSRawAnalyzerComponent::GetComponentID()</span>
64 00057 <span class="comment">//{</span>
65 00058 <span class="comment">//  return 0;</span>
66 00059 <span class="comment">//}</span>
67 00060 
68 00061 <span class="keywordtype">void</span>
69 00062 <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta9">AliHLTPHOSRawAnalyzerComponent::GetInputDataTypes</a>( vector&lt;AliHLTComponentDataType&gt;&amp; list)
70 00063 {
71 00064   <span class="keyword">const</span> AliHLTComponentDataType* pType=inputDataTypes;
72 00065   <span class="keywordflow">while</span> (pType-&gt;fID!=0) {
73 00066     list.push_back(*pType);
74 00067     pType++;
75 00068   }
76 00069 }
77 00070 
78 00071 AliHLTComponentDataType 
79 <a name="l00072"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta10">00072</a> <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta10">AliHLTPHOSRawAnalyzerComponent::GetOutputDataType</a>()
80 00073 {
81 00074   <span class="keywordflow">return</span> outputDataType;
82 00075 }
83 00076 
84 00077 <span class="keywordtype">void</span>
85 00078 <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta11">AliHLTPHOSRawAnalyzerComponent::GetOutputDataSize</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>&amp; constBase, <span class="keywordtype">double</span>&amp; inputMultiplier )
86 00079 {
87 00080   constBase = 0;inputMultiplier = 0;
88 00081 }
89 00082 
90 00083 <span class="keywordtype">int</span> 
91 <a name="l00084"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta12">00084</a> <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta12">AliHLTPHOSRawAnalyzerComponent::DoEvent</a>(<span class="keyword">const</span> AliHLTComponentEventData&amp;, <span class="keyword">const</span> AliHLTComponentBlockData*, AliHLTComponentTriggerData&amp;, AliHLTUInt8_t*, AliHLTUInt32_t&amp;, std::vector&lt;AliHLTComponentBlockData, std::allocator&lt;AliHLTComponentBlockData&gt; &gt;&amp;)
92 00085 {
93 00086   Logging(kHLTLogInfo, <span class="stringliteral">"HLT"</span>, <span class="stringliteral">"Sample"</span>, <span class="stringliteral">"PhosHLTRawAnalyzerComonent, DoEvent"</span>);
94 00087   printf(<span class="stringliteral">"\nPHOSHLT DoEvent: processing event: %d\n"</span>, <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponentr0">eventCount</a>);
95 00088   <span class="comment">//  printf("\nPHOSHLT DoEvent, not yet implemented\n");</span>
96 00089   <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponentr0">eventCount</a>++;
97 00090   <span class="keywordflow">return</span> 0;
98 00091 }
99 00092 
100 00093 
101 00094 <span class="keywordtype">int</span>
102 <a name="l00095"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta6">00095</a> <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta6">AliHLTPHOSRawAnalyzerComponent::DoInit</a>( <span class="keywordtype">int</span> argc, <span class="keyword">const</span> <span class="keywordtype">char</span>** argv )
103 00096 {
104 00097   printf(<span class="stringliteral">"\nInside AliHLTPHOSRawAnalyzerComponent:DoInit\n"</span>);
105 00098   <span class="keywordflow">if</span> (argc==0 &amp;&amp; argv==NULL) {
106 00099     <span class="comment">// this is currently just to get rid of the warning "unused parameter"</span>
107 00100   }
108 00101   <span class="keywordflow">return</span> 0;
109 00102 }
110 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Jan 17 21:56:43 2007 for AliHLTPHOS by&nbsp;
111 <a href="http://www.doxygen.org/index.html">
112 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
113 </body>
114 </html>