| 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: MiscCuts/OBTQualCut/OBTQualCut.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>MiscCuts/OBTQualCut/OBTQualCut.h</h1><a href="OBTQualCut_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"> * OBTQualCut.h</span> |
| 24 |
<a name="l00003"></a>00003 <span class="comment"> *</span> |
| 25 |
<a name="l00004"></a>00004 <span class="comment"> * Created on: 10-mar-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 OBTQUALCUT_H_</span> |
| 30 |
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define OBTQUALCUT_H_</span> |
| 31 |
<a name="l00012"></a>00012 <span class="preprocessor"></span> |
| 32 |
<a name="l00013"></a>00013 <span class="preprocessor">#include "../../PamCutBase/PamCutBase.h"</span> |
| 33 |
<a name="l00014"></a>00014 |
| 34 |
<a name="l00016"></a><a class="code" href="OBTQualCut_8h.html#1506abf860102f2a2f820c249eb660e5">00016</a> <span class="keyword">enum</span> <a class="code" href="OBTQualCut_8h.html#1506abf860102f2a2f820c249eb660e5">OBT_Return</a> { |
| 35 |
<a name="l00017"></a><a class="code" href="OBTQualCut_8h.html#1506abf860102f2a2f820c249eb660e5c3de490e92cafcab7fc60b7a87d4ee9d">00017</a> <a class="code" href="OBTQualCut_8h.html#1506abf860102f2a2f820c249eb660e5c3de490e92cafcab7fc60b7a87d4ee9d" title="Discarded because it is the first event of the run.">OBT_NEWRUN</a>, |
| 36 |
<a name="l00018"></a><a class="code" href="OBTQualCut_8h.html#1506abf860102f2a2f820c249eb660e5fbd1edeb6456b0462058e91cdb4403e5">00018</a> <a class="code" href="OBTQualCut_8h.html#1506abf860102f2a2f820c249eb660e5fbd1edeb6456b0462058e91cdb4403e5" title="Discarded because the OBT is not valid.">OBT_INVALID</a> |
| 37 |
<a name="l00019"></a>00019 }; |
| 38 |
<a name="l00020"></a>00020 |
| 39 |
<a name="l00021"></a>00021 <span class="keyword">using</span> std::numeric_limits; |
| 40 |
<a name="l00028"></a><a class="code" href="classOBTQualCut.html">00028</a> <span class="keyword">class </span><a class="code" href="classOBTQualCut.html" title="The On Board Time quality cut.">OBTQualCut</a>: <span class="keyword">public</span> <a class="code" href="classPamCut.html" title="An abstract class to apply cuts to Pamela data.">PamCut</a> { |
| 41 |
<a name="l00029"></a>00029 |
| 42 |
<a name="l00030"></a>00030 <span class="keyword">public</span>: |
| 43 |
<a name="l00032"></a><a class="code" href="classOBTQualCut.html#c12f44c05680f4c0a22377caaced6fb6">00032</a> <a class="code" href="classOBTQualCut.html#c12f44c05680f4c0a22377caaced6fb6" title="Constructor.">OBTQualCut</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *cutName) : |
| 44 |
<a name="l00033"></a>00033 <a class="code" href="classPamCut.html" title="An abstract class to apply cuts to Pamela data.">PamCut</a>(cutName), _previousOBT(numeric_limits<UInt_t>::max()), _previousRun(numeric_limits<UInt_t>::max()) { |
| 45 |
<a name="l00034"></a>00034 } |
| 46 |
<a name="l00036"></a><a class="code" href="classOBTQualCut.html#7b5c76029db2e876a842dbaa7bbcd036">00036</a> <a class="code" href="classOBTQualCut.html#7b5c76029db2e876a842dbaa7bbcd036" title="Destructor.">~OBTQualCut</a>() { |
| 47 |
<a name="l00037"></a>00037 } |
| 48 |
<a name="l00038"></a>00038 |
| 49 |
<a name="l00046"></a>00046 <span class="keywordtype">int</span> <a class="code" href="classOBTQualCut.html#7731b6f7e6e08ff629550da311952c6a" title="The On Board Time quality check.">Check</a>(PamLevel2 *event); |
| 50 |
<a name="l00047"></a>00047 |
| 51 |
<a name="l00048"></a>00048 <span class="keyword">private</span>: |
| 52 |
<a name="l00049"></a>00049 UInt_t _previousOBT; |
| 53 |
<a name="l00050"></a>00050 UInt_t _previousRun; |
| 54 |
<a name="l00051"></a>00051 |
| 55 |
<a name="l00052"></a>00052 }; |
| 56 |
<a name="l00053"></a>00053 |
| 57 |
<a name="l00054"></a>00054 <span class="preprocessor">#endif </span><span class="comment">/* OBTQUALCUT_H_ */</span> |
| 58 |
</pre></div></div> |
| 59 |
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 5 15:08:58 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> |