// $Id$ // // File: JEventProcessor_fmwpcview.h // Created: Fri Oct 3 08:14:14 EDT 2014 // Creator: davidl (on Darwin harriet.jlab.org 13.4.0 i386) // #ifndef _JEventProcessor_fmwpcview_ #define _JEventProcessor_fmwpcview_ #include using std::set; #include #include #include using namespace jana; #include "jv_mainframe.h" class JEventProcessor_fmwpcview:public jana::JEventProcessor{ public: JEventProcessor_fmwpcview(); ~JEventProcessor_fmwpcview(); const char* className(void){return "JEventProcessor_fmwpcview";} pthread_mutex_t mutex; pthread_cond_t cond; JEventLoop *loop; int eventnumber; int Nrows; int Ncols; int id_start; void Lock(void){pthread_mutex_lock(&mutex);} void Unlock(void){pthread_mutex_unlock(&mutex);} void NextEvent(void); void DrawHistos(void); private: jerror_t init(void); ///< Called once at program start. jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event. jerror_t erun(void); ///< 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. }; extern JEventProcessor_fmwpcview *JEP; #endif // _JEventProcessor_fmwpcview_