PamCut: CollectionActions/SaveEventsAction/SaveEventsAction.h Source File

- Main Page
- Classes
- Files

- File List
- File Members

# CollectionActions/SaveEventsAction/SaveEventsAction.h

Go to the documentation of this file.

    00001 /*
    00002  * SaveEventsAction.h
    00003  *
    00004  *  Created on: 16-mag-2009
    00005  *      Author: Nicola Mori
    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 /* SAVEEVENTSACTION_H_ */