#include <SaveEventsAction.h>
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. |
This action saves the selected events into a ROOT file.
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.
actionName | The action's name. | |
outFileName | The output file name, with path (absolute or relative). | |
outOptions | The output options. |
void SaveEventsAction::OnGood | ( | PamLevel2 * | event | ) | [virtual] |
Fills the tree with the selected event.
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().
events | The events pointer. |
Reimplemented from CollectionAction.