// $Id$ // // File: MyProcessor.h // Created: Wed Nov 30 07:12:58 EST 2011 // Creator: davidl (on Linux ifarm1101 2.6.18-128.7.1.el5 x86_64) // #ifndef _MyProcessor_ #define _MyProcessor_ #include #include #include #include #include #include #include #include #include class fcal11_mainframe; class fcal11_fADCviewer; class MyProcessor; extern MyProcessor *gMYPROC; class MyProcessor:public jana::JEventProcessor{ public: MyProcessor(); ~MyProcessor(); const char* className(void){return "MyProcessor";} jerror_t init(void); ///< Called once at program start. jerror_t brun(jana::JEventLoop *eventLoop, int runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(jana::JEventLoop *eventLoop, int 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. bool SoftwareTrigger(void); void UpdateBlocks(void); void UpdatePaddles(void); void UpdateHisto(void); void UpdateSignals(void); private: fcal11_mainframe *fcal11mf; jana::JEventLoop *loop; jana::JEvent last_jevent; TH1D *hsamples; TH1D *hsignals[5][5]; }; #endif // _MyProcessor_