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">
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="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="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>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>
23 00016 <span class="preprocessor">#include "<a class="code" href="AliHLTPHOSRawAnalyzerComponent_8h.html">AliHLTPHOSRawAnalyzerComponent.h</a>"</span>
24 00017 <span class="preprocessor">#include <iostream></span>
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;
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)
37 <a name="l00030"></a><a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponenta1">00030</a> <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerComponenta1">AliHLTPHOSRawAnalyzerComponent::~AliHLTPHOSRawAnalyzerComponent</a>()
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> & ) : AliHLTProcessor(), eventCount(0)
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>()
51 00044 <span class="keywordflow">return</span> 0;
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>()
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;
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>
68 00061 <span class="keywordtype">void</span>
69 00062 <a class="code" href="classAliHLTPHOSRawAnalyzerComponent.html#AliHLTPHOSRawAnalyzerPeakFinderComponenta9">AliHLTPHOSRawAnalyzerComponent::GetInputDataTypes</a>( vector<AliHLTComponentDataType>& list)
71 00064 <span class="keyword">const</span> AliHLTComponentDataType* pType=inputDataTypes;
72 00065 <span class="keywordflow">while</span> (pType->fID!=0) {
73 00066 list.push_back(*pType);
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>()
81 00074 <span class="keywordflow">return</span> outputDataType;
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>& constBase, <span class="keywordtype">double</span>& inputMultiplier )
87 00080 constBase = 0;inputMultiplier = 0;
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&, <span class="keyword">const</span> AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&)
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;
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 )
104 00097 printf(<span class="stringliteral">"\nInside AliHLTPHOSRawAnalyzerComponent:DoInit\n"</span>);
105 00098 <span class="keywordflow">if</span> (argc==0 && argv==NULL) {
106 00099 <span class="comment">// this is currently just to get rid of the warning "unused parameter"</span>
108 00101 <span class="keywordflow">return</span> 0;
110 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Jan 17 21:56:43 2007 for AliHLTPHOS by
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>