--- PamCut/doc/Doxygen/html/classCollectionAction.html 2009/05/27 13:30:07 1.1.1.1 +++ PamCut/doc/Doxygen/html/classCollectionAction.html 2009/09/25 15:41:58 1.3 @@ -47,34 +47,31 @@  CollectionAction (const char *actionName)  Constructor.
-virtual ~CollectionAction () + +virtual ~CollectionAction () - Destructor.
+ Destructor.
virtual void Setup (PamLevel2 *events)  The initialization routine.
-virtual void OnGood (PamLevel2 *event)=0 +virtual void OnGood (PamLevel2 *event) - Routine for selected events.
+ Routine for selected events.
virtual void OnBad (PamLevel2 *event, int selectionResult)  Routine for discarded events.
-virtual void Finalize ()=0 +virtual void Finalize () - The finalization routine.
-const char * GetName () - - Returns the action name.
-

Private Attributes

-const char * _actionName + The finalization routine.
+ +const char * GetName () + Returns the action name.

Detailed Description

An abstract class that defines the interface of a generic collection action.

-The CollectionAction 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 Setup() and a Finalize() methods that are meant to be called at the beginning and at the end of the selection procedure, respectively. In Setup() one can prepare the analysis actions like instantiating a histogram object (this can be done also in the constructor), while in Finalize() the analysis can be closed by, eg., writing histograms on a file and closing that file. The two methods OnGood() and OnBad() 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 SmartCollection is specially designed to handle CollectionAction objects: see the documentation of SmartCollection for info on how these objects are handled. -

Definition at line 30 of file CollectionAction.h.

-

Constructor & Destructor Documentation

+The CollectionAction 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 Setup() and a Finalize() methods that are meant to be called at the beginning and at the end of the selection procedure, respectively. In Setup() one can prepare the analysis actions like instantiating a histogram object (this can be done also in the constructor), while in Finalize() the analysis can be closed by, eg., writing histograms on a file and closing that file. The two methods OnGood() and OnBad() 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 SmartCollection is specially designed to handle CollectionAction objects: see the documentation of SmartCollection for info on how these objects are handled.

Constructor & Destructor Documentation

@@ -100,35 +97,10 @@ -

Definition at line 37 of file CollectionAction.h.

- -
-

- -

-
- - - - - - - - -
virtual CollectionAction::~CollectionAction (  )  [inline, virtual]
-
-
- -

-Destructor. -

- -

Definition at line 41 of file CollectionAction.h.

-


Member Function Documentation

- +
@@ -137,7 +109,7 @@ - +
(  )  [pure virtual] [inline, virtual]
@@ -147,34 +119,7 @@ The finalization routine.

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 SmartCollection::Finalize(). -

Implemented in ChargeHistosAction, EvRateS11VsCutoffHistoAction, FluxHistoAction, and SaveEventsAction.

- -
-

- -

-
- - - - - - - - -
const char* CollectionAction::GetName (  )  [inline]
-
-
- -

-Returns the action name. -

- -

Definition at line 89 of file CollectionAction.h.

- -

References _actionName.

- -

Referenced by FluxHistoAction::Finalize().

+

Reimplemented in ChargeHistosAction, EvRateS11VsCutoffHistoAction, FluxHistoAction, and SaveEventsAction.

@@ -206,7 +151,7 @@

Routine for discarded events.

-The concrete implementations define what to do when an event is discarded. This is conceptually the same as PamCut::OnBad(). Call to this method is automatically done in SmartCollection::OnBad(). 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.

+The concrete implementations define what to do when an event is discarded. This is conceptually the same as PamCut::OnBad(). Call to this method is automatically done in SmartCollection::OnBad(). 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.

Parameters:
@@ -214,11 +159,9 @@
event The selected event.
-

Definition at line 78 of file CollectionAction.h.

-

- +

@@ -228,7 +171,7 @@ - +
PamLevel2 *  event  )  [pure virtual] [inline, virtual]
@@ -237,14 +180,14 @@

Routine for selected events.

-The concrete implementations define what to do when an event is selected. This is conceptually the same as PamCut::OnGood(). Call to this method is automatically done in SmartCollection::OnGood().

+The concrete implementations define what to do when an event is selected. This is conceptually the same as PamCut::OnGood(). Call to this method is automatically done in SmartCollection::OnGood().

Parameters:
event The selected event.
-

Implemented in ChargeHistosAction, EvRateS11VsCutoffHistoAction, FluxHistoAction, and SaveEventsAction.

+

Reimplemented in ChargeHistosAction, EvRateS11VsCutoffHistoAction, FluxHistoAction, and SaveEventsAction.

@@ -276,34 +219,12 @@

Reimplemented in SaveEventsAction.

-

Definition at line 55 of file CollectionAction.h.

- - -

-


Member Data Documentation

- -
-
- - - - -
const char* CollectionAction::_actionName [private]
-
-
- -

- -

Definition at line 94 of file CollectionAction.h.

- -

Referenced by GetName().

-


The documentation for this class was generated from the following file: -
Generated on Wed May 27 15:21:36 2009 for PamCut by  +
Generated on Fri Jun 5 15:09:02 2009 for PamCut by  doxygen 1.5.9