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: TofCuts/TofNucleiZCut/TofNucleiZCut.h 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>TofCuts/TofNucleiZCut/TofNucleiZCut.h</h1><a href="TofNucleiZCut_8h.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"> * TofNucleiZCut.h</span> |
24 |
<a name="l00003"></a>00003 <span class="comment"> *</span> |
25 |
<a name="l00004"></a>00004 <span class="comment"> * Created on: 21-apr-2009</span> |
26 |
<a name="l00005"></a>00005 <span class="comment"> * Author: 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">#ifndef NO_TOFNUCLEI</span> |
30 |
<a name="l00011"></a>00011 <span class="preprocessor"></span> |
31 |
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef TOFNUCLEIZCUT_H_</span> |
32 |
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define TOFNUCLEIZCUT_H_</span> |
33 |
<a name="l00014"></a>00014 <span class="preprocessor"></span> |
34 |
<a name="l00015"></a>00015 <span class="preprocessor">#include "../../PamCutBase/PamCutBase.h"</span> |
35 |
<a name="l00016"></a>00016 <span class="preprocessor">#include <ToFNuclei.h></span> |
36 |
<a name="l00017"></a>00017 |
37 |
<a name="l00018"></a>00018 <span class="preprocessor">#ifdef DEBUGPAMCUT</span> |
38 |
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#include <TH2F.h></span> |
39 |
<a name="l00020"></a>00020 <span class="preprocessor">#endif</span> |
40 |
<a name="l00021"></a>00021 <span class="preprocessor"></span> |
41 |
<a name="l00023"></a><a class="code" href="TofNucleiZCut_8h.html#7cbf6ce6906f1524de86f3d84f23aa54">00023</a> <span class="keyword">enum</span> <a class="code" href="TofNucleiZCut_8h.html#7cbf6ce6906f1524de86f3d84f23aa54">TofNucleiZ_Return</a> { |
42 |
<a name="l00024"></a><a class="code" href="TofNucleiZCut_8h.html#7cbf6ce6906f1524de86f3d84f23aa54ef9ad5021a1b83dd6a53eb225044d7c6">00024</a> <a class="code" href="TofNucleiZCut_8h.html#7cbf6ce6906f1524de86f3d84f23aa54ef9ad5021a1b83dd6a53eb225044d7c6" title="Discarded because charge is out of bounds in a layer.">TOFNUCLEIZ_OUTOFBOUNDS</a>, |
43 |
<a name="l00025"></a><a class="code" href="TofNucleiZCut_8h.html#7cbf6ce6906f1524de86f3d84f23aa54179c0935201f5d6ac6d7f00ebd1e959c">00025</a> <a class="code" href="TofNucleiZCut_8h.html#7cbf6ce6906f1524de86f3d84f23aa54179c0935201f5d6ac6d7f00ebd1e959c" title="Discarded because charge can be measured in too few layers.">TOFNUCLEIZ_TOOFEWLAYERS</a>, |
44 |
<a name="l00026"></a><a class="code" href="TofNucleiZCut_8h.html#7cbf6ce6906f1524de86f3d84f23aa54f09f54efe798d0a77429385071fc64fe">00026</a> <a class="code" href="TofNucleiZCut_8h.html#7cbf6ce6906f1524de86f3d84f23aa54f09f54efe798d0a77429385071fc64fe" title="Discarded because charge is not between 1 and 8.">TOFNUCLEIZ_ILLEGALZ</a> |
45 |
<a name="l00028"></a>00028 }; |
46 |
<a name="l00029"></a>00029 |
47 |
<a name="l00031"></a><a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a">00031</a> <span class="keyword">enum</span> <a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a">TofNucleiZ_Layers</a> { |
48 |
<a name="l00032"></a><a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a9f207c4c51713cc11b8a8040caa150c5">00032</a> <a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a9f207c4c51713cc11b8a8040caa150c5" title="S11.">TOFNUCLEIZ_S11</a> = 1, |
49 |
<a name="l00033"></a><a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a51c80f879c6c303b029c1198bd36dfa9">00033</a> <a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a51c80f879c6c303b029c1198bd36dfa9" title="S12.">TOFNUCLEIZ_S12</a> = 2, |
50 |
<a name="l00034"></a><a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a7502fcae3146992720651315bc8c477f">00034</a> <a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a7502fcae3146992720651315bc8c477f" title="S21.">TOFNUCLEIZ_S21</a> = 4, |
51 |
<a name="l00035"></a><a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204aa19e694ccfcf5d719221b3c182db460f">00035</a> <a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204aa19e694ccfcf5d719221b3c182db460f" title="S22.">TOFNUCLEIZ_S22</a> = 8, |
52 |
<a name="l00036"></a><a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a5f2d7e3b31610f8c9265aac5603803a5">00036</a> <a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a5f2d7e3b31610f8c9265aac5603803a5" title="S31.">TOFNUCLEIZ_S31</a> = 16, |
53 |
<a name="l00037"></a><a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a6009fe0dd60a524c817c0ce5dfc8aeeb">00037</a> <a class="code" href="TofNucleiZCut_8h.html#2d58b1b799df7d79374ed3ab6cbd204a6009fe0dd60a524c817c0ce5dfc8aeeb" title="S32.">TOFNUCLEIZ_S32</a> = 32 |
54 |
<a name="l00039"></a>00039 }; |
55 |
<a name="l00040"></a>00040 |
56 |
<a name="l00047"></a><a class="code" href="classTofNucleiZCut.html">00047</a> <span class="keyword">class </span><a class="code" href="classTofNucleiZCut.html" title="The TofNuclei charge cut.">TofNucleiZCut</a>: <span class="keyword">public</span> <a class="code" href="classPamCut.html" title="An abstract class to apply cuts to Pamela data.">PamCut</a> { |
57 |
<a name="l00048"></a>00048 |
58 |
<a name="l00049"></a>00049 <span class="keyword">public</span>: |
59 |
<a name="l00063"></a>00063 <a class="code" href="classTofNucleiZCut.html#0da6346342abf76e1dd481360ccccde8" title="Constructor.">TofNucleiZCut</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *cutName, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> Z, <span class="keywordtype">float</span> lowerLimit, <span class="keywordtype">float</span> upperLimit, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> minLayers = 6, |
60 |
<a name="l00064"></a>00064 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> layersMask = 0); |
61 |
<a name="l00065"></a>00065 |
62 |
<a name="l00067"></a><a class="code" href="classTofNucleiZCut.html#330057cb64fc666c1338200753f4bc03">00067</a> <a class="code" href="classTofNucleiZCut.html#330057cb64fc666c1338200753f4bc03" title="Destructor.">~TofNucleiZCut</a>() { |
63 |
<a name="l00068"></a>00068 <span class="keyword">delete</span> _tofNuclei; |
64 |
<a name="l00069"></a>00069 |
65 |
<a name="l00070"></a>00070 <span class="preprocessor">#ifdef DEBUGPAMCUT</span> |
66 |
<a name="l00071"></a>00071 <span class="preprocessor"></span> |
67 |
<a name="l00072"></a>00072 <span class="keywordflow">for</span> (UInt_t j = 0; j < 12; j++) { |
68 |
<a name="l00073"></a>00073 h_tof_z_beta[j]->Write(); |
69 |
<a name="l00074"></a>00074 } |
70 |
<a name="l00075"></a>00075 |
71 |
<a name="l00076"></a>00076 <span class="preprocessor">#endif</span> |
72 |
<a name="l00077"></a>00077 <span class="preprocessor"></span> |
73 |
<a name="l00078"></a>00078 } |
74 |
<a name="l00079"></a>00079 |
75 |
<a name="l00131"></a>00131 <span class="keywordtype">int</span> <a class="code" href="classTofNucleiZCut.html#86aa8211e4afee39ff38080347bf651d" title="The TofNucleiZ check.">Check</a>(PamLevel2 *event); |
76 |
<a name="l00132"></a>00132 |
77 |
<a name="l00133"></a>00133 <span class="keyword">private</span>: |
78 |
<a name="l00134"></a>00134 |
79 |
<a name="l00135"></a>00135 <span class="preprocessor">#ifdef DEBUGPAMCUT</span> |
80 |
<a name="l00136"></a>00136 <span class="preprocessor"></span> |
81 |
<a name="l00137"></a>00137 TH2F* h_tof_z_beta[12]; |
82 |
<a name="l00138"></a>00138 |
83 |
<a name="l00139"></a>00139 <span class="preprocessor">#endif</span> |
84 |
<a name="l00140"></a>00140 <span class="preprocessor"></span> |
85 |
<a name="l00141"></a>00141 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _Z; |
86 |
<a name="l00142"></a>00142 <a class="code" href="classSimpleMatrix.html">SimpleMatrix<float></a> _mean; <span class="comment">// Index structure: [Z-1][layer]</span> |
87 |
<a name="l00143"></a>00143 <a class="code" href="classSimpleMatrix.html">SimpleMatrix<float></a> _sigma; <span class="comment">// Index structure: [Z-1][layer]</span> |
88 |
<a name="l00144"></a>00144 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> _sigmaZdefault[8]; |
89 |
<a name="l00145"></a>00145 |
90 |
<a name="l00146"></a>00146 <span class="keywordtype">float</span> _lowerLimit; |
91 |
<a name="l00147"></a>00147 <span class="keywordtype">float</span> _upperLimit; |
92 |
<a name="l00148"></a>00148 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _minLayers; |
93 |
<a name="l00149"></a>00149 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _layersMask; |
94 |
<a name="l00150"></a>00150 |
95 |
<a name="l00151"></a>00151 ToFNuclei *_tofNuclei; |
96 |
<a name="l00152"></a>00152 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _maskArray[6]; |
97 |
<a name="l00153"></a>00153 |
98 |
<a name="l00154"></a>00154 }; |
99 |
<a name="l00155"></a>00155 |
100 |
<a name="l00156"></a>00156 <span class="preprocessor">#endif </span><span class="comment">/* TOFNUCLEIZCUT_H_ */</span> |
101 |
<a name="l00157"></a>00157 |
102 |
<a name="l00158"></a>00158 <span class="preprocessor">#endif </span><span class="comment">/* NO_TOFNUCLEI */</span> |
103 |
</pre></div></div> |
104 |
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 5 15:08:58 2009 for PamCut by |
105 |
<a href="http://www.doxygen.org/index.html"> |
106 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
107 |
</body> |
108 |
</html> |