| 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: TofPatternCut Class Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li> |
| 13 |
|
|
<li><a href="files.html"><span>Files</span></a></li> |
| 14 |
|
|
</ul> |
| 15 |
|
|
</div> |
| 16 |
|
|
<div class="tabs"> |
| 17 |
|
|
<ul> |
| 18 |
|
|
<li><a href="annotated.html"><span>Class List</span></a></li> |
| 19 |
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
| 20 |
|
|
<li><a href="functions.html"><span>Class Members</span></a></li> |
| 21 |
|
|
</ul> |
| 22 |
|
|
</div> |
| 23 |
|
|
</div> |
| 24 |
|
|
<div class="contents"> |
| 25 |
|
|
<h1>TofPatternCut Class Reference</h1><!-- doxytag: class="TofPatternCut" --><!-- doxytag: inherits="PamCut" -->The Tof-pattern cut. |
| 26 |
|
|
<a href="#_details">More...</a> |
| 27 |
|
|
<p> |
| 28 |
|
|
<code>#include <<a class="el" href="TofPatternCut_8h_source.html">TofPatternCut.h</a>></code> |
| 29 |
|
|
<p> |
| 30 |
|
|
<div class="dynheader"> |
| 31 |
|
|
Inheritance diagram for TofPatternCut:</div> |
| 32 |
|
|
<div class="dynsection"> |
| 33 |
|
|
|
| 34 |
|
|
<p><center><img src="classTofPatternCut.png" usemap="#TofPatternCut_map" border="0" alt=""></center> |
| 35 |
|
|
<map name="TofPatternCut_map"> |
| 36 |
|
|
<area href="classPamCut.html" alt="PamCut" shape="rect" coords="0,0,89,24"> |
| 37 |
|
|
</map> |
| 38 |
|
|
</div> |
| 39 |
|
|
|
| 40 |
|
|
<p> |
| 41 |
|
|
<a href="classTofPatternCut-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
| 42 |
|
|
<tr><td></td></tr> |
| 43 |
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
| 44 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTofPatternCut.html#5cf2ebf9ca7566342f3d66f54ab94eb6">TofPatternCut</a> (const char *cutName)</td></tr> |
| 45 |
|
|
|
| 46 |
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#5cf2ebf9ca7566342f3d66f54ab94eb6"></a><br></td></tr> |
| 47 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTofPatternCut.html#a94b0405411dd9b6f04c7a83af64c120">~TofPatternCut</a> ()</td></tr> |
| 48 |
|
|
|
| 49 |
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a94b0405411dd9b6f04c7a83af64c120"></a><br></td></tr> |
| 50 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classTofPatternCut.html#b960628bc87a72be3c8aedab6b036dce">Check</a> (PamLevel2 *event)</td></tr> |
| 51 |
|
|
|
| 52 |
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The ToF-pattern check. <a href="#b960628bc87a72be3c8aedab6b036dce"></a><br></td></tr> |
| 53 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classTofPatternCut.html#2f9755367321e7f86f862506865f260c">GetNHitPMTsOutsideTrack</a> (PamLevel2 *event, int plane)</td></tr> |
| 54 |
|
|
|
| 55 |
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Counts the number of hit PMTs (with tdc signal) outside track. <a href="#2f9755367321e7f86f862506865f260c"></a><br></td></tr> |
| 56 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTofPatternCut.html#f80259c2dd81a57a9d7cf2b651d0300e">SetStandalone</a> (int yes)</td></tr> |
| 57 |
|
|
|
| 58 |
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set standalone ToF track. <a href="#f80259c2dd81a57a9d7cf2b651d0300e"></a><br></td></tr> |
| 59 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTofPatternCut.html#573d063e2149ad14c831fe28c6df8542">SetTrackNumber</a> (int n)</td></tr> |
| 60 |
|
|
|
| 61 |
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set (physical) track number (0,1,...). Default is 0 (the first). <a href="#573d063e2149ad14c831fe28c6df8542"></a><br></td></tr> |
| 62 |
|
|
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr> |
| 63 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classTofPatternCut.html#28f5094cd7898788d4e490e75384b538">_standalone</a></td></tr> |
| 64 |
|
|
|
| 65 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classTofPatternCut.html#9c8d4ac314f4f3a0b62fae04ecc32fd7">_notrk</a></td></tr> |
| 66 |
|
|
|
| 67 |
|
|
</table> |
| 68 |
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2> |
| 69 |
|
|
The Tof-pattern cut. |
| 70 |
|
|
<p> |
| 71 |
|
|
Requirements:<ul> |
| 72 |
|
|
<li>not more than 1 hit paddle on S11 S12 S21 S22;</li><li>at least 1 hit paddle on S1 and S2;</li><li>not more than 3 hit PMTs (only TDC hits with tdc<4095) outside track; on S11 and S12;</li><li>if there is a hit paddle, the PMTs (TDC hits) must be associated to the track;</li><li>if no PMTs (TDC hits) are associated to the track, there must be no hit paddles. </li></ul> |
| 73 |
|
|
|
| 74 |
|
|
<p>Definition at line <a class="el" href="TofPatternCut_8h_source.html#l00025">25</a> of file <a class="el" href="TofPatternCut_8h_source.html">TofPatternCut.h</a>.</p> |
| 75 |
|
|
<hr><h2>Constructor & Destructor Documentation</h2> |
| 76 |
|
|
<a class="anchor" name="5cf2ebf9ca7566342f3d66f54ab94eb6"></a><!-- doxytag: member="TofPatternCut::TofPatternCut" ref="5cf2ebf9ca7566342f3d66f54ab94eb6" args="(const char *cutName)" --> |
| 77 |
|
|
<div class="memitem"> |
| 78 |
|
|
<div class="memproto"> |
| 79 |
|
|
<table class="memname"> |
| 80 |
|
|
<tr> |
| 81 |
|
|
<td class="memname">TofPatternCut::TofPatternCut </td> |
| 82 |
|
|
<td>(</td> |
| 83 |
|
|
<td class="paramtype">const char * </td> |
| 84 |
|
|
<td class="paramname"> <em>cutName</em> </td> |
| 85 |
|
|
<td> ) </td> |
| 86 |
|
|
<td><code> [inline]</code></td> |
| 87 |
|
|
</tr> |
| 88 |
|
|
</table> |
| 89 |
|
|
</div> |
| 90 |
|
|
<div class="memdoc"> |
| 91 |
|
|
|
| 92 |
|
|
<p> |
| 93 |
|
|
Constructor. |
| 94 |
|
|
<p> |
| 95 |
|
|
|
| 96 |
|
|
<p>Definition at line <a class="el" href="TofPatternCut_8h_source.html#l00029">29</a> of file <a class="el" href="TofPatternCut_8h_source.html">TofPatternCut.h</a>.</p> |
| 97 |
|
|
|
| 98 |
|
|
</div> |
| 99 |
|
|
</div><p> |
| 100 |
|
|
<a class="anchor" name="a94b0405411dd9b6f04c7a83af64c120"></a><!-- doxytag: member="TofPatternCut::~TofPatternCut" ref="a94b0405411dd9b6f04c7a83af64c120" args="()" --> |
| 101 |
|
|
<div class="memitem"> |
| 102 |
|
|
<div class="memproto"> |
| 103 |
|
|
<table class="memname"> |
| 104 |
|
|
<tr> |
| 105 |
|
|
<td class="memname">TofPatternCut::~TofPatternCut </td> |
| 106 |
|
|
<td>(</td> |
| 107 |
|
|
<td class="paramname"> </td> |
| 108 |
|
|
<td> ) </td> |
| 109 |
|
|
<td><code> [inline]</code></td> |
| 110 |
|
|
</tr> |
| 111 |
|
|
</table> |
| 112 |
|
|
</div> |
| 113 |
|
|
<div class="memdoc"> |
| 114 |
|
|
|
| 115 |
|
|
<p> |
| 116 |
|
|
Destructor. |
| 117 |
|
|
<p> |
| 118 |
|
|
|
| 119 |
|
|
<p>Definition at line <a class="el" href="TofPatternCut_8h_source.html#l00033">33</a> of file <a class="el" href="TofPatternCut_8h_source.html">TofPatternCut.h</a>.</p> |
| 120 |
|
|
|
| 121 |
|
|
</div> |
| 122 |
|
|
</div><p> |
| 123 |
|
|
<hr><h2>Member Function Documentation</h2> |
| 124 |
|
|
<a class="anchor" name="b960628bc87a72be3c8aedab6b036dce"></a><!-- doxytag: member="TofPatternCut::Check" ref="b960628bc87a72be3c8aedab6b036dce" args="(PamLevel2 *event)" --> |
| 125 |
|
|
<div class="memitem"> |
| 126 |
|
|
<div class="memproto"> |
| 127 |
|
|
<table class="memname"> |
| 128 |
|
|
<tr> |
| 129 |
|
|
<td class="memname">int TofPatternCut::Check </td> |
| 130 |
|
|
<td>(</td> |
| 131 |
|
|
<td class="paramtype">PamLevel2 * </td> |
| 132 |
|
|
<td class="paramname"> <em>event</em> </td> |
| 133 |
|
|
<td> ) </td> |
| 134 |
|
|
<td><code> [virtual]</code></td> |
| 135 |
|
|
</tr> |
| 136 |
|
|
</table> |
| 137 |
|
|
</div> |
| 138 |
|
|
<div class="memdoc"> |
| 139 |
|
|
|
| 140 |
|
|
<p> |
| 141 |
|
|
The ToF-pattern check. |
| 142 |
|
|
<p> |
| 143 |
|
|
<dl compact><dt><b>Parameters:</b></dt><dd> |
| 144 |
|
|
<table border="0" cellspacing="2" cellpadding="0"> |
| 145 |
|
|
<tr><td valign="top"></td><td valign="top"><em>event</em> </td><td>The event to analyze. </td></tr> |
| 146 |
|
|
</table> |
| 147 |
|
|
</dl> |
| 148 |
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c" title="The implementations of PamCut::Check() must return this value if the event satisfy...">CUTOK</a> if the event pattern matches the required characteristics. </dd></dl> |
| 149 |
|
|
|
| 150 |
|
|
<p>Implements <a class="el" href="classPamCut.html#a874600461950d1f2b75ce3938f91cbe">PamCut</a>.</p> |
| 151 |
|
|
|
| 152 |
|
|
<p>Definition at line <a class="el" href="TofPatternCut_8cpp_source.html#l00012">12</a> of file <a class="el" href="TofPatternCut_8cpp_source.html">TofPatternCut.cpp</a>.</p> |
| 153 |
|
|
|
| 154 |
|
|
<p>References <a class="el" href="TofPatternCut_8h_source.html#l00067">_notrk</a>, <a class="el" href="TofPatternCut_8h_source.html#l00066">_standalone</a>, <a class="el" href="CommonDefs_8h_source.html#l00015">CUTOK</a>, and <a class="el" href="TofPatternCut_8cpp_source.html#l00182">GetNHitPMTsOutsideTrack()</a>.</p> |
| 155 |
|
|
|
| 156 |
|
|
</div> |
| 157 |
|
|
</div><p> |
| 158 |
|
|
<a class="anchor" name="2f9755367321e7f86f862506865f260c"></a><!-- doxytag: member="TofPatternCut::GetNHitPMTsOutsideTrack" ref="2f9755367321e7f86f862506865f260c" args="(PamLevel2 *event, int plane)" --> |
| 159 |
|
|
<div class="memitem"> |
| 160 |
|
|
<div class="memproto"> |
| 161 |
|
|
<table class="memname"> |
| 162 |
|
|
<tr> |
| 163 |
|
|
<td class="memname">int TofPatternCut::GetNHitPMTsOutsideTrack </td> |
| 164 |
|
|
<td>(</td> |
| 165 |
|
|
<td class="paramtype">PamLevel2 * </td> |
| 166 |
|
|
<td class="paramname"> <em>event</em>, </td> |
| 167 |
|
|
</tr> |
| 168 |
|
|
<tr> |
| 169 |
|
|
<td class="paramkey"></td> |
| 170 |
|
|
<td></td> |
| 171 |
|
|
<td class="paramtype">int </td> |
| 172 |
|
|
<td class="paramname"> <em>plane</em></td><td> </td> |
| 173 |
|
|
</tr> |
| 174 |
|
|
<tr> |
| 175 |
|
|
<td></td> |
| 176 |
|
|
<td>)</td> |
| 177 |
|
|
<td></td><td></td><td></td> |
| 178 |
|
|
</tr> |
| 179 |
|
|
</table> |
| 180 |
|
|
</div> |
| 181 |
|
|
<div class="memdoc"> |
| 182 |
|
|
|
| 183 |
|
|
<p> |
| 184 |
|
|
Counts the number of hit PMTs (with tdc signal) outside track. |
| 185 |
|
|
<p> |
| 186 |
|
|
<dl compact><dt><b>Parameters:</b></dt><dd> |
| 187 |
|
|
<table border="0" cellspacing="2" cellpadding="0"> |
| 188 |
|
|
<tr><td valign="top"></td><td valign="top"><em>event</em> </td><td>The event to analyze. </td></tr> |
| 189 |
|
|
<tr><td valign="top"></td><td valign="top"><em>plane</em> </td><td>Plane number (0-5 = S11-S32). </td></tr> |
| 190 |
|
|
</table> |
| 191 |
|
|
</dl> |
| 192 |
|
|
|
| 193 |
|
|
<p> |
| 194 |
|
|
to avoid adc pile-up |
| 195 |
|
|
<p>Definition at line <a class="el" href="TofPatternCut_8cpp_source.html#l00182">182</a> of file <a class="el" href="TofPatternCut_8cpp_source.html">TofPatternCut.cpp</a>.</p> |
| 196 |
|
|
|
| 197 |
|
|
<p>References <a class="el" href="TofPatternCut_8h_source.html#l00067">_notrk</a>, and <a class="el" href="TofPatternCut_8h_source.html#l00066">_standalone</a>.</p> |
| 198 |
|
|
|
| 199 |
|
|
<p>Referenced by <a class="el" href="TofPatternCut_8cpp_source.html#l00012">Check()</a>.</p> |
| 200 |
|
|
|
| 201 |
|
|
</div> |
| 202 |
|
|
</div><p> |
| 203 |
|
|
<a class="anchor" name="f80259c2dd81a57a9d7cf2b651d0300e"></a><!-- doxytag: member="TofPatternCut::SetStandalone" ref="f80259c2dd81a57a9d7cf2b651d0300e" args="(int yes)" --> |
| 204 |
|
|
<div class="memitem"> |
| 205 |
|
|
<div class="memproto"> |
| 206 |
|
|
<table class="memname"> |
| 207 |
|
|
<tr> |
| 208 |
|
|
<td class="memname">void TofPatternCut::SetStandalone </td> |
| 209 |
|
|
<td>(</td> |
| 210 |
|
|
<td class="paramtype">int </td> |
| 211 |
|
|
<td class="paramname"> <em>yes</em> </td> |
| 212 |
|
|
<td> ) </td> |
| 213 |
|
|
<td><code> [inline]</code></td> |
| 214 |
|
|
</tr> |
| 215 |
|
|
</table> |
| 216 |
|
|
</div> |
| 217 |
|
|
<div class="memdoc"> |
| 218 |
|
|
|
| 219 |
|
|
<p> |
| 220 |
|
|
Set standalone ToF track. |
| 221 |
|
|
<p> |
| 222 |
|
|
|
| 223 |
|
|
<p>Definition at line <a class="el" href="TofPatternCut_8h_source.html#l00051">51</a> of file <a class="el" href="TofPatternCut_8h_source.html">TofPatternCut.h</a>.</p> |
| 224 |
|
|
|
| 225 |
|
|
<p>References <a class="el" href="TofPatternCut_8h_source.html#l00066">_standalone</a>.</p> |
| 226 |
|
|
|
| 227 |
|
|
</div> |
| 228 |
|
|
</div><p> |
| 229 |
|
|
<a class="anchor" name="573d063e2149ad14c831fe28c6df8542"></a><!-- doxytag: member="TofPatternCut::SetTrackNumber" ref="573d063e2149ad14c831fe28c6df8542" args="(int n)" --> |
| 230 |
|
|
<div class="memitem"> |
| 231 |
|
|
<div class="memproto"> |
| 232 |
|
|
<table class="memname"> |
| 233 |
|
|
<tr> |
| 234 |
|
|
<td class="memname">void TofPatternCut::SetTrackNumber </td> |
| 235 |
|
|
<td>(</td> |
| 236 |
|
|
<td class="paramtype">int </td> |
| 237 |
|
|
<td class="paramname"> <em>n</em> </td> |
| 238 |
|
|
<td> ) </td> |
| 239 |
|
|
<td><code> [inline]</code></td> |
| 240 |
|
|
</tr> |
| 241 |
|
|
</table> |
| 242 |
|
|
</div> |
| 243 |
|
|
<div class="memdoc"> |
| 244 |
|
|
|
| 245 |
|
|
<p> |
| 246 |
|
|
Set (physical) track number (0,1,...). Default is 0 (the first). |
| 247 |
|
|
<p> |
| 248 |
|
|
|
| 249 |
|
|
<p>Definition at line <a class="el" href="TofPatternCut_8h_source.html#l00059">59</a> of file <a class="el" href="TofPatternCut_8h_source.html">TofPatternCut.h</a>.</p> |
| 250 |
|
|
|
| 251 |
|
|
<p>References <a class="el" href="TofPatternCut_8h_source.html#l00067">_notrk</a>.</p> |
| 252 |
|
|
|
| 253 |
|
|
</div> |
| 254 |
|
|
</div><p> |
| 255 |
|
|
<hr><h2>Member Data Documentation</h2> |
| 256 |
|
|
<a class="anchor" name="9c8d4ac314f4f3a0b62fae04ecc32fd7"></a><!-- doxytag: member="TofPatternCut::_notrk" ref="9c8d4ac314f4f3a0b62fae04ecc32fd7" args="" --> |
| 257 |
|
|
<div class="memitem"> |
| 258 |
|
|
<div class="memproto"> |
| 259 |
|
|
<table class="memname"> |
| 260 |
|
|
<tr> |
| 261 |
|
|
<td class="memname">int <a class="el" href="classTofPatternCut.html#9c8d4ac314f4f3a0b62fae04ecc32fd7">TofPatternCut::_notrk</a><code> [private]</code> </td> |
| 262 |
|
|
</tr> |
| 263 |
|
|
</table> |
| 264 |
|
|
</div> |
| 265 |
|
|
<div class="memdoc"> |
| 266 |
|
|
|
| 267 |
|
|
<p> |
| 268 |
|
|
|
| 269 |
|
|
<p>Definition at line <a class="el" href="TofPatternCut_8h_source.html#l00067">67</a> of file <a class="el" href="TofPatternCut_8h_source.html">TofPatternCut.h</a>.</p> |
| 270 |
|
|
|
| 271 |
|
|
<p>Referenced by <a class="el" href="TofPatternCut_8cpp_source.html#l00012">Check()</a>, <a class="el" href="TofPatternCut_8cpp_source.html#l00182">GetNHitPMTsOutsideTrack()</a>, and <a class="el" href="TofPatternCut_8h_source.html#l00059">SetTrackNumber()</a>.</p> |
| 272 |
|
|
|
| 273 |
|
|
</div> |
| 274 |
|
|
</div><p> |
| 275 |
|
|
<a class="anchor" name="28f5094cd7898788d4e490e75384b538"></a><!-- doxytag: member="TofPatternCut::_standalone" ref="28f5094cd7898788d4e490e75384b538" args="" --> |
| 276 |
|
|
<div class="memitem"> |
| 277 |
|
|
<div class="memproto"> |
| 278 |
|
|
<table class="memname"> |
| 279 |
|
|
<tr> |
| 280 |
|
|
<td class="memname">bool <a class="el" href="classTofPatternCut.html#28f5094cd7898788d4e490e75384b538">TofPatternCut::_standalone</a><code> [private]</code> </td> |
| 281 |
|
|
</tr> |
| 282 |
|
|
</table> |
| 283 |
|
|
</div> |
| 284 |
|
|
<div class="memdoc"> |
| 285 |
|
|
|
| 286 |
|
|
<p> |
| 287 |
|
|
|
| 288 |
|
|
<p>Definition at line <a class="el" href="TofPatternCut_8h_source.html#l00066">66</a> of file <a class="el" href="TofPatternCut_8h_source.html">TofPatternCut.h</a>.</p> |
| 289 |
|
|
|
| 290 |
|
|
<p>Referenced by <a class="el" href="TofPatternCut_8cpp_source.html#l00012">Check()</a>, <a class="el" href="TofPatternCut_8cpp_source.html#l00182">GetNHitPMTsOutsideTrack()</a>, and <a class="el" href="TofPatternCut_8h_source.html#l00051">SetStandalone()</a>.</p> |
| 291 |
|
|
|
| 292 |
|
|
</div> |
| 293 |
|
|
</div><p> |
| 294 |
|
|
<hr>The documentation for this class was generated from the following files:<ul> |
| 295 |
|
|
<li>TofCuts/TofPatternCut/<a class="el" href="TofPatternCut_8h_source.html">TofPatternCut.h</a><li>TofCuts/TofPatternCut/<a class="el" href="TofPatternCut_8cpp_source.html">TofPatternCut.cpp</a></ul> |
| 296 |
|
|
</div> |
| 297 |
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Wed May 27 15:21:46 2009 for PamCut by |
| 298 |
|
|
<a href="http://www.doxygen.org/index.html"> |
| 299 |
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
| 300 |
|
|
</body> |
| 301 |
|
|
</html> |