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: Collections/SmartCollection/SmartCollection.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>Collections/SmartCollection/SmartCollection.h</h1><a href="SmartCollection_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"> * SmartCollection.h</span> |
24 |
|
|
<a name="l00003"></a>00003 <span class="comment"> *</span> |
25 |
|
|
<a name="l00004"></a>00004 <span class="comment"> * Created on: 14-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 SMARTCOLLECTION_H_</span> |
30 |
|
|
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define SMARTCOLLECTION_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 <span class="preprocessor">#include "../../CollectionActions/CollectionAction/CollectionAction.h"</span> |
34 |
|
|
<a name="l00015"></a>00015 |
35 |
|
|
<a name="l00026"></a><a class="code" href="classSmartCollection.html">00026</a> <span class="keyword">class </span><a class="code" href="classSmartCollection.html" title="A collection class designed to use CollectionAction objects.">SmartCollection</a>: <span class="keyword">public</span> <a class="code" href="classPamCutCollection.html" title="A class which applies a set of cuts to Pamela data.">PamCutCollection</a> { |
36 |
|
|
<a name="l00027"></a>00027 |
37 |
|
|
<a name="l00028"></a>00028 <span class="keyword">public</span>: |
38 |
|
|
<a name="l00029"></a>00029 |
39 |
|
|
<a name="l00034"></a><a class="code" href="classSmartCollection.html#597157bb186c4688cd305b62a197009d">00034</a> <a class="code" href="classSmartCollection.html#597157bb186c4688cd305b62a197009d" title="Constructor.">SmartCollection</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* collectionName) : |
40 |
|
|
<a name="l00035"></a>00035 <a class="code" href="classPamCutCollection.html" title="A class which applies a set of cuts to Pamela data.">PamCutCollection</a>(collectionName), <a class="code" href="classSmartCollection.html#a80a9cf5cab3683a61b47a1145ff8f15">_actions</a>(0) { |
41 |
|
|
<a name="l00036"></a>00036 } |
42 |
|
|
<a name="l00037"></a>00037 |
43 |
|
|
<a name="l00039"></a><a class="code" href="classSmartCollection.html#63fdadd219eb42065c6e9adc63558b63">00039</a> <a class="code" href="classSmartCollection.html#63fdadd219eb42065c6e9adc63558b63" title="Destructor.">~SmartCollection</a>() { |
44 |
|
|
<a name="l00040"></a>00040 } |
45 |
|
|
<a name="l00041"></a>00041 |
46 |
|
|
<a name="l00043"></a>00043 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSmartCollection.html#9265adb168bca295f264af65276a002b" title="Adds an action to the SmartCollection.">AddAction</a>(<a class="code" href="classCollectionAction.html" title="An abstract class that defines the interface of a generic collection action.">CollectionAction</a>& action); |
47 |
|
|
<a name="l00044"></a>00044 |
48 |
|
|
<a name="l00051"></a>00051 <a class="code" href="classCollectionAction.html" title="An abstract class that defines the interface of a generic collection action.">CollectionAction</a> *<a class="code" href="classSmartCollection.html#acadaf64f683e7932c376e924e7020ea" title="Returns the iAction-th action.">GetAction</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> iAction); |
49 |
|
|
<a name="l00052"></a>00052 |
50 |
|
|
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="classSmartCollection.html#9b5b11a854b9e174218ea516ceffb34c" title="The pre-analysis task definition.">Setup</a>(PamLevel2 *events); |
51 |
|
|
<a name="l00062"></a>00062 |
52 |
|
|
<a name="l00068"></a>00068 <span class="keywordtype">void</span> <a class="code" href="classSmartCollection.html#8105730615ad127a482a7fb399695977" title="The post-analysis task definition.">Finalize</a>(); |
53 |
|
|
<a name="l00069"></a>00069 |
54 |
|
|
<a name="l00077"></a>00077 <span class="keywordtype">void</span> <a class="code" href="classSmartCollection.html#13ce6deb47b60d10225598dd1201cd80" title="Post-selection tasks.">OnGood</a>(PamLevel2 *event); |
55 |
|
|
<a name="l00078"></a>00078 |
56 |
|
|
<a name="l00089"></a>00089 <span class="keywordtype">void</span> <a class="code" href="classSmartCollection.html#99ac049c98461fbe04167f386ca7ed76" title="Post-selection tasks.">OnBad</a>(PamLevel2 *event, <span class="keywordtype">int</span> selectionResult); |
57 |
|
|
<a name="l00090"></a>00090 |
58 |
|
|
<a name="l00091"></a>00091 <span class="keyword">private</span>: |
59 |
|
|
<a name="l00092"></a>00092 |
60 |
|
|
<a name="l00093"></a><a class="code" href="classSmartCollection.html#a80a9cf5cab3683a61b47a1145ff8f15">00093</a> std::vector<CollectionAction*> <a class="code" href="classSmartCollection.html#a80a9cf5cab3683a61b47a1145ff8f15">_actions</a>; |
61 |
|
|
<a name="l00094"></a>00094 |
62 |
|
|
<a name="l00095"></a>00095 }; |
63 |
|
|
<a name="l00096"></a>00096 |
64 |
|
|
<a name="l00097"></a>00097 <span class="preprocessor">#endif </span><span class="comment">/* SMARTCOLLECTION_H_ */</span> |
65 |
|
|
</pre></div></div> |
66 |
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Wed May 27 15:21:27 2009 for PamCut by |
67 |
|
|
<a href="http://www.doxygen.org/index.html"> |
68 |
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
69 |
|
|
</body> |
70 |
|
|
</html> |