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: MiscCuts/LTQualCut/LTQualCut.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/LTQualCut/LTQualCut.h</h1><a href="LTQualCut_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"> * LTQualCut.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, S. Ricciarini</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 LTQUALCUT_H_</span> |
30 |
|
|
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define LTQUALCUT_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="LTQualCut_8h.html#7d30c7d7f0c700a98b8a05984c842c4f">00016</a> <span class="keyword">enum</span> <a class="code" href="LTQualCut_8h.html#7d30c7d7f0c700a98b8a05984c842c4f">LT_Return</a> { |
35 |
|
|
<a name="l00017"></a><a class="code" href="LTQualCut_8h.html#7d30c7d7f0c700a98b8a05984c842c4f5a3b012c296a8ace38a9a256d2df3b6c">00017</a> <a class="code" href="LTQualCut_8h.html#7d30c7d7f0c700a98b8a05984c842c4f5a3b012c296a8ace38a9a256d2df3b6c" title="Discarded because it is the first event of the run.">LT_NEWRUN</a>, |
36 |
|
|
<a name="l00018"></a><a class="code" href="LTQualCut_8h.html#7d30c7d7f0c700a98b8a05984c842c4fb2905806ac12cf7f821238ebfccd90c4">00018</a> <a class="code" href="LTQualCut_8h.html#7d30c7d7f0c700a98b8a05984c842c4fb2905806ac12cf7f821238ebfccd90c4" title="Discarded because the LT is greater than timeout.">LT_INVALID</a> |
37 |
|
|
<a name="l00020"></a>00020 }; |
38 |
|
|
<a name="l00021"></a>00021 |
39 |
|
|
<a name="l00024"></a><a class="code" href="classLTQualCut.html">00024</a> <span class="keyword">class </span><a class="code" href="classLTQualCut.html" title="The live-time data quality cut: rejects the first event of each run and events with...">LTQualCut</a>: <span class="keyword">public</span> <a class="code" href="classPamCut.html" title="An abstract class to apply cuts to Pamela data.">PamCut</a> { |
40 |
|
|
<a name="l00025"></a>00025 |
41 |
|
|
<a name="l00026"></a>00026 <span class="keyword">public</span>: |
42 |
|
|
<a name="l00034"></a><a class="code" href="classLTQualCut.html#c358da9eb502cfe964b682e89e34b5ca">00034</a> <a class="code" href="classLTQualCut.html#c358da9eb502cfe964b682e89e34b5ca" title="Constructor.">LTQualCut</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* cutName, <span class="keywordtype">float</span> threshold=4500) : |
43 |
pam-fi |
1.2 |
<a name="l00035"></a>00035 <a class="code" href="classPamCut.html" title="An abstract class to apply cuts to Pamela data.">PamCut</a>(cutName), _previousRun(numeric_limits<UInt_t>::max()), _LT(-1.), _timeout(threshold) { |
44 |
pam-fi |
1.1 |
<a name="l00036"></a>00036 } |
45 |
|
|
<a name="l00038"></a><a class="code" href="classLTQualCut.html#4c7b3319c00ecad7e55b90539b524c53">00038</a> <a class="code" href="classLTQualCut.html#4c7b3319c00ecad7e55b90539b524c53" title="Destructor.">~LTQualCut</a>() { |
46 |
|
|
<a name="l00039"></a>00039 } |
47 |
|
|
<a name="l00040"></a>00040 |
48 |
|
|
<a name="l00048"></a>00048 <span class="keywordtype">int</span> <a class="code" href="classLTQualCut.html#b38dc0bd6b25f899753b4598c278e6a2" title="The live time quality check.">Check</a>(PamLevel2 *event); |
49 |
|
|
<a name="l00049"></a>00049 |
50 |
pam-fi |
1.2 |
<a name="l00054"></a><a class="code" href="classLTQualCut.html#fe8fd76dbc23d11dfa24f2468f78d3d8">00054</a> <span class="keywordtype">float</span> <a class="code" href="classLTQualCut.html#fe8fd76dbc23d11dfa24f2468f78d3d8" title="Returns the live time of the last examined event.">GetLT</a>() { <span class="keywordflow">return</span> _LT; } |
51 |
pam-fi |
1.1 |
<a name="l00055"></a>00055 |
52 |
|
|
<a name="l00056"></a>00056 <span class="keyword">private</span>: |
53 |
pam-fi |
1.2 |
<a name="l00057"></a>00057 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _previousRun; |
54 |
|
|
<a name="l00058"></a>00058 <span class="keywordtype">float</span> _LT; |
55 |
|
|
<a name="l00059"></a>00059 <span class="keywordtype">float</span> _timeout; |
56 |
pam-fi |
1.1 |
<a name="l00060"></a>00060 }; |
57 |
|
|
<a name="l00061"></a>00061 |
58 |
|
|
<a name="l00062"></a>00062 <span class="preprocessor">#endif </span><span class="comment">/* LTQUALCUT_H_ */</span> |
59 |
|
|
</pre></div></div> |
60 |
pam-fi |
1.2 |
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 5 15:08:58 2009 for PamCut by |
61 |
pam-fi |
1.1 |
<a href="http://www.doxygen.org/index.html"> |
62 |
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
63 |
|
|
</body> |
64 |
|
|
</html> |