// $Id$ // // File: DEventProcessor_splitoffs.h // Created: Tue Mar 16 16:05:43 EDT 2010 // Creator: davidl (on Darwin harriet.jlab.org 9.8.0 i386) // #ifndef _DEventProcessor_splitoffs_ #define _DEventProcessor_splitoffs_ #include #include #include #include #include #include "Event.h" class DEventProcessor_splitoffs:public jana::JEventProcessor{ public: DEventProcessor_splitoffs(); ~DEventProcessor_splitoffs(); const char* className(void){return "DEventProcessor_splitoffs";} TH2D *dolbyc; TH1D *Nphoton; TH1D *Nbcal_elements_per_cluster; TH1D *Nfcal_elements_per_cluster; TTree *evt_tree; Event *evt; private: 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. pthread_mutex_t mutex; }; #endif // _DEventProcessor_splitoffs_