]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/html/AliHLTDataSink_8cxx-source.html
New component for writing calibration data to fxs (Oystein)
[u/mrichter/AliRoot.git] / HLT / PHOS / html / AliHLTDataSink_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: /home/perthi/cern/aliroot/AliRoot_head020507/HLT/BASE/AliHLTDataSink.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="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</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="dirs.html">Directories</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 <div class="nav">
9 <a class="el" href="dir_000000.html">BASE</a></div>
10 <h1>AliHLTDataSink.cxx</h1><a href="AliHLTDataSink_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">// $Id$</span>
11 00002 
12 00003 <span class="comment">/**************************************************************************</span>
13 00004 <span class="comment"> * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *</span>
14 00005 <span class="comment"> *                                                                        *</span>
15 00006 <span class="comment"> * Authors: Matthias Richter &lt;Matthias.Richter@ift.uib.no&gt;                *</span>
16 00007 <span class="comment"> *          for The ALICE Off-line Project.                               *</span>
17 00008 <span class="comment"> *                                                                        *</span>
18 00009 <span class="comment"> * Permission to use, copy, modify and distribute this software and its   *</span>
19 00010 <span class="comment"> * documentation strictly for non-commercial purposes is hereby granted   *</span>
20 00011 <span class="comment"> * without fee, provided that the above copyright notice appears in all   *</span>
21 00012 <span class="comment"> * copies and that both the copyright notice and this permission notice   *</span>
22 00013 <span class="comment"> * appear in the supporting documentation. The authors make no claims     *</span>
23 00014 <span class="comment"> * about the suitability of this software for any purpose. It is          *</span>
24 00015 <span class="comment"> * provided "as is" without express or implied warranty.                  *</span>
25 00016 <span class="comment"> **************************************************************************/</span>
26 00017 
27 00023 <span class="preprocessor">#if __GNUC__&gt;= 3</span>
28 00024 <span class="preprocessor"></span><span class="keyword">using</span> <span class="keyword">namespace </span>std;
29 00025 <span class="preprocessor">#endif</span>
30 00026 <span class="preprocessor"></span>
31 00027 <span class="preprocessor">#include "<a class="code" href="AliHLTDataSink_8h.html">AliHLTDataSink.h</a>"</span>
32 00028 
33 <a name="l00030"></a><a class="code" href="AliHLTDataSink_8cxx.html#a0">00030</a> <a class="code" href="AliHLTPHOSRawAnalyzerPeakFinder_8cxx.html#a0">ClassImp</a>(<a class="code" href="classAliHLTDataSink.html">AliHLTDataSink</a>)
34 00031 
35 00032 <a class="code" href="classAliHLTDataSink.html">AliHLTDataSink</a>::<a class="code" href="classAliHLTDataSink.html">AliHLTDataSink</a>()
36 00033 { 
37 00034   <span class="comment">// see header file for class documentation</span>
38 00035   <span class="comment">// or</span>
39 00036   <span class="comment">// refer to README to build package</span>
40 00037   <span class="comment">// or</span>
41 00038   <span class="comment">// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt</span>
42 00039 }
43 00040 
44 <a name="l00041"></a><a class="code" href="classAliHLTDataSink.html#a1">00041</a> <a class="code" href="classAliHLTDataSink.html#a1">AliHLTDataSink::~AliHLTDataSink</a>()
45 00042 { 
46 00043   <span class="comment">// see header file for class documentation</span>
47 00044 }
48 00045 
49 <a name="l00046"></a><a class="code" href="classAliHLTDataSink.html#a4">00046</a> <a class="code" href="structAliHLTComponentDataType.html">AliHLTComponentDataType</a> <a class="code" href="classAliHLTDataSink.html#a4">AliHLTDataSink::GetOutputDataType</a>()
50 00047 {
51 00048   <span class="comment">// see header file for class documentation</span>
52 00049   <a class="code" href="structAliHLTComponentDataType.html">AliHLTComponentDataType</a> dt =
53 00050     {<span class="keyword">sizeof</span>(<a class="code" href="structAliHLTComponentDataType.html">AliHLTComponentDataType</a>),
54 00051      kAliHLTVoidDataTypeID,
55 00052      <a class="code" href="AliHLTDataTypes_8h.html#a1">kAliHLTVoidDataOrigin</a>};
56 00053   <span class="keywordflow">return</span> dt;
57 00054 }
58 00055 
59 <a name="l00056"></a><a class="code" href="classAliHLTDataSink.html#a5">00056</a> <span class="keywordtype">void</span> <a class="code" href="classAliHLTDataSink.html#a5">AliHLTDataSink::GetOutputDataSize</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>&amp; constBase, <span class="keywordtype">double</span>&amp; inputMultiplier )
60 00057 {
61 00058   <span class="comment">// see header file for class documentation</span>
62 00059   constBase=0;
63 00060   inputMultiplier=0;
64 00061 }
65 00062 
66 <a name="l00063"></a><a class="code" href="classAliHLTDataSink.html#a2">00063</a> <span class="keywordtype">int</span> <a class="code" href="classAliHLTDataSink.html#a2">AliHLTDataSink::DoProcessing</a>( <span class="keyword">const</span> <a class="code" href="structAliHLTComponentEventData.html">AliHLTComponentEventData</a>&amp; evtData,
67 00064                                   <span class="keyword">const</span> <a class="code" href="structAliHLTComponentBlockData.html">AliHLTComponentBlockData</a>* blocks, 
68 00065                                   <a class="code" href="structAliHLTComponentTriggerData.html">AliHLTComponentTriggerData</a>&amp; trigData,
69 00066                                   AliHLTUInt8_t* outputPtr, 
70 00067                                   AliHLTUInt32_t&amp; size,
71 00068                                   vector&lt;AliHLTComponentBlockData&gt;&amp; outputBlocks,
72 00069                                   <a class="code" href="structAliHLTComponentEventDoneData.html">AliHLTComponentEventDoneData</a>*&amp; edd )
73 00070 {
74 00071   <span class="comment">// see header file for class documentation</span>
75 00072   <span class="keywordtype">int</span> iResult=0;
76 00073   <span class="keywordflow">if</span> (outputPtr==NULL
77 00074       &amp;&amp; size==0 
78 00075       &amp;&amp; edd==NULL) {
79 00076     <span class="comment">// this is currently just to get rid of the warning "unused parameter"</span>
80 00077   }
81 00078   outputBlocks.clear();
82 00079   iResult=<a class="code" href="classAliHLTDataSink.html#d0">DumpEvent</a>(evtData, blocks, trigData);
83 00080   <span class="keywordflow">return</span> iResult;
84 00081 }
85 00082 
86 <a name="l00083"></a><a class="code" href="classAliHLTDataSink.html#d0">00083</a> <span class="keywordtype">int</span> <a class="code" href="classAliHLTDataSink.html#d0">AliHLTDataSink::DumpEvent</a>( <span class="keyword">const</span> <a class="code" href="structAliHLTComponentEventData.html">AliHLTComponentEventData</a>&amp; evtData,
87 00084                                <span class="keyword">const</span> <a class="code" href="structAliHLTComponentBlockData.html">AliHLTComponentBlockData</a>* blocks, 
88 00085                                <a class="code" href="structAliHLTComponentTriggerData.html">AliHLTComponentTriggerData</a>&amp; trigData )
89 00086 {
90 00087   <span class="comment">// we just forward to the high level method, all other parameters already</span>
91 00088   <span class="comment">// have been stored internally</span>
92 00089   <span class="keywordflow">return</span> <a class="code" href="classAliHLTDataSink.html#d0">DumpEvent</a>(evtData, trigData);
93 00090 }
94 00091 
95 <a name="l00092"></a><a class="code" href="classAliHLTDataSink.html#d1">00092</a> <span class="keywordtype">int</span> <a class="code" href="classAliHLTDataSink.html#d0">AliHLTDataSink::DumpEvent</a>( <span class="keyword">const</span> <a class="code" href="structAliHLTComponentEventData.html">AliHLTComponentEventData</a>&amp; evtData, <a class="code" href="structAliHLTComponentTriggerData.html">AliHLTComponentTriggerData</a>&amp; trigData)
96 00093 {
97 00094   <a class="code" href="AliHLTLogging_8h.html#a7">HLTFatal</a>(<span class="stringliteral">"no processing method implemented"</span>);
98 00095   <span class="keywordflow">return</span> -ENOSYS;
99 00096 }
100 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 4 04:49:52 2007 for AliHLTPHOS by&nbsp;
101 <a href="http://www.doxygen.org/index.html">
102 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
103 </body>
104 </html>