| 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/CaloNotIntCut/CaloNotIntCut.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 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 List</span></a></li> |
| 19 |
|
|
<li><a href="globals.html"><span>File Members</span></a></li> |
| 20 |
|
|
</ul> |
| 21 |
|
|
</div> |
| 22 |
|
|
<h1>CaloCuts/CaloNotIntCut/CaloNotIntCut.cpp</h1><a href="CaloNotIntCut_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"> * CaloNotIntCut.cpp</span> |
| 24 |
|
|
<a name="l00003"></a>00003 <span class="comment"> * Created on: 17-mar-2009</span> |
| 25 |
|
|
<a name="l00004"></a>00004 <span class="comment"> * Author: Sergio Ricciarini, Nicola Mori</span> |
| 26 |
|
|
<a name="l00005"></a>00005 <span class="comment"> */</span> |
| 27 |
|
|
<a name="l00006"></a>00006 |
| 28 |
|
|
<a name="l00009"></a>00009 <span class="preprocessor">#include "<a class="code" href="CaloNotIntCut_8h.html">CaloNotIntCut.h</a>"</span> |
| 29 |
|
|
<a name="l00010"></a>00010 |
| 30 |
|
|
<a name="l00011"></a><a class="code" href="classCaloNotIntCut.html#b2b6fd2f100cc967156633edf18a346a">00011</a> <span class="keywordtype">int</span> <a class="code" href="classCaloNotIntCut.html#b2b6fd2f100cc967156633edf18a346a" title="The non-interacting track check.">CaloNotIntCut::Check</a>(PamLevel2 *event) { |
| 31 |
|
|
<a name="l00012"></a>00012 |
| 32 |
|
|
<a name="l00013"></a>00013 <span class="keywordflow">if</span> ( (!(<a class="code" href="classCaloNotIntCut.html#1f4d19a651a1a4836660e2c6ddbe0b2d">_xCaloAxis</a>) || !(<a class="code" href="classCaloNotIntCut.html#dbbdf191676bab6cca8ab7290f9854d1">_yCaloAxis</a>)) && !(<a class="code" href="classCaloNotIntCut.html#cb99247b622e5802a28a8380bdcd43af">_trkTrack</a>) ) { <span class="comment">// check that one of the two possible initializations has been correctly done</span> |
| 33 |
|
|
<a name="l00014"></a>00014 <span class="keywordflow">return</span> 0; |
| 34 |
|
|
<a name="l00015"></a>00015 } |
| 35 |
|
|
<a name="l00016"></a>00016 |
| 36 |
|
|
<a name="l00017"></a>00017 <span class="keywordflow">if</span> (!(<a class="code" href="classCaloNotIntCut.html#cb99247b622e5802a28a8380bdcd43af">_trkTrack</a>)) { <span class="comment">// CALO track</span> |
| 37 |
|
|
<a name="l00018"></a>00018 |
| 38 |
|
|
<a name="l00019"></a>00019 <span class="comment">// energy released along the event axis in the calo / total energy release in the calo</span> |
| 39 |
|
|
<a name="l00020"></a>00020 |
| 40 |
|
|
<a name="l00021"></a>00021 <span class="keywordtype">float</span> qratio = ( <a class="code" href="classCaloNotIntCut.html#1f4d19a651a1a4836660e2c6ddbe0b2d">_xCaloAxis</a>-><a class="code" href="classCaloAxis.html#0d817c015af5b772b4a0944aa3dbf696">GetQaxis</a>() + <a class="code" href="classCaloNotIntCut.html#dbbdf191676bab6cca8ab7290f9854d1">_yCaloAxis</a>-><a class="code" href="classCaloAxis.html#0d817c015af5b772b4a0944aa3dbf696">GetQaxis</a>() ) / event->GetCaloLevel2()->qtot; |
| 41 |
|
|
<a name="l00022"></a>00022 |
| 42 |
|
|
<a name="l00023"></a>00023 <span class="keywordflow">if</span> (! (qratio > <a class="code" href="classCaloNotIntCut.html#2104387c4fa175f209e5211986c77f99">_qRatioMin</a>) ) { |
| 43 |
|
|
<a name="l00024"></a>00024 <span class="keywordflow">return</span> 1; |
| 44 |
|
|
<a name="l00025"></a>00025 } |
| 45 |
|
|
<a name="l00026"></a>00026 |
| 46 |
|
|
<a name="l00027"></a>00027 } |
| 47 |
|
|
<a name="l00028"></a>00028 |
| 48 |
|
|
<a name="l00029"></a>00029 <span class="keywordflow">if</span> (<a class="code" href="classCaloNotIntCut.html#cb99247b622e5802a28a8380bdcd43af">_trkTrack</a>) { <span class="comment">// TRK track</span> |
| 49 |
|
|
<a name="l00030"></a>00030 |
| 50 |
|
|
<a name="l00031"></a>00031 <span class="keywordflow">return</span> 2; <span class="comment">// temporary</span> |
| 51 |
|
|
<a name="l00032"></a>00032 <span class="comment">// Implement here the check using the tracker track.</span> |
| 52 |
|
|
<a name="l00033"></a>00033 |
| 53 |
|
|
<a name="l00034"></a>00034 } |
| 54 |
|
|
<a name="l00035"></a>00035 |
| 55 |
|
|
<a name="l00036"></a>00036 <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>; |
| 56 |
|
|
<a name="l00037"></a>00037 |
| 57 |
|
|
<a name="l00038"></a>00038 } |
| 58 |
|
|
</pre></div></div> |
| 59 |
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Wed May 27 15:21:27 2009 for PamCut by |
| 60 |
|
|
<a href="http://www.doxygen.org/index.html"> |
| 61 |
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
| 62 |
|
|
</body> |
| 63 |
|
|
</html> |