// Author: David Lawrence June 25, 2004 // // // MyProcessor.h // /// Example program for a Hall-D analyzer which uses DANA /// #ifndef _MYPROCESSOR_H_ #define _MYPROCESSOR_H_ #include #include "HDGEOMETRY/DMagneticFieldMap.h" #include "FDC/DFDCSegment_factory.h" #include #include class MyProcessor:public JEventProcessor { public: MyProcessor(); ~MyProcessor(); jerror_t init(void); ///< Called once at program start. jerror_t brun(JEventLoop *eventLoop, int runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(JEventLoop *eventLoop, int eventnumber); ///< Called every event. int eventNo; jerror_t erun(void); jerror_t fini(void); int debug_level; private: const DMagneticFieldMap *bfield; DFDCSegment_factory *segment_factory; ofstream *fdcDataFile; ofstream *cdcDataFile; ofstream *trajFile; ofstream *signatureFile; TH1F *hPsHits; TH1F *hPTot; TFile *rootfile; }; #endif // _MYPROCESSOR_H_