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="l00042"></a><a class="code" href="classSmartCollection.html">00042</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="l00043"></a>00043 |
37 |
<a name="l00044"></a>00044 <span class="keyword">public</span>: |
38 |
<a name="l00045"></a>00045 |
39 |
<a name="l00050"></a><a class="code" href="classSmartCollection.html#597157bb186c4688cd305b62a197009d">00050</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="l00051"></a>00051 <a class="code" href="classPamCutCollection.html" title="A class which applies a set of cuts to Pamela data.">PamCutCollection</a>(collectionName), _actions(0) { |
41 |
<a name="l00052"></a>00052 } |
42 |
<a name="l00053"></a>00053 |
43 |
<a name="l00055"></a><a class="code" href="classSmartCollection.html#63fdadd219eb42065c6e9adc63558b63">00055</a> <a class="code" href="classSmartCollection.html#63fdadd219eb42065c6e9adc63558b63" title="Destructor.">~SmartCollection</a>() { |
44 |
<a name="l00056"></a>00056 } |
45 |
<a name="l00057"></a>00057 |
46 |
<a name="l00059"></a>00059 <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="l00060"></a>00060 |
48 |
<a name="l00067"></a>00067 <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="l00068"></a>00068 |
50 |
<a name="l00077"></a>00077 <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="l00078"></a>00078 |
52 |
<a name="l00084"></a>00084 <span class="keywordtype">void</span> <a class="code" href="classSmartCollection.html#8105730615ad127a482a7fb399695977" title="The post-analysis task definition.">Finalize</a>(); |
53 |
<a name="l00085"></a>00085 |
54 |
<a name="l00092"></a>00092 <span class="keywordtype">int</span> <a class="code" href="classSmartCollection.html#98213ec078e9b94ea70c72132757da46">ApplyCut</a>(PamLevel2 *event); |
55 |
<a name="l00093"></a>00093 |
56 |
<a name="l00094"></a>00094 <span class="keyword">protected</span>: |
57 |
<a name="l00095"></a>00095 |
58 |
<a name="l00096"></a>00096 std::vector<CollectionAction*> _actions; |
59 |
<a name="l00097"></a>00097 std::vector<unsigned int> _actionsPositions; |
60 |
<a name="l00098"></a>00098 |
61 |
<a name="l00099"></a>00099 }; |
62 |
<a name="l00100"></a>00100 |
63 |
<a name="l00101"></a>00101 <span class="preprocessor">#endif </span><span class="comment">/* SMARTCOLLECTION_H_ */</span> |
64 |
</pre></div></div> |
65 |
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 5 15:08:58 2009 for PamCut by |
66 |
<a href="http://www.doxygen.org/index.html"> |
67 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
68 |
</body> |
69 |
</html> |