]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/html/AliHLTPHOSRawAnalyzerCrude_8cxx-source.html
Added source code to the hrml documentation
[u/mrichter/AliRoot.git] / HLT / PHOS / html / AliHLTPHOSRawAnalyzerCrude_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: AliHLTPHOSRawAnalyzerCrude.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>AliHLTPHOSRawAnalyzerCrude.cxx</h1><a href="AliHLTPHOSRawAnalyzerCrude_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="AliHLTPHOSRawAnalyzerCrude_8h.html">AliHLTPHOSRawAnalyzerCrude.h</a>"</span>
24 00017 <span class="preprocessor">#include &lt;iostream&gt;</span>
25 00018 
26 00019 <span class="keyword">using</span> std::cout;
27 00020 <span class="keyword">using</span> std::endl;
28 00021 
29 <a name="l00022"></a><a class="code" href="AliHLTPHOSRawAnalyzerCrude_8cxx.html#a0">00022</a> <a class="code" href="AliHLTPHOSRawAnalyzerPeakFinder_8cxx.html#a0">ClassImp</a>(<a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html">AliHLTPHOSRawAnalyzerCrude</a>) 
30 00023 
31 00024 
32 00025 <a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html">AliHLTPHOSRawAnalyzerCrude</a>::<a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html">AliHLTPHOSRawAnalyzerCrude</a>(const <a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html">AliHLTPHOSRawAnalyzerCrude</a>&amp;):<a class="code" href="classAliHLTPHOSRawAnalyzer.html">AliHLTPHOSRawAnalyzer</a>()
33 00026 {
34 00027 
35 00028 }
36 00029 
37 <a name="l00036"></a><a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html#AliHLTPHOSRawAnalyzerCrudea0">00036</a> <a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html#AliHLTPHOSRawAnalyzerCrudea0">AliHLTPHOSRawAnalyzerCrude::AliHLTPHOSRawAnalyzerCrude</a>():<a class="code" href="classAliHLTPHOSRawAnalyzer.html">AliHLTPHOSRawAnalyzer</a>() 
38 00037 {
39 00038   cout &lt;&lt;<span class="stringliteral">"AliHLTPHOSRawAnalyzerCrude::Creating a new AliHLTPHOSRawAnalyzerCrude() object "</span>&lt;&lt;endl;
40 00039 }
41 00040 
42 00041 
43 00042 
44 <a name="l00043"></a><a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html#AliHLTPHOSRawAnalyzerCrudea3">00043</a> <a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html#AliHLTPHOSRawAnalyzerCrudea3">AliHLTPHOSRawAnalyzerCrude::~AliHLTPHOSRawAnalyzerCrude</a>()
45 00044 {
46 00045 
47 00046 } <span class="comment">//end AliHLTPHOSRawAnalyzerCrude</span>
48 00047 
49 00048 
50 00049 
51 00063 <span class="keywordtype">void</span> 
52 <a name="l00064"></a><a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html#AliHLTPHOSRawAnalyzerCrudea4">00064</a> <a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html#AliHLTPHOSRawAnalyzerCrudea4">AliHLTPHOSRawAnalyzerCrude::Evaluate</a>(<span class="keywordtype">int</span> start, <span class="keywordtype">int</span> length)
53 00065 {
54 00066   
55 00067   <span class="keywordtype">double</span> tmpAmplitudeMax =0; 
56 00068   <span class="keywordtype">double</span> tmpTime = 0;
57 00069 
58 00070   <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=start; i&lt;length; i++)
59 00071     {
60 00072       <span class="keywordflow">if</span>(fFloatDataPtr[i] &gt;  tmpAmplitudeMax)
61 00073         {
62 00074           tmpAmplitudeMax = fFloatDataPtr[i];
63 00075           tmpTime = i;               
64 00076         }
65 00077     }
66 00078         
67 00079   fDAmpl = tmpAmplitudeMax;
68 00080   fDTof =  tmpTime;
69 00081   <span class="comment">//thats all </span>
70 00082 } <span class="comment">//end Crude</span>
71 00083 
72 00084 
73 00085 
74 00086 
75 00087 
76 00088 
77 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Jan 17 21:56:43 2007 for AliHLTPHOS by&nbsp;
78 <a href="http://www.doxygen.org/index.html">
79 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
80 </body>
81 </html>