// Author: David Lawrence June 25, 2004 // // // MyProcessor.h // /// Example program for a Hall-D analyzer which uses DANA /// #include "DEventProcessor.h" #include "DEventLoop.h" #include #include //#include "CDCHitCopy.h" //#include "FCALHitCopy.h" class MyProcessor:public DEventProcessor { public: derror_t init(void); ///< Called once at program start. derror_t brun(int runnumber){return NOERROR;}; ///< Called everytime a new run number is detected. derror_t evnt(int eventnumber); ///< Called every event. derror_t erun(void){return NOERROR;}; ///< Called everytime run number changes, provided brun has been called. derror_t fini(void); ///< Called after last event of last event source has been processed. TFile *ROOTfile; TTree *ROOTtree; //CDCHitCopy *ROOTcdchit; //FCALHitCopy *ROOTfcalhit; };