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: PamCutBase/PamCutBase.cpp 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>PamCutBase/PamCutBase.cpp</h1><a href="PamCutBase_8cpp.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"> * PamCutBase.cpp</span> |
24 |
|
|
<a name="l00003"></a>00003 <span class="comment"> *</span> |
25 |
|
|
<a name="l00004"></a>00004 <span class="comment"> * Created on: 12-feb-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">#include "<a class="code" href="PamCutBase_8h.html">PamCutBase.h</a>"</span> |
30 |
|
|
<a name="l00011"></a>00011 |
31 |
|
|
<a name="l00012"></a>00012 <span class="comment">/* ************** *</span> |
32 |
|
|
<a name="l00013"></a>00013 <span class="comment"> * PAMCUT</span> |
33 |
|
|
<a name="l00014"></a>00014 <span class="comment"> * ************** */</span> |
34 |
|
|
<a name="l00015"></a><a class="code" href="classPamCut.html#132a1a7cf365ff28eca38b7dda1acb7f">00015</a> <span class="keywordtype">int</span> <a class="code" href="classPamCut.html#132a1a7cf365ff28eca38b7dda1acb7f" title="Applies the cut to the current event.">PamCut::ApplyCut</a>(PamLevel2 *event) { |
35 |
|
|
<a name="l00016"></a>00016 |
36 |
|
|
<a name="l00017"></a>00017 <a class="code" href="classPamCut.html#0525bd3c71dbd445f817c163d56562d5" title="The number of analyzed events.">_nEv</a>++; |
37 |
|
|
<a name="l00018"></a>00018 <span class="keywordtype">int</span> result = <a class="code" href="classPamCut.html#a874600461950d1f2b75ce3938f91cbe" title="The basic event check.">Check</a>(event); |
38 |
|
|
<a name="l00019"></a>00019 <span class="keywordflow">if</span> (result == <a class="code" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c" title="The implementations of PamCut::Check() must return this value if the event satisfy...">CUTOK</a>) { |
39 |
|
|
<a name="l00020"></a>00020 <a class="code" href="classPamCut.html#eacb32030a52b4353861159e3ca098d0" title="The number of good events.">_nGood</a>++; |
40 |
|
|
<a name="l00021"></a>00021 <a class="code" href="classPamCut.html#56021e959232270c12528ddec3062985" title="Post-selection tasks.">OnGood</a>(event); |
41 |
|
|
<a name="l00022"></a>00022 } |
42 |
|
|
<a name="l00023"></a>00023 <span class="keywordflow">else</span> { |
43 |
|
|
<a name="l00024"></a>00024 <a class="code" href="classPamCut.html#cbb3b507d79f20878fac4392ffa57acb" title="Post-selection tasks.">OnBad</a>(event, result); |
44 |
|
|
<a name="l00025"></a>00025 } |
45 |
|
|
<a name="l00026"></a>00026 <span class="keywordflow">return</span> result; |
46 |
|
|
<a name="l00027"></a>00027 |
47 |
|
|
<a name="l00028"></a>00028 } |
48 |
|
|
<a name="l00029"></a>00029 |
49 |
|
|
<a name="l00030"></a><a class="code" href="classPamCut.html#047b75499ea4457d60397ee5491adcd4">00030</a> <span class="keywordtype">void</span> <a class="code" href="classPamCut.html#047b75499ea4457d60397ee5491adcd4" title="Applies the cut to a range of events.">PamCut::Process</a>(PamLevel2 *events, ULong_t firstEvent, ULong_t lastEvent) { |
50 |
|
|
<a name="l00031"></a>00031 |
51 |
|
|
<a name="l00032"></a>00032 <span class="comment">// Check the range of events to analyze</span> |
52 |
|
|
<a name="l00033"></a>00033 <span class="keywordflow">if</span> (firstEvent > lastEvent) { |
53 |
|
|
<a name="l00034"></a>00034 <span class="keywordflow">return</span>; |
54 |
|
|
<a name="l00035"></a>00035 } |
55 |
|
|
<a name="l00036"></a>00036 <span class="keywordflow">if</span> (firstEvent < 0 || lastEvent > events->GetEntries() - 1) { |
56 |
|
|
<a name="l00037"></a>00037 <span class="keywordflow">return</span>; |
57 |
|
|
<a name="l00038"></a>00038 } |
58 |
|
|
<a name="l00039"></a>00039 |
59 |
|
|
<a name="l00040"></a>00040 <span class="comment">// Prepare the counters for the new analysis</span> |
60 |
|
|
<a name="l00041"></a>00041 <a class="code" href="classPamCut.html#e587828903b809c99f9ab5ba97ae6616" title="The pre-analysis task definition.">Setup</a>(events); |
61 |
|
|
<a name="l00042"></a>00042 |
62 |
|
|
<a name="l00043"></a>00043 <span class="comment">// Apply the cuts</span> |
63 |
|
|
<a name="l00044"></a>00044 <span class="keywordflow">for</span> (ULong_t iev = firstEvent; iev < lastEvent + 1; iev++) { |
64 |
|
|
<a name="l00045"></a>00045 events->GetEntry(iev); |
65 |
|
|
<a name="l00046"></a>00046 <a class="code" href="classPamCut.html#132a1a7cf365ff28eca38b7dda1acb7f" title="Applies the cut to the current event.">ApplyCut</a>(events); |
66 |
|
|
<a name="l00047"></a>00047 } |
67 |
|
|
<a name="l00048"></a>00048 |
68 |
|
|
<a name="l00049"></a>00049 <span class="comment">// Closes the analysis</span> |
69 |
|
|
<a name="l00050"></a>00050 <a class="code" href="classPamCut.html#fd74c1565552cabe4aced316df803737" title="The post-analysis task definition.">Finalize</a>(); |
70 |
|
|
<a name="l00051"></a>00051 |
71 |
|
|
<a name="l00052"></a>00052 } |
72 |
|
|
<a name="l00053"></a><a class="code" href="classPamCut.html#e587828903b809c99f9ab5ba97ae6616">00053</a> <span class="keywordtype">void</span> <a class="code" href="classPamCut.html#e587828903b809c99f9ab5ba97ae6616" title="The pre-analysis task definition.">PamCut::Setup</a>(PamLevel2 *events) { |
73 |
|
|
<a name="l00054"></a>00054 <a class="code" href="classPamCut.html#0525bd3c71dbd445f817c163d56562d5" title="The number of analyzed events.">_nEv</a> = <a class="code" href="classPamCut.html#eacb32030a52b4353861159e3ca098d0" title="The number of good events.">_nGood</a> = 0; |
74 |
|
|
<a name="l00055"></a>00055 } |
75 |
|
|
<a name="l00056"></a>00056 |
76 |
|
|
<a name="l00057"></a><a class="code" href="classPamCut.html#9f14d875c176c2af470838a1b6dc069b">00057</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classPamCut.html#9f14d875c176c2af470838a1b6dc069b" title="Returns the cut name.">PamCut::GetName</a>()<span class="keyword"> const </span>{ |
77 |
|
|
<a name="l00058"></a>00058 <span class="keywordflow">return</span> <a class="code" href="classPamCut.html#1eb606f9dab9c7f2fd5d84f834dcf146">_cutName</a>; |
78 |
|
|
<a name="l00059"></a>00059 } |
79 |
|
|
<a name="l00060"></a>00060 |
80 |
|
|
<a name="l00061"></a><a class="code" href="classPamCut.html#276bd306ea0a62cc0effa5dea4118e21">00061</a> <span class="keywordtype">void</span> <a class="code" href="classPamCut.html#276bd306ea0a62cc0effa5dea4118e21" title="Changes the cut&#39;s name.">PamCut::SetName</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *newName) { |
81 |
|
|
<a name="l00062"></a>00062 <a class="code" href="classPamCut.html#1eb606f9dab9c7f2fd5d84f834dcf146">_cutName</a> = newName; |
82 |
|
|
<a name="l00063"></a>00063 } |
83 |
|
|
<a name="l00064"></a>00064 |
84 |
|
|
<a name="l00065"></a><a class="code" href="classPamCut.html#cff560f2c6a663345c81f95df905956e">00065</a> <a class="code" href="classPamCut.html" title="An abstract class to apply cuts to Pamela data.">PamCut</a>& <a class="code" href="classPamCut.html#cff560f2c6a663345c81f95df905956e" title="The assignment operator. This operator defines how to copy a PamCut object into another...">PamCut::operator=</a>(<span class="keyword">const</span> <a class="code" href="classPamCut.html" title="An abstract class to apply cuts to Pamela data.">PamCut</a> &rightValue) { |
85 |
|
|
<a name="l00066"></a>00066 <a class="code" href="classPamCut.html#1eb606f9dab9c7f2fd5d84f834dcf146">_cutName</a> = rightValue.<a class="code" href="classPamCut.html#1eb606f9dab9c7f2fd5d84f834dcf146">_cutName</a>; |
86 |
|
|
<a name="l00067"></a>00067 <span class="keywordflow">return</span> *<span class="keyword">this</span>; |
87 |
|
|
<a name="l00068"></a>00068 } |
88 |
|
|
<a name="l00069"></a>00069 |
89 |
|
|
<a name="l00070"></a>00070 <span class="comment">/* ************************ *</span> |
90 |
|
|
<a name="l00071"></a>00071 <span class="comment"> * PAMCUTCOLLECTION</span> |
91 |
|
|
<a name="l00072"></a>00072 <span class="comment"> * ************************ */</span> |
92 |
|
|
<a name="l00073"></a>00073 |
93 |
|
|
<a name="l00074"></a><a class="code" href="classPamCutCollection.html#6dc6a92a7ee9243f567a2a244e1e5685">00074</a> <span class="keywordtype">void</span> <a class="code" href="classPamCutCollection.html#6dc6a92a7ee9243f567a2a244e1e5685" title="Adds a cut to the cut collection This routine adds a cut to the collection. These...">PamCutCollection::AddCut</a>(<a class="code" href="classPamCut.html" title="An abstract class to apply cuts to Pamela data.">PamCut</a> &cut) { |
94 |
|
|
<a name="l00075"></a>00075 <a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>.push_back(&cut); |
95 |
|
|
<a name="l00076"></a>00076 } |
96 |
|
|
<a name="l00077"></a>00077 |
97 |
|
|
<a name="l00078"></a><a class="code" href="classPamCutCollection.html#85f04cef7b560a37061391dd397813a7">00078</a> <span class="keywordtype">int</span> <a class="code" href="classPamCutCollection.html#85f04cef7b560a37061391dd397813a7" title="The basic selection.">PamCutCollection::Check</a>(PamLevel2 *event) { |
98 |
|
|
<a name="l00079"></a>00079 |
99 |
|
|
<a name="l00080"></a>00080 <span class="comment">// Apply the cuts</span> |
100 |
|
|
<a name="l00081"></a>00081 <span class="keywordflow">if</span> (<a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>.size() == 0) { |
101 |
|
|
<a name="l00082"></a>00082 <span class="keywordflow">return</span> <a class="code" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c" title="The implementations of PamCut::Check() must return this value if the event satisfy...">CUTOK</a>; |
102 |
|
|
<a name="l00083"></a>00083 } |
103 |
|
|
<a name="l00084"></a>00084 |
104 |
|
|
<a name="l00085"></a>00085 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> icut = 0; icut < <a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>.size(); icut++) { |
105 |
|
|
<a name="l00086"></a>00086 <span class="keywordflow">if</span> (<a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>[icut]-><a class="code" href="classPamCutCollection.html#85f04cef7b560a37061391dd397813a7" title="The basic selection.">Check</a>(event) != <a class="code" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c" title="The implementations of PamCut::Check() must return this value if the event satisfy...">CUTOK</a>) { |
106 |
|
|
<a name="l00087"></a>00087 <span class="keywordflow">return</span> icut; |
107 |
|
|
<a name="l00088"></a>00088 } |
108 |
|
|
<a name="l00089"></a>00089 } |
109 |
|
|
<a name="l00090"></a>00090 |
110 |
|
|
<a name="l00091"></a>00091 <span class="keywordflow">return</span> <a class="code" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c" title="The implementations of PamCut::Check() must return this value if the event satisfy...">CUTOK</a>; |
111 |
|
|
<a name="l00092"></a>00092 } |
112 |
|
|
<a name="l00093"></a>00093 |
113 |
|
|
<a name="l00094"></a><a class="code" href="classPamCutCollection.html#e7af429a3afef3685cbd5aa076ef96e5">00094</a> <span class="keywordtype">int</span> <a class="code" href="classPamCutCollection.html#e7af429a3afef3685cbd5aa076ef96e5" title="Applies the cuts to the current event.">PamCutCollection::ApplyCut</a>(PamLevel2 *event) { |
114 |
|
|
<a name="l00095"></a>00095 |
115 |
|
|
<a name="l00096"></a>00096 <a class="code" href="classPamCut.html#0525bd3c71dbd445f817c163d56562d5" title="The number of analyzed events.">_nEv</a>++; |
116 |
|
|
<a name="l00097"></a>00097 <span class="comment">// Apply the cuts</span> |
117 |
|
|
<a name="l00098"></a>00098 <span class="keywordflow">if</span> (<a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>.size() == 0) { |
118 |
|
|
<a name="l00099"></a>00099 <a class="code" href="classPamCut.html#eacb32030a52b4353861159e3ca098d0" title="The number of good events.">_nGood</a>++; |
119 |
|
|
<a name="l00100"></a>00100 <a class="code" href="classPamCut.html#56021e959232270c12528ddec3062985" title="Post-selection tasks.">OnGood</a>(event); |
120 |
|
|
<a name="l00101"></a>00101 <span class="keywordflow">return</span> <a class="code" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c" title="The implementations of PamCut::Check() must return this value if the event satisfy...">CUTOK</a>; |
121 |
|
|
<a name="l00102"></a>00102 } |
122 |
|
|
<a name="l00103"></a>00103 |
123 |
|
|
<a name="l00104"></a>00104 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> icut = 0; icut < <a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>.size(); icut++) { |
124 |
|
|
<a name="l00105"></a>00105 <span class="keywordflow">if</span> (<a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>[icut]-><a class="code" href="classPamCutCollection.html#e7af429a3afef3685cbd5aa076ef96e5" title="Applies the cuts to the current event.">ApplyCut</a>(event) != <a class="code" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c" title="The implementations of PamCut::Check() must return this value if the event satisfy...">CUTOK</a>) { |
125 |
|
|
<a name="l00106"></a>00106 <a class="code" href="classPamCut.html#cbb3b507d79f20878fac4392ffa57acb" title="Post-selection tasks.">OnBad</a>(event, icut); |
126 |
|
|
<a name="l00107"></a>00107 <span class="keywordflow">return</span> icut; |
127 |
|
|
<a name="l00108"></a>00108 } |
128 |
|
|
<a name="l00109"></a>00109 } |
129 |
|
|
<a name="l00110"></a>00110 |
130 |
|
|
<a name="l00111"></a>00111 <a class="code" href="classPamCut.html#eacb32030a52b4353861159e3ca098d0" title="The number of good events.">_nGood</a>++; |
131 |
|
|
<a name="l00112"></a>00112 <a class="code" href="classPamCut.html#56021e959232270c12528ddec3062985" title="Post-selection tasks.">OnGood</a>(event); |
132 |
|
|
<a name="l00113"></a>00113 <span class="keywordflow">return</span> <a class="code" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c" title="The implementations of PamCut::Check() must return this value if the event satisfy...">CUTOK</a>; |
133 |
|
|
<a name="l00114"></a>00114 } |
134 |
|
|
<a name="l00115"></a>00115 |
135 |
|
|
<a name="l00116"></a><a class="code" href="classPamCutCollection.html#55e41082749260f5cee2fd53d9fd331b">00116</a> <a class="code" href="classPamCut.html" title="An abstract class to apply cuts to Pamela data.">PamCut</a> *<a class="code" href="classPamCutCollection.html#55e41082749260f5cee2fd53d9fd331b" title="Returns a pointer to the iCut-th cut.">PamCutCollection::GetCut</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> iCut) { |
136 |
|
|
<a name="l00117"></a>00117 <span class="keywordflow">if</span> (<a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>.size() == 0) |
137 |
|
|
<a name="l00118"></a>00118 <span class="keywordflow">return</span> NULL; |
138 |
|
|
<a name="l00119"></a>00119 <span class="keywordflow">if</span> (iCut < 0 || iCut > <a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>.size() - 1) |
139 |
|
|
<a name="l00120"></a>00120 <span class="keywordflow">return</span> NULL; |
140 |
|
|
<a name="l00121"></a>00121 <span class="keywordflow">else</span> |
141 |
|
|
<a name="l00122"></a>00122 <span class="keywordflow">return</span> <a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>[iCut]; |
142 |
|
|
<a name="l00123"></a>00123 } |
143 |
|
|
<a name="l00124"></a>00124 |
144 |
|
|
<a name="l00125"></a><a class="code" href="classPamCutCollection.html#231f91b82b18cf326a2912b0b515baca">00125</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classPamCutCollection.html#231f91b82b18cf326a2912b0b515baca" title="The number of cuts contained in the collection.">PamCutCollection::GetSize</a>() { |
145 |
|
|
<a name="l00126"></a>00126 <span class="keywordflow">return</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) <a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>.size(); |
146 |
|
|
<a name="l00127"></a>00127 |
147 |
|
|
<a name="l00128"></a>00128 } |
148 |
|
|
<a name="l00129"></a>00129 |
149 |
|
|
<a name="l00130"></a><a class="code" href="classPamCutCollection.html#3fb36e5fb38627f5cbffe6c23cf57d2a">00130</a> <a class="code" href="classPamCutCollection.html" title="A class which applies a set of cuts to Pamela data.">PamCutCollection</a>& <a class="code" href="classPamCutCollection.html#3fb36e5fb38627f5cbffe6c23cf57d2a" title="Assignment operator redefinition. The assignment operator replaces the content of...">PamCutCollection::operator=</a>(<span class="keyword">const</span> <a class="code" href="classPamCutCollection.html" title="A class which applies a set of cuts to Pamela data.">PamCutCollection</a> &rightValue) { |
150 |
|
|
<a name="l00131"></a>00131 |
151 |
|
|
<a name="l00132"></a>00132 <a class="code" href="classPamCutCollection.html#3fb36e5fb38627f5cbffe6c23cf57d2a" title="Assignment operator redefinition. The assignment operator replaces the content of...">PamCut::operator=</a>(rightValue); |
152 |
|
|
<a name="l00133"></a>00133 <a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a> = rightValue.<a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>; |
153 |
|
|
<a name="l00134"></a>00134 <span class="keywordflow">return</span> *<span class="keyword">this</span>; |
154 |
|
|
<a name="l00135"></a>00135 } |
155 |
|
|
<a name="l00136"></a>00136 |
156 |
|
|
<a name="l00137"></a><a class="code" href="classPamCutCollection.html#982821389af5e585688611d733b3a7b0">00137</a> <span class="keywordtype">void</span> <a class="code" href="classPamCutCollection.html#982821389af5e585688611d733b3a7b0" title="The pre-analysis task definition.">PamCutCollection::Setup</a>(PamLevel2 *events) { |
157 |
|
|
<a name="l00138"></a>00138 |
158 |
|
|
<a name="l00139"></a>00139 <a class="code" href="classPamCutCollection.html#982821389af5e585688611d733b3a7b0" title="The pre-analysis task definition.">PamCut::Setup</a>(events); |
159 |
|
|
<a name="l00140"></a>00140 |
160 |
|
|
<a name="l00141"></a>00141 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < <a class="code" href="classPamCutCollection.html#231f91b82b18cf326a2912b0b515baca" title="The number of cuts contained in the collection.">GetSize</a>(); i++) { |
161 |
|
|
<a name="l00142"></a>00142 <a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>[i]->Setup(events); |
162 |
|
|
<a name="l00143"></a>00143 } |
163 |
|
|
<a name="l00144"></a>00144 } |
164 |
|
|
<a name="l00145"></a>00145 |
165 |
|
|
<a name="l00146"></a><a class="code" href="classPamCutCollection.html#15785c75fb13b998422739e741bb5c01">00146</a> <span class="keywordtype">void</span> <a class="code" href="classPamCutCollection.html#15785c75fb13b998422739e741bb5c01" title="The post-analysis task definition.">PamCutCollection::Finalize</a>() { |
166 |
|
|
<a name="l00147"></a>00147 |
167 |
|
|
<a name="l00148"></a>00148 <span class="comment">// PamCut::Finalize() is currently void, but in future it could contain something, so it's good to place a call here.</span> |
168 |
|
|
<a name="l00149"></a>00149 <a class="code" href="classPamCutCollection.html#15785c75fb13b998422739e741bb5c01" title="The post-analysis task definition.">PamCut::Finalize</a>(); |
169 |
|
|
<a name="l00150"></a>00150 |
170 |
|
|
<a name="l00151"></a>00151 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < <a class="code" href="classPamCutCollection.html#231f91b82b18cf326a2912b0b515baca" title="The number of cuts contained in the collection.">GetSize</a>(); i++) { |
171 |
|
|
<a name="l00152"></a>00152 <a class="code" href="classPamCutCollection.html#95f91f4b81f916cb6e120ee4b5bb5403" title="A vector containing pointers to PamCut objects.">_cuts</a>[i]->Finalize(); |
172 |
|
|
<a name="l00153"></a>00153 } |
173 |
|
|
<a name="l00154"></a>00154 } |
174 |
|
|
</pre></div></div> |
175 |
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Wed May 27 15:21:27 2009 for PamCut by |
176 |
|
|
<a href="http://www.doxygen.org/index.html"> |
177 |
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
178 |
|
|
</body> |
179 |
|
|
</html> |