SaveEventsAction Class Reference

An action that saves the selected events. More...

#include <SaveEventsAction.h>

Inheritance diagram for SaveEventsAction:

CollectionAction

List of all members.

Public Member Functions

 SaveEventsAction (const char *actionName, TString outFileName, TString outOptions=TString(""))
 Constructor.
 ~SaveEventsAction ()
 Destructor.
void Setup (PamLevel2 *events)
 The setup procedure.
void OnGood (PamLevel2 *event)
 Fills the tree with the selected event.
void Finalize ()
 Writes the tree of saved events to the output file.


Detailed Description

An action that saves the selected events.

This action saves the selected events into a ROOT file.


Constructor & Destructor Documentation

SaveEventsAction::SaveEventsAction ( const char *  actionName,
TString  outFileName,
TString  outOptions = TString("") 
)

Constructor.

outOptions is to be passed as the argument of a PamLevel2::SetWhichTrees() call, so it must be encoded in a compatible format. See the PamLevel2 documentation.

Parameters:
actionName The action's name.
outFileName The output file name, with path (absolute or relative).
outOptions The output options.


Member Function Documentation

void SaveEventsAction::OnGood ( PamLevel2 *  event  )  [virtual]

Fills the tree with the selected event.

Parameters:
event The selected event.

Reimplemented from CollectionAction.

void SaveEventsAction::Setup ( PamLevel2 *  events  )  [virtual]

The setup procedure.

This routine will set the trees to be saved, by calling PamLevel2::SetWhichTrees().

Parameters:
events The events pointer.

Reimplemented from CollectionAction.


The documentation for this class was generated from the following files:

Generated on Fri Jun 5 15:09:04 2009 for PamCut by  doxygen 1.5.9