]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/html/AliHLTPHOSRawAnalyzerCrude_8cxx-source.html
New documenation:wq
[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   <span class="comment">//  cout &lt;&lt;"AliHLTPHOSRawAnalyzerCrude::Creating a new AliHLTPHOSRawAnalyzerCrude() object "&lt;&lt;endl;</span>
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   <span class="comment">//  printf("\nAliHLTPHOSRawAnalyzerCrude::Evaluat() from index %d to %d\n", start, start + length);</span>
55 00067   
56 00068   
57 00069   <span class="keywordtype">double</span> tmpAmplitudeMax =0; 
58 00070   <span class="keywordtype">double</span> tmpTime = 0;
59 00071 
60 00072   <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=start; i&lt;length; i++)
61 00073     {
62 00074       <span class="keywordflow">if</span>(fFloatDataPtr[i] &gt;  tmpAmplitudeMax)
63 00075         {
64 00076           tmpAmplitudeMax = fFloatDataPtr[i];
65 00077           tmpTime = i;               
66 00078         }
67 00079     }
68 00080         
69 00081   fDAmpl = tmpAmplitudeMax;
70 00082   fDTof =  tmpTime;
71 00083  
72 00084   <span class="comment">//thats all </span>
73 00085 } <span class="comment">//end Crude</span>
74 00086 
75 00087 
76 00088 
77 00089 
78 00090 
79 00091 
80 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Feb 18 22:17:03 2007 for AliHLTPHOS by&nbsp;
81 <a href="http://www.doxygen.org/index.html">
82 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
83 </body>
84 </html>