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">
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>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>
23 00016 <span class="preprocessor">#include "<a class="code" href="AliHLTPHOSRawAnalyzerCrude_8h.html">AliHLTPHOSRawAnalyzerCrude.h</a>"</span>
24 00017 <span class="preprocessor">#include <iostream></span>
26 00019 <span class="keyword">using</span> std::cout;
27 00020 <span class="keyword">using</span> std::endl;
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>)
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>&):<a class="code" href="classAliHLTPHOSRawAnalyzer.html">AliHLTPHOSRawAnalyzer</a>()
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>()
39 00038 <span class="comment">// cout <<"AliHLTPHOSRawAnalyzerCrude::Creating a new AliHLTPHOSRawAnalyzerCrude() object "<<endl;</span>
44 <a name="l00043"></a><a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html#AliHLTPHOSRawAnalyzerCrudea3">00043</a> <a class="code" href="classAliHLTPHOSRawAnalyzerCrude.html#AliHLTPHOSRawAnalyzerCrudea3">AliHLTPHOSRawAnalyzerCrude::~AliHLTPHOSRawAnalyzerCrude</a>()
47 00046 } <span class="comment">//end AliHLTPHOSRawAnalyzerCrude</span>
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)
54 00066 <span class="comment">// printf("\nAliHLTPHOSRawAnalyzerCrude::Evaluat() from index %d to %d\n", start, start + length);</span>
57 00069 <span class="keywordtype">double</span> tmpAmplitudeMax =0;
58 00070 <span class="keywordtype">double</span> tmpTime = 0;
60 00072 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=start; i<length; i++)
62 00074 <span class="keywordflow">if</span>(fFloatDataPtr[i] > tmpAmplitudeMax)
64 00076 tmpAmplitudeMax = fFloatDataPtr[i];
69 00081 fDAmpl = tmpAmplitudeMax;
70 00082 fDTof = tmpTime;
72 00084 <span class="comment">//thats all </span>
73 00085 } <span class="comment">//end Crude</span>
80 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Feb 18 22:17:03 2007 for AliHLTPHOS by
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>