/[PAMELA software]/PamCut/doc/Doxygen/html/classCollectionAction.html
ViewVC logotype

Annotation of /PamCut/doc/Doxygen/html/classCollectionAction.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download) (as text)
Fri Sep 25 15:41:58 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
File MIME type: text/html
FILE REMOVED
Removed from repository.

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: CollectionAction Class Reference</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&nbsp;Page</span></a></li>
12     <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
13     <li><a href="files.html"><span>Files</span></a></li>
14     </ul>
15     </div>
16     <div class="tabs">
17     <ul>
18     <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
19     <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
20     <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
21     </ul>
22     </div>
23     </div>
24     <div class="contents">
25     <h1>CollectionAction Class Reference</h1><!-- doxytag: class="CollectionAction" -->An abstract class that defines the interface of a generic collection action.
26     <a href="#_details">More...</a>
27     <p>
28     <code>#include &lt;<a class="el" href="CollectionAction_8h_source.html">CollectionAction.h</a>&gt;</code>
29     <p>
30     <div class="dynheader">
31     Inheritance diagram for CollectionAction:</div>
32     <div class="dynsection">
33    
34     <p><center><img src="classCollectionAction.png" usemap="#CollectionAction_map" border="0" alt=""></center>
35     <map name="CollectionAction_map">
36     <area href="classChargeHistosAction.html" alt="ChargeHistosAction" shape="rect" coords="0,56,187,80">
37     <area href="classEvRateS11VsCutoffHistoAction.html" alt="EvRateS11VsCutoffHistoAction" shape="rect" coords="197,56,384,80">
38     <area href="classFluxHistoAction.html" alt="FluxHistoAction" shape="rect" coords="394,56,581,80">
39     <area href="classSaveEventsAction.html" alt="SaveEventsAction" shape="rect" coords="591,56,778,80">
40     </map>
41     </div>
42    
43     <p>
44     <a href="classCollectionAction-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
45     <tr><td></td></tr>
46     <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
47     <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollectionAction.html#35e6d0d0351e0fafe4b508faeb3598d6">CollectionAction</a> (const char *actionName)</td></tr>
48    
49     <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#35e6d0d0351e0fafe4b508faeb3598d6"></a><br></td></tr>
50 pam-fi 1.2 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d327a6cfdc6148db563ae52aa004e098"></a><!-- doxytag: member="CollectionAction::~CollectionAction" ref="d327a6cfdc6148db563ae52aa004e098" args="()" -->
51     virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollectionAction.html#d327a6cfdc6148db563ae52aa004e098">~CollectionAction</a> ()</td></tr>
52 pam-fi 1.1
53 pam-fi 1.2 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <br></td></tr>
54 pam-fi 1.1 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollectionAction.html#13adbcacf5e088f7979f0644a65372b4">Setup</a> (PamLevel2 *events)</td></tr>
55    
56     <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The initialization routine. <a href="#13adbcacf5e088f7979f0644a65372b4"></a><br></td></tr>
57 pam-fi 1.2 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollectionAction.html#077319900b1cde36b6baca9e6699ec5a">OnGood</a> (PamLevel2 *event)</td></tr>
58 pam-fi 1.1
59 pam-fi 1.2 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Routine for selected events. <a href="#077319900b1cde36b6baca9e6699ec5a"></a><br></td></tr>
60 pam-fi 1.1 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollectionAction.html#ef4ee9fd63c0d232e90694e068e6e339">OnBad</a> (PamLevel2 *event, int selectionResult)</td></tr>
61    
62     <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Routine for discarded events. <a href="#ef4ee9fd63c0d232e90694e068e6e339"></a><br></td></tr>
63 pam-fi 1.2 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollectionAction.html#3644c42bef3002c44202b6e9630bc1a4">Finalize</a> ()</td></tr>
64 pam-fi 1.1
65 pam-fi 1.2 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The finalization routine. <a href="#3644c42bef3002c44202b6e9630bc1a4"></a><br></td></tr>
66     <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="96783ca0685b2095bf519c17a057c926"></a><!-- doxytag: member="CollectionAction::GetName" ref="96783ca0685b2095bf519c17a057c926" args="()" -->
67     const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCollectionAction.html#96783ca0685b2095bf519c17a057c926">GetName</a> ()</td></tr>
68 pam-fi 1.1
69 pam-fi 1.2 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the action name. <br></td></tr>
70 pam-fi 1.1 </table>
71     <hr><a name="_details"></a><h2>Detailed Description</h2>
72     An abstract class that defines the interface of a generic collection action.
73     <p>
74 pam-fi 1.2 The <a class="el" href="classCollectionAction.html" title="An abstract class that defines the interface of a generic collection action.">CollectionAction</a> abstract class defines an interface for a generic action object which can be used to implement common actions that can be done by collections, like filling histograms or saving selected events. The structure of this class mimicks that of a standard collection: it has a <a class="el" href="classCollectionAction.html#13adbcacf5e088f7979f0644a65372b4" title="The initialization routine.">Setup()</a> and a <a class="el" href="classCollectionAction.html#3644c42bef3002c44202b6e9630bc1a4" title="The finalization routine.">Finalize()</a> methods that are meant to be called at the beginning and at the end of the selection procedure, respectively. In <a class="el" href="classCollectionAction.html#13adbcacf5e088f7979f0644a65372b4" title="The initialization routine.">Setup()</a> one can prepare the analysis actions like instantiating a histogram object (this can be done also in the constructor), while in <a class="el" href="classCollectionAction.html#3644c42bef3002c44202b6e9630bc1a4" title="The finalization routine.">Finalize()</a> the analysis can be closed by, eg., writing histograms on a file and closing that file. The two methods <a class="el" href="classCollectionAction.html#077319900b1cde36b6baca9e6699ec5a" title="Routine for selected events.">OnGood()</a> and <a class="el" href="classCollectionAction.html#ef4ee9fd63c0d232e90694e068e6e339" title="Routine for discarded events.">OnBad()</a> have exactly the same purpose they have in a Collection: to define action to perform each time an event is selected as good or bad. The class <a class="el" href="classSmartCollection.html" title="A collection class designed to use CollectionAction objects.">SmartCollection</a> is specially designed to handle <a class="el" href="classCollectionAction.html" title="An abstract class that defines the interface of a generic collection action.">CollectionAction</a> objects: see the documentation of <a class="el" href="classSmartCollection.html" title="A collection class designed to use CollectionAction objects.">SmartCollection</a> for info on how these objects are handled. <hr><h2>Constructor &amp; Destructor Documentation</h2>
75 pam-fi 1.1 <a class="anchor" name="35e6d0d0351e0fafe4b508faeb3598d6"></a><!-- doxytag: member="CollectionAction::CollectionAction" ref="35e6d0d0351e0fafe4b508faeb3598d6" args="(const char *actionName)" -->
76     <div class="memitem">
77     <div class="memproto">
78     <table class="memname">
79     <tr>
80     <td class="memname">CollectionAction::CollectionAction </td>
81     <td>(</td>
82     <td class="paramtype">const char *&nbsp;</td>
83     <td class="paramname"> <em>actionName</em> </td>
84     <td>&nbsp;)&nbsp;</td>
85     <td><code> [inline]</code></td>
86     </tr>
87     </table>
88     </div>
89     <div class="memdoc">
90    
91     <p>
92     Constructor.
93     <p>
94     <dl compact><dt><b>Parameters:</b></dt><dd>
95     <table border="0" cellspacing="2" cellpadding="0">
96     <tr><td valign="top"></td><td valign="top"><em>actionName</em>&nbsp;</td><td>The action's name. </td></tr>
97     </table>
98     </dl>
99    
100     </div>
101     </div><p>
102     <hr><h2>Member Function Documentation</h2>
103 pam-fi 1.2 <a class="anchor" name="3644c42bef3002c44202b6e9630bc1a4"></a><!-- doxytag: member="CollectionAction::Finalize" ref="3644c42bef3002c44202b6e9630bc1a4" args="()" -->
104 pam-fi 1.1 <div class="memitem">
105     <div class="memproto">
106     <table class="memname">
107     <tr>
108     <td class="memname">virtual void CollectionAction::Finalize </td>
109     <td>(</td>
110     <td class="paramname"> </td>
111     <td>&nbsp;)&nbsp;</td>
112 pam-fi 1.2 <td><code> [inline, virtual]</code></td>
113 pam-fi 1.1 </tr>
114     </table>
115     </div>
116     <div class="memdoc">
117    
118     <p>
119     The finalization routine.
120     <p>
121     This method is intended to be called at the end of the analysis. Its implementations contain the finalizing procedures, like writing histograms to file or printing reports. It is automatically called by <a class="el" href="classSmartCollection.html#8105730615ad127a482a7fb399695977" title="The post-analysis task definition.">SmartCollection::Finalize()</a>.
122 pam-fi 1.2 <p>Reimplemented in <a class="el" href="classChargeHistosAction.html#b0aa2e207eea6e8f80c89197f9705dbe">ChargeHistosAction</a>, <a class="el" href="classEvRateS11VsCutoffHistoAction.html#71062bd029caf54cb174b9b8df5ed6ad">EvRateS11VsCutoffHistoAction</a>, <a class="el" href="classFluxHistoAction.html#4565d0ea3ca0f895af489455dfd5ff04">FluxHistoAction</a>, and <a class="el" href="classSaveEventsAction.html#790f534c0a888c2a57814cd859b97270">SaveEventsAction</a>.</p>
123 pam-fi 1.1
124     </div>
125     </div><p>
126     <a class="anchor" name="ef4ee9fd63c0d232e90694e068e6e339"></a><!-- doxytag: member="CollectionAction::OnBad" ref="ef4ee9fd63c0d232e90694e068e6e339" args="(PamLevel2 *event, int selectionResult)" -->
127     <div class="memitem">
128     <div class="memproto">
129     <table class="memname">
130     <tr>
131     <td class="memname">virtual void CollectionAction::OnBad </td>
132     <td>(</td>
133     <td class="paramtype">PamLevel2 *&nbsp;</td>
134     <td class="paramname"> <em>event</em>, </td>
135     </tr>
136     <tr>
137     <td class="paramkey"></td>
138     <td></td>
139     <td class="paramtype">int&nbsp;</td>
140     <td class="paramname"> <em>selectionResult</em></td><td>&nbsp;</td>
141     </tr>
142     <tr>
143     <td></td>
144     <td>)</td>
145     <td></td><td></td><td><code> [inline, virtual]</code></td>
146     </tr>
147     </table>
148     </div>
149     <div class="memdoc">
150    
151     <p>
152     Routine for discarded events.
153     <p>
154 pam-fi 1.2 The concrete implementations define what to do when an event is discarded. This is conceptually the same as <a class="el" href="classPamCut.html#cbb3b507d79f20878fac4392ffa57acb" title="Post-selection tasks.">PamCut::OnBad()</a>. Call to this method is automatically done in <a class="el" href="classPamCut.html#cbb3b507d79f20878fac4392ffa57acb" title="Post-selection tasks.">SmartCollection::OnBad()</a>. This method is not pure virtual, since many times there's nothing to do when a cut fails; this way, it's not necessary to implement it in derived classes. Current implementation is void.<p>
155 pam-fi 1.1 <dl compact><dt><b>Parameters:</b></dt><dd>
156     <table border="0" cellspacing="2" cellpadding="0">
157     <tr><td valign="top"></td><td valign="top"><em>event</em>&nbsp;</td><td>The selected event. </td></tr>
158     <tr><td valign="top"></td><td valign="top"><em>selectionResult</em>&nbsp;</td><td>The code describing the reason of cut's failure (collections will automatically pass the index of the failed cut as selectionResult). </td></tr>
159     </table>
160     </dl>
161    
162     </div>
163     </div><p>
164 pam-fi 1.2 <a class="anchor" name="077319900b1cde36b6baca9e6699ec5a"></a><!-- doxytag: member="CollectionAction::OnGood" ref="077319900b1cde36b6baca9e6699ec5a" args="(PamLevel2 *event)" -->
165 pam-fi 1.1 <div class="memitem">
166     <div class="memproto">
167     <table class="memname">
168     <tr>
169     <td class="memname">virtual void CollectionAction::OnGood </td>
170     <td>(</td>
171     <td class="paramtype">PamLevel2 *&nbsp;</td>
172     <td class="paramname"> <em>event</em> </td>
173     <td>&nbsp;)&nbsp;</td>
174 pam-fi 1.2 <td><code> [inline, virtual]</code></td>
175 pam-fi 1.1 </tr>
176     </table>
177     </div>
178     <div class="memdoc">
179    
180     <p>
181     Routine for selected events.
182     <p>
183 pam-fi 1.2 The concrete implementations define what to do when an event is selected. This is conceptually the same as <a class="el" href="classPamCut.html#56021e959232270c12528ddec3062985" title="Post-selection tasks.">PamCut::OnGood()</a>. Call to this method is automatically done in <a class="el" href="classPamCut.html#56021e959232270c12528ddec3062985" title="Post-selection tasks.">SmartCollection::OnGood()</a>.<p>
184 pam-fi 1.1 <dl compact><dt><b>Parameters:</b></dt><dd>
185     <table border="0" cellspacing="2" cellpadding="0">
186     <tr><td valign="top"></td><td valign="top"><em>event</em>&nbsp;</td><td>The selected event. </td></tr>
187     </table>
188     </dl>
189    
190 pam-fi 1.2 <p>Reimplemented in <a class="el" href="classChargeHistosAction.html#315d81cbff24a228c85b648393d67107">ChargeHistosAction</a>, <a class="el" href="classEvRateS11VsCutoffHistoAction.html#bb38c1bcb9d3e52abd6f929db8577ac6">EvRateS11VsCutoffHistoAction</a>, <a class="el" href="classFluxHistoAction.html#363f9657ac69e1051449ec1907c04809">FluxHistoAction</a>, and <a class="el" href="classSaveEventsAction.html#47e8259afe7a68ba3c0adf3bd79fe52a">SaveEventsAction</a>.</p>
191 pam-fi 1.1
192     </div>
193     </div><p>
194     <a class="anchor" name="13adbcacf5e088f7979f0644a65372b4"></a><!-- doxytag: member="CollectionAction::Setup" ref="13adbcacf5e088f7979f0644a65372b4" args="(PamLevel2 *events)" -->
195     <div class="memitem">
196     <div class="memproto">
197     <table class="memname">
198     <tr>
199     <td class="memname">virtual void CollectionAction::Setup </td>
200     <td>(</td>
201     <td class="paramtype">PamLevel2 *&nbsp;</td>
202     <td class="paramname"> <em>events</em> </td>
203     <td>&nbsp;)&nbsp;</td>
204     <td><code> [inline, virtual]</code></td>
205     </tr>
206     </table>
207     </div>
208     <div class="memdoc">
209    
210     <p>
211     The initialization routine.
212     <p>
213     In this routine the initialization procedure is to be defined. <a class="el" href="classSmartCollection.html" title="A collection class designed to use CollectionAction objects.">SmartCollection</a> objects will call <a class="el" href="classCollectionAction.html#13adbcacf5e088f7979f0644a65372b4" title="The initialization routine.">Setup()</a> for each <a class="el" href="classCollectionAction.html" title="An abstract class that defines the interface of a generic collection action.">CollectionAction</a> object they hold during <a class="el" href="classSmartCollection.html#9b5b11a854b9e174218ea516ceffb34c" title="The pre-analysis task definition.">SmartCollection::Setup()</a>. This method is intended for some possible post-constructor initialization, like those who need to know the PamLevel2 object (eg., clone trees selection). This method is likely to be unnecessary most of the times, so it is implemented as a void function and it's not pure virtual.<p>
214     <dl compact><dt><b>Parameters:</b></dt><dd>
215     <table border="0" cellspacing="2" cellpadding="0">
216     <tr><td valign="top"></td><td valign="top"><em>events</em>&nbsp;</td><td>The PamLevel2 events which will be analyzed by the collection hosting the action. </td></tr>
217     </table>
218     </dl>
219    
220     <p>Reimplemented in <a class="el" href="classSaveEventsAction.html#3a59e42181c79dcd192b0be3d14a34c2">SaveEventsAction</a>.</p>
221    
222     </div>
223     </div><p>
224     <hr>The documentation for this class was generated from the following file:<ul>
225     <li>CollectionActions/CollectionAction/<a class="el" href="CollectionAction_8h_source.html">CollectionAction.h</a></ul>
226     </div>
227 pam-fi 1.2 <hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 5 15:09:02 2009 for PamCut by&nbsp;
228 pam-fi 1.1 <a href="http://www.doxygen.org/index.html">
229     <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
230     </body>
231     </html>

  ViewVC Help
Powered by ViewVC 1.1.23