// Author: Mark Ito $Id$ // // // DTrack_factory_MMI.h // /// Example program for a Hall-D analyzer which uses DANA /// #ifndef _MYPROCESSOR_H_ #define _MYPROCESSOR_H_ #include #include #include #include #include #include class DTrack_factory_MMI:public JFactory { public: DTrack_factory_MMI(); ~DTrack_factory_MMI(); const char* Tag(void){return "MMI";} 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_