1 |
\hypertarget{classSmartBlindCollection}{ |
2 |
\section{SmartBlindCollection Class Reference} |
3 |
\label{classSmartBlindCollection}\index{SmartBlindCollection@{SmartBlindCollection}} |
4 |
} |
5 |
A blind collection class designed to use \hyperlink{classCollectionAction}{CollectionAction} objects. |
6 |
|
7 |
|
8 |
{\tt \#include $<$SmartBlindCollection.h$>$} |
9 |
|
10 |
Inheritance diagram for SmartBlindCollection::\begin{figure}[H] |
11 |
\begin{center} |
12 |
\leavevmode |
13 |
\includegraphics[height=5cm]{classSmartBlindCollection} |
14 |
\end{center} |
15 |
\end{figure} |
16 |
\subsection*{Public Member Functions} |
17 |
\begin{CompactItemize} |
18 |
\item |
19 |
\hyperlink{classSmartBlindCollection_6db06d0395be553d8a47c35dd2e073d8}{SmartBlindCollection} (const char $\ast$collectionName) |
20 |
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item |
21 |
\hyperlink{classSmartBlindCollection_d7ec9e9dbbf154715793be1fd67da38f}{$\sim$SmartBlindCollection} () |
22 |
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item |
23 |
virtual void \hyperlink{classSmartBlindCollection_7b542909955a91fd5c5389ac45da4b95}{AddAction} (\hyperlink{classCollectionAction}{CollectionAction} \&action) |
24 |
\begin{CompactList}\small\item\em Adds an action to the \hyperlink{classSmartCollection}{SmartCollection}. \item\end{CompactList}\item |
25 |
\hyperlink{classCollectionAction}{CollectionAction} $\ast$ \hyperlink{classSmartBlindCollection_c0b0207c004fc4c04833a55e01535b8b}{GetAction} (unsigned int iAction) |
26 |
\begin{CompactList}\small\item\em Returns the iAction-th action. \item\end{CompactList}\item |
27 |
void \hyperlink{classSmartBlindCollection_e59d373921df00a54a8a8401a1ae2baf}{Setup} (PamLevel2 $\ast$events) |
28 |
\begin{CompactList}\small\item\em The pre-analysis task definition. \item\end{CompactList}\item |
29 |
void \hyperlink{classSmartBlindCollection_a78ee7b18b0913554e64b4e560453167}{Finalize} () |
30 |
\begin{CompactList}\small\item\em The post-analysis task definition. \item\end{CompactList}\item |
31 |
void \hyperlink{classSmartBlindCollection_d56853747b6484dec74fef529388ea28}{OnGood} (PamLevel2 $\ast$event) |
32 |
\begin{CompactList}\small\item\em Post-selection tasks. \item\end{CompactList}\item |
33 |
void \hyperlink{classSmartBlindCollection_f91282918f2ac3966b8ca491ef0ef634}{OnBad} (PamLevel2 $\ast$event, int selectionResult) |
34 |
\begin{CompactList}\small\item\em Post-selection tasks. \item\end{CompactList}\end{CompactItemize} |
35 |
\subsection*{Private Attributes} |
36 |
\begin{CompactItemize} |
37 |
\item |
38 |
std::vector$<$ \hyperlink{classCollectionAction}{CollectionAction} $\ast$ $>$ \hyperlink{classSmartBlindCollection_9b4458101732d32cb9262bffcb075007}{\_\-actions} |
39 |
\end{CompactItemize} |
40 |
|
41 |
|
42 |
\subsection{Detailed Description} |
43 |
A blind collection class designed to use \hyperlink{classCollectionAction}{CollectionAction} objects. |
44 |
|
45 |
The \hyperlink{classSmartBlindCollection}{SmartBlindCollection} class is designed to handle \hyperlink{classCollectionAction}{CollectionAction} objects. These defines the procedures to do when an event is selected or discarded. A \hyperlink{classSmartBlindCollection}{SmartBlindCollection} handles a vector of these objects, calling \hyperlink{classCollectionAction_801dd664020b71e8a3232e5a584d96a0}{CollectionAction::OnGood()} for each of them when a good event is selected and \hyperlink{classCollectionAction_ef4ee9fd63c0d232e90694e068e6e339}{CollectionAction::OnBad()} when a bad one is rejected. It will also call the \hyperlink{classCollectionAction_13adbcacf5e088f7979f0644a65372b4}{CollectionAction::Setup()} and \hyperlink{classCollectionAction_c32b42fc08bc1be7b003579b633de041}{CollectionAction::Finalize()} methods at the beginning and at the end of the analysis, respectively. This collection differs from \hyperlink{classSmartCollection}{SmartCollection} only because it-s blind, ie., it will apply all the cuts to each events, even if some of them fail. See \hyperlink{classBlindCutCollection}{BlindCutCollection} to get more info about blind collections. |
46 |
|
47 |
Definition at line 28 of file SmartBlindCollection.h. |
48 |
|
49 |
\subsection{Constructor \& Destructor Documentation} |
50 |
\hypertarget{classSmartBlindCollection_6db06d0395be553d8a47c35dd2e073d8}{ |
51 |
\index{SmartBlindCollection@{SmartBlindCollection}!SmartBlindCollection@{SmartBlindCollection}} |
52 |
\index{SmartBlindCollection@{SmartBlindCollection}!SmartBlindCollection@{SmartBlindCollection}} |
53 |
\subsubsection[{SmartBlindCollection}]{\setlength{\rightskip}{0pt plus 5cm}SmartBlindCollection::SmartBlindCollection (const char $\ast$ {\em collectionName})\hspace{0.3cm}{\tt \mbox{[}inline\mbox{]}}}} |
54 |
\label{classSmartBlindCollection_6db06d0395be553d8a47c35dd2e073d8} |
55 |
|
56 |
|
57 |
Constructor. |
58 |
|
59 |
\begin{Desc} |
60 |
\item[Parameters:] |
61 |
\begin{description} |
62 |
\item[{\em collectionName}]The collection's name. \end{description} |
63 |
\end{Desc} |
64 |
|
65 |
|
66 |
Definition at line 36 of file SmartBlindCollection.h.\hypertarget{classSmartBlindCollection_d7ec9e9dbbf154715793be1fd67da38f}{ |
67 |
\index{SmartBlindCollection@{SmartBlindCollection}!$\sim$SmartBlindCollection@{$\sim$SmartBlindCollection}} |
68 |
\index{$\sim$SmartBlindCollection@{$\sim$SmartBlindCollection}!SmartBlindCollection@{SmartBlindCollection}} |
69 |
\subsubsection[{$\sim$SmartBlindCollection}]{\setlength{\rightskip}{0pt plus 5cm}SmartBlindCollection::$\sim$SmartBlindCollection ()\hspace{0.3cm}{\tt \mbox{[}inline\mbox{]}}}} |
70 |
\label{classSmartBlindCollection_d7ec9e9dbbf154715793be1fd67da38f} |
71 |
|
72 |
|
73 |
Destructor. |
74 |
|
75 |
|
76 |
|
77 |
Definition at line 41 of file SmartBlindCollection.h. |
78 |
|
79 |
\subsection{Member Function Documentation} |
80 |
\hypertarget{classSmartBlindCollection_7b542909955a91fd5c5389ac45da4b95}{ |
81 |
\index{SmartBlindCollection@{SmartBlindCollection}!AddAction@{AddAction}} |
82 |
\index{AddAction@{AddAction}!SmartBlindCollection@{SmartBlindCollection}} |
83 |
\subsubsection[{AddAction}]{\setlength{\rightskip}{0pt plus 5cm}void SmartBlindCollection::AddAction ({\bf CollectionAction} \& {\em action})\hspace{0.3cm}{\tt \mbox{[}virtual\mbox{]}}}} |
84 |
\label{classSmartBlindCollection_7b542909955a91fd5c5389ac45da4b95} |
85 |
|
86 |
|
87 |
Adds an action to the \hyperlink{classSmartCollection}{SmartCollection}. |
88 |
|
89 |
|
90 |
|
91 |
Definition at line 12 of file SmartBlindCollection.cpp. |
92 |
|
93 |
References \_\-actions.\hypertarget{classSmartBlindCollection_a78ee7b18b0913554e64b4e560453167}{ |
94 |
\index{SmartBlindCollection@{SmartBlindCollection}!Finalize@{Finalize}} |
95 |
\index{Finalize@{Finalize}!SmartBlindCollection@{SmartBlindCollection}} |
96 |
\subsubsection[{Finalize}]{\setlength{\rightskip}{0pt plus 5cm}void SmartBlindCollection::Finalize ()\hspace{0.3cm}{\tt \mbox{[}virtual\mbox{]}}}} |
97 |
\label{classSmartBlindCollection_a78ee7b18b0913554e64b4e560453167} |
98 |
|
99 |
|
100 |
The post-analysis task definition. |
101 |
|
102 |
This override of the \hyperlink{classSmartBlindCollection_a78ee7b18b0913554e64b4e560453167}{Finalize()} method calls \hyperlink{classPamCutCollection_15785c75fb13b998422739e741bb5c01}{BlindCutCollection::Finalize()} and then the \hyperlink{classSmartBlindCollection_a78ee7b18b0913554e64b4e560453167}{Finalize()} method of each action contained in the \hyperlink{classSmartCollection}{SmartCollection}. |
103 |
|
104 |
Reimplemented from \hyperlink{classPamCutCollection_15785c75fb13b998422739e741bb5c01}{PamCutCollection}. |
105 |
|
106 |
Reimplemented in \hyperlink{classVerboseBlindCollection_43d6ea7b5ea35c5dbb342e23584b79ee}{VerboseBlindCollection}. |
107 |
|
108 |
Definition at line 33 of file SmartBlindCollection.cpp. |
109 |
|
110 |
References \_\-actions.\hypertarget{classSmartBlindCollection_c0b0207c004fc4c04833a55e01535b8b}{ |
111 |
\index{SmartBlindCollection@{SmartBlindCollection}!GetAction@{GetAction}} |
112 |
\index{GetAction@{GetAction}!SmartBlindCollection@{SmartBlindCollection}} |
113 |
\subsubsection[{GetAction}]{\setlength{\rightskip}{0pt plus 5cm}{\bf CollectionAction} $\ast$ SmartBlindCollection::GetAction (unsigned int {\em iAction})}} |
114 |
\label{classSmartBlindCollection_c0b0207c004fc4c04833a55e01535b8b} |
115 |
|
116 |
|
117 |
Returns the iAction-th action. |
118 |
|
119 |
\begin{Desc} |
120 |
\item[Parameters:] |
121 |
\begin{description} |
122 |
\item[{\em iAction}]The index of the desired \hyperlink{classCollectionAction}{CollectionAction}, defined as the insertion order (from 0 to \#actions-1, see \hyperlink{classSmartBlindCollection_7b542909955a91fd5c5389ac45da4b95}{AddAction()}). \end{description} |
123 |
\end{Desc} |
124 |
\begin{Desc} |
125 |
\item[Returns:]pointer to the iAction-th action; NULL if the specified action cannot be found or if no actions are present. \end{Desc} |
126 |
|
127 |
|
128 |
Definition at line 16 of file SmartBlindCollection.cpp. |
129 |
|
130 |
References \_\-actions.\hypertarget{classSmartBlindCollection_f91282918f2ac3966b8ca491ef0ef634}{ |
131 |
\index{SmartBlindCollection@{SmartBlindCollection}!OnBad@{OnBad}} |
132 |
\index{OnBad@{OnBad}!SmartBlindCollection@{SmartBlindCollection}} |
133 |
\subsubsection[{OnBad}]{\setlength{\rightskip}{0pt plus 5cm}void SmartBlindCollection::OnBad (PamLevel2 $\ast$ {\em event}, \/ int {\em selectionResult})\hspace{0.3cm}{\tt \mbox{[}virtual\mbox{]}}}} |
134 |
\label{classSmartBlindCollection_f91282918f2ac3966b8ca491ef0ef634} |
135 |
|
136 |
|
137 |
Post-selection tasks. |
138 |
|
139 |
This routine is automatically called after a bad event has been rejected by \hyperlink{classBlindCutCollection_8d387de8cbc54ff0eab8cff220b49c20}{ApplyCut()}. It will simply call \hyperlink{classPamCut_cbb3b507d79f20878fac4392ffa57acb}{BlindCutCollection::OnBad()} and then \hyperlink{classCollectionAction_ef4ee9fd63c0d232e90694e068e6e339}{CollectionAction::OnBad()} for each action in the \hyperlink{classSmartCollection}{SmartCollection}. |
140 |
|
141 |
\begin{Desc} |
142 |
\item[See also:]\hyperlink{classSmartBlindCollection_d56853747b6484dec74fef529388ea28}{OnGood} \end{Desc} |
143 |
\begin{Desc} |
144 |
\item[Parameters:] |
145 |
\begin{description} |
146 |
\item[{\em event}]The event which don't satisfy the cut. \item[{\em selectionResult}]The return value of the \hyperlink{classBlindCutCollection_016ee86612e57a50f03c8469d3ed9d1f}{Check()} routine. \end{description} |
147 |
\end{Desc} |
148 |
|
149 |
|
150 |
Reimplemented from \hyperlink{classPamCut_cbb3b507d79f20878fac4392ffa57acb}{PamCut}. |
151 |
|
152 |
Definition at line 49 of file SmartBlindCollection.cpp. |
153 |
|
154 |
References \_\-actions.\hypertarget{classSmartBlindCollection_d56853747b6484dec74fef529388ea28}{ |
155 |
\index{SmartBlindCollection@{SmartBlindCollection}!OnGood@{OnGood}} |
156 |
\index{OnGood@{OnGood}!SmartBlindCollection@{SmartBlindCollection}} |
157 |
\subsubsection[{OnGood}]{\setlength{\rightskip}{0pt plus 5cm}void SmartBlindCollection::OnGood (PamLevel2 $\ast$ {\em event})\hspace{0.3cm}{\tt \mbox{[}virtual\mbox{]}}}} |
158 |
\label{classSmartBlindCollection_d56853747b6484dec74fef529388ea28} |
159 |
|
160 |
|
161 |
Post-selection tasks. |
162 |
|
163 |
This routine is automatically called after a good event has been selected by \hyperlink{classBlindCutCollection_8d387de8cbc54ff0eab8cff220b49c20}{ApplyCut()}. It will simply call \hyperlink{classPamCut_56021e959232270c12528ddec3062985}{BlindCutCollection::OnGood()} and then \hyperlink{classCollectionAction_801dd664020b71e8a3232e5a584d96a0}{CollectionAction::OnGood()} for each action in the \hyperlink{classSmartCollection}{SmartCollection}. \begin{Desc} |
164 |
\item[Parameters:] |
165 |
\begin{description} |
166 |
\item[{\em event}]The event which satisfy the cut. \end{description} |
167 |
\end{Desc} |
168 |
|
169 |
|
170 |
Reimplemented from \hyperlink{classPamCut_56021e959232270c12528ddec3062985}{PamCut}. |
171 |
|
172 |
Definition at line 41 of file SmartBlindCollection.cpp. |
173 |
|
174 |
References \_\-actions.\hypertarget{classSmartBlindCollection_e59d373921df00a54a8a8401a1ae2baf}{ |
175 |
\index{SmartBlindCollection@{SmartBlindCollection}!Setup@{Setup}} |
176 |
\index{Setup@{Setup}!SmartBlindCollection@{SmartBlindCollection}} |
177 |
\subsubsection[{Setup}]{\setlength{\rightskip}{0pt plus 5cm}void SmartBlindCollection::Setup (PamLevel2 $\ast$ {\em events})\hspace{0.3cm}{\tt \mbox{[}virtual\mbox{]}}}} |
178 |
\label{classSmartBlindCollection_e59d373921df00a54a8a8401a1ae2baf} |
179 |
|
180 |
|
181 |
The pre-analysis task definition. |
182 |
|
183 |
This override of the \hyperlink{classSmartBlindCollection_e59d373921df00a54a8a8401a1ae2baf}{Setup()} method calls \hyperlink{classSmartBlindCollection_e59d373921df00a54a8a8401a1ae2baf}{Setup()} for the base class \hyperlink{classBlindCutCollection}{BlindCutCollection}, and subsequently for each action contained in the \hyperlink{classSmartCollection}{SmartCollection}. |
184 |
|
185 |
\begin{Desc} |
186 |
\item[Parameters:] |
187 |
\begin{description} |
188 |
\item[{\em events}]The PamLevel2 pointer to the events that will be analyzed. Used only as parameter for \hyperlink{classCollectionAction_13adbcacf5e088f7979f0644a65372b4}{CollectionAction::Setup()}. \end{description} |
189 |
\end{Desc} |
190 |
|
191 |
|
192 |
Reimplemented from \hyperlink{classPamCutCollection_982821389af5e585688611d733b3a7b0}{PamCutCollection}. |
193 |
|
194 |
Definition at line 25 of file SmartBlindCollection.cpp. |
195 |
|
196 |
References \_\-actions. |
197 |
|
198 |
\subsection{Member Data Documentation} |
199 |
\hypertarget{classSmartBlindCollection_9b4458101732d32cb9262bffcb075007}{ |
200 |
\index{SmartBlindCollection@{SmartBlindCollection}!\_\-actions@{\_\-actions}} |
201 |
\index{\_\-actions@{\_\-actions}!SmartBlindCollection@{SmartBlindCollection}} |
202 |
\subsubsection[{\_\-actions}]{\setlength{\rightskip}{0pt plus 5cm}std::vector$<${\bf CollectionAction}$\ast$$>$ {\bf SmartBlindCollection::\_\-actions}\hspace{0.3cm}{\tt \mbox{[}private\mbox{]}}}} |
203 |
\label{classSmartBlindCollection_9b4458101732d32cb9262bffcb075007} |
204 |
|
205 |
|
206 |
|
207 |
|
208 |
Definition at line 95 of file SmartBlindCollection.h. |
209 |
|
210 |
Referenced by AddAction(), Finalize(), GetAction(), OnBad(), OnGood(), and Setup(). |
211 |
|
212 |
The documentation for this class was generated from the following files:\begin{CompactItemize} |
213 |
\item |
214 |
Collections/SmartBlindCollection/\hyperlink{SmartBlindCollection_8h}{SmartBlindCollection.h}\item |
215 |
Collections/SmartBlindCollection/\hyperlink{SmartBlindCollection_8cpp}{SmartBlindCollection.cpp}\end{CompactItemize} |