// Author: David Lawrence Sat Jan 29 09:37:37 EST 2011 // // // MyProcessor.h // /// Processor for mcsmear /// #include #include #include using namespace jana; #include class MyProcessor:public JEventProcessor { public: jerror_t init(void); ///< Called once at program start. jerror_t brun(JEventLoop *loop, int runnumber){return NOERROR;} ///< Called everytime a new run number is detected. jerror_t evnt(JEventLoop *loop, int eventnumber); ///< Called every event. jerror_t erun(void){return NOERROR;} ///< Called everytime run number changes, provided brun has been called. jerror_t fini(void); ///< Called after last event of last event source has been processed. s_iostream_t *file; unsigned long Nevents_written; pthread_mutex_t output_file_mutex; };