00001
00002
00003
00004
00005
00006
00007
00010 #ifndef SAVEEVENTSACTION_H_
00011 #define SAVEEVENTSACTION_H_
00012
00013 #include "../CollectionAction/CollectionAction.h"
00014
00019 class SaveEventsAction: public CollectionAction {
00020
00021 public:
00031 SaveEventsAction(const char *actionName, TString outFileName, TString outOptions = TString(""));
00032
00034 ~SaveEventsAction() {
00035 }
00036
00043 void Setup(PamLevel2 *events);
00044
00049 void OnGood(PamLevel2 *event);
00050
00052 void Finalize();
00053
00054 private:
00055
00056 TFile *_outTreeFile;
00057 PamLevel2 *_events;
00058 TString _outOptions;
00059 };
00060
00061 #endif