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: CollectionActions/FluxHistoAction/FluxHistoAction.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>CollectionActions/FluxHistoAction/FluxHistoAction.h</h1><a href="FluxHistoAction_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"> * FluxHistoAction.h</span> |
24 |
|
|
<a name="l00003"></a>00003 <span class="comment"> *</span> |
25 |
|
|
<a name="l00004"></a>00004 <span class="comment"> * Created on: 20-mag-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 FLUXHISTOACTION_H_</span> |
30 |
|
|
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define FLUXHISTOACTION_H_</span> |
31 |
|
|
<a name="l00012"></a>00012 <span class="preprocessor"></span> |
32 |
|
|
<a name="l00013"></a>00013 <span class="preprocessor">#include "../CollectionAction/CollectionAction.h"</span> |
33 |
|
|
<a name="l00014"></a>00014 <span class="preprocessor">#include <TH1I.h></span> |
34 |
|
|
<a name="l00015"></a>00015 <span class="preprocessor">#include <stdint.h></span> |
35 |
|
|
<a name="l00016"></a>00016 |
36 |
|
|
<a name="l00024"></a><a class="code" href="classFluxHistoAction.html">00024</a> <span class="keyword">class </span><a class="code" href="classFluxHistoAction.html" title="An action that fills a flux histogram.">FluxHistoAction</a>: <span class="keyword">public</span> <a class="code" href="classCollectionAction.html" title="An abstract class that defines the interface of a generic collection action.">CollectionAction</a> { |
37 |
|
|
<a name="l00025"></a>00025 |
38 |
|
|
<a name="l00026"></a>00026 <span class="keyword">public</span>: |
39 |
|
|
<a name="l00040"></a>00040 <a class="code" href="classFluxHistoAction.html#2f215089b4dc3b414b29a88e32df820d" title="Constructor.">FluxHistoAction</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *actionName, TString outFileBase, TString rigBinsFile); |
40 |
|
|
<a name="l00041"></a>00041 |
41 |
|
|
<a name="l00043"></a><a class="code" href="classFluxHistoAction.html#2a38b72b56859e2f6eef38d800ca5c10">00043</a> <a class="code" href="classFluxHistoAction.html#2a38b72b56859e2f6eef38d800ca5c10" title="Destructor.">~FluxHistoAction</a>() { |
42 |
|
|
<a name="l00044"></a>00044 } |
43 |
|
|
<a name="l00045"></a>00045 |
44 |
|
|
<a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="classFluxHistoAction.html#363f9657ac69e1051449ec1907c04809" title="Fills histogram with the selected event.">OnGood</a>(PamLevel2 *event); |
45 |
|
|
<a name="l00051"></a>00051 |
46 |
|
|
<a name="l00057"></a>00057 <span class="keywordtype">void</span> <a class="code" href="classFluxHistoAction.html#4565d0ea3ca0f895af489455dfd5ff04" title="Writes the histogram to the output files (ASCII and ROOT).">Finalize</a>(); |
47 |
|
|
<a name="l00058"></a>00058 |
48 |
|
|
<a name="l00059"></a>00059 <span class="keyword">private</span>: |
49 |
|
|
<a name="l00060"></a>00060 |
50 |
pam-fi |
1.2 |
<a name="l00061"></a>00061 TString _outFileBase; |
51 |
|
|
<a name="l00062"></a>00062 vector<float> _bins; |
52 |
|
|
<a name="l00063"></a>00063 TH1I _rootHisto; |
53 |
|
|
<a name="l00064"></a>00064 vector<uint64_t> _textHisto; |
54 |
pam-fi |
1.1 |
<a name="l00065"></a>00065 |
55 |
|
|
<a name="l00066"></a>00066 <span class="preprocessor">#ifdef DEBUGPAMCUT</span> |
56 |
|
|
<a name="l00067"></a>00067 <span class="preprocessor"></span> <span class="keywordtype">int</span> _outUp, _outDown; |
57 |
|
|
<a name="l00068"></a>00068 <span class="preprocessor">#endif</span> |
58 |
|
|
<a name="l00069"></a>00069 <span class="preprocessor"></span> |
59 |
|
|
<a name="l00070"></a>00070 }; |
60 |
|
|
<a name="l00071"></a>00071 |
61 |
|
|
<a name="l00072"></a>00072 <span class="preprocessor">#endif </span><span class="comment">/* FLUXHISTOACTION_H_ */</span> |
62 |
|
|
</pre></div></div> |
63 |
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 |
64 |
pam-fi |
1.1 |
<a href="http://www.doxygen.org/index.html"> |
65 |
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
66 |
|
|
</body> |
67 |
|
|
</html> |