/[PAMELA software]/PamCut/doc/Doxygen/html/CaloTrackCut_8cpp_source.html
ViewVC logotype

Annotation of /PamCut/doc/Doxygen/html/CaloTrackCut_8cpp_source.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download) (as text)
Fri Sep 25 15:41:21 2009 UTC (15 years, 7 months ago) by pam-fi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/html
FILE REMOVED
Removed from repository.

1 pam-fi 1.1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2     <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3     <title>PamCut: CaloCuts/CaloTrackCut/CaloTrackCut.cpp Source File</title>
4     <link href="tabs.css" rel="stylesheet" type="text/css">
5     <link href="doxygen.css" rel="stylesheet" type="text/css">
6     </head><body>
7     <!-- Generated by Doxygen 1.5.9 -->
8     <div class="navigation" id="top">
9     <div class="tabs">
10     <ul>
11     <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12     <li><a href="annotated.html"><span>Classes</span></a></li>
13     <li class="current"><a href="files.html"><span>Files</span></a></li>
14     </ul>
15     </div>
16     <div class="tabs">
17     <ul>
18     <li><a href="files.html"><span>File&nbsp;List</span></a></li>
19     <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
20     </ul>
21     </div>
22     <h1>CaloCuts/CaloTrackCut/CaloTrackCut.cpp</h1><a href="CaloTrackCut_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
23     <a name="l00002"></a>00002 <span class="comment"> * CaloTrackCut.cpp</span>
24     <a name="l00003"></a>00003 <span class="comment"> *</span>
25     <a name="l00004"></a>00004 <span class="comment"> * Created on: 17-mar-2009</span>
26     <a name="l00005"></a>00005 <span class="comment"> * Author: Sergio Ricciarini, Nicola Mori</span>
27     <a name="l00006"></a>00006 <span class="comment"> */</span>
28     <a name="l00007"></a>00007
29     <a name="l00010"></a>00010 <span class="preprocessor">#include "<a class="code" href="CaloTrackCut_8h.html">CaloTrackCut.h</a>"</span>
30     <a name="l00011"></a>00011
31     <a name="l00012"></a>00012
32     <a name="l00013"></a><a class="code" href="classCaloTrackCut.html#c4b3a9ed9d0436a1cbedb49286ff62f0">00013</a> <span class="keywordtype">int</span> <a class="code" href="classCaloTrackCut.html#c4b3a9ed9d0436a1cbedb49286ff62f0" title="The calorimeter track check.">CaloTrackCut::Check</a>(PamLevel2 *event) {
33     <a name="l00014"></a>00014
34     <a name="l00015"></a>00015 <span class="comment">// NOTE: FitAxis(L1 calo tree, axis, tolerance) method finds the X (Y) axis projection of the track into the calorimeter, by excluding clusters which are far away from the main X (Y) clustering area</span>
35     <a name="l00016"></a>00016 <span class="comment">// NOTE: axis=0 =&gt; X, axis=1 =&gt; Y; tolerance in cm</span>
36     <a name="l00017"></a>00017
37     <a name="l00018"></a>00018 <span class="keywordtype">float</span> rcil = 1.; <span class="comment">// tolerance (cm)</span>
38     <a name="l00019"></a>00019 <a class="code" href="classCaloTrackCut.html#d3438239ee6bdd0d96708d360ad1164f" title="The CaloAxis objects for the last track. These objects stores information about the...">xCaloAxis</a>.<a class="code" href="classCaloAxis.html#a1b225fccc498fdf49c415497d405eac">Reset</a>();
39     <a name="l00020"></a>00020 <a class="code" href="classCaloTrackCut.html#502919966d898a3b62cc6315e386258a">yCaloAxis</a>.<a class="code" href="classCaloAxis.html#a1b225fccc498fdf49c415497d405eac">Reset</a>();
40     <a name="l00021"></a>00021
41     <a name="l00022"></a>00022 <span class="keywordflow">if</span> ( !(<a class="code" href="classCaloTrackCut.html#d3438239ee6bdd0d96708d360ad1164f" title="The CaloAxis objects for the last track. These objects stores information about the...">xCaloAxis</a>.<a class="code" href="classCaloAxis.html#768db65112c0f2ecc7b0561772004e0f">FitAxis</a>(event-&gt;GetCaloLevel1(), 0, rcil) ) || !(<a class="code" href="classCaloTrackCut.html#502919966d898a3b62cc6315e386258a">yCaloAxis</a>.<a class="code" href="classCaloAxis.html#768db65112c0f2ecc7b0561772004e0f">FitAxis</a>(event-&gt;GetCaloLevel1(), 1, rcil) ) ) {
42     <a name="l00023"></a>00023 <span class="keywordflow">return</span> 0;
43     <a name="l00024"></a>00024 }
44     <a name="l00025"></a>00025
45     <a name="l00026"></a>00026 <span class="comment">// NOTE: chi2 must be positive for the track to be meaningful</span>
46     <a name="l00027"></a>00027 <span class="keywordflow">if</span> ( !(<a class="code" href="classCaloTrackCut.html#d3438239ee6bdd0d96708d360ad1164f" title="The CaloAxis objects for the last track. These objects stores information about the...">xCaloAxis</a>.<a class="code" href="classCaloAxis.html#cd5c771ea0ead8eb2428118551358eb0">GetChi2</a>() &gt; 0 ) || !(<a class="code" href="classCaloTrackCut.html#502919966d898a3b62cc6315e386258a">yCaloAxis</a>.<a class="code" href="classCaloAxis.html#cd5c771ea0ead8eb2428118551358eb0">GetChi2</a>() &gt; 0) ) {
47     <a name="l00028"></a>00028 <span class="keywordflow">return</span> 0; <span class="comment">// check that the track is meaningful</span>
48     <a name="l00029"></a>00029 }
49     <a name="l00030"></a>00030
50     <a name="l00031"></a>00031 <span class="keywordflow">return</span> <a class="code" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c" title="The implementations of PamCut::Check() must return this value if the event satisfy...">CUTOK</a>;
51     <a name="l00032"></a>00032 }
52     </pre></div></div>
53     <hr size="1"><address style="text-align: right;"><small>Generated on Wed May 27 15:21:27 2009 for PamCut by&nbsp;
54     <a href="http://www.doxygen.org/index.html">
55     <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
56     </body>
57     </html>

  ViewVC Help
Powered by ViewVC 1.1.23