// $Id$ // // File: JEventProcessor_bcal_timing12.h // Created: Mon Aug 1 08:51:12 EDT 2011 // Creator: davidl (on Linux ifarm1102 2.6.18-128.7.1.el5 x86_64) // #ifndef _JEventProcessor_bcal_timing12_ #define _JEventProcessor_bcal_timing12_ #include #include class JEventProcessor_bcal_timing12:public jana::JEventProcessor{ public: JEventProcessor_bcal_timing12(); ~JEventProcessor_bcal_timing12(); const char* className(void){return "JEventProcessor_bcal_timing12";} typedef struct{ int event; int layer; int sector; int fADC_up; int fADC_dn; float Etot; float geometric_mean; float tup; float tdn; float tup_corrected; float tdn_corrected; float theta_thrown; float E_thrown; }HIT_t; HIT_t hit; TTree *hit_tree; 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 root_mutex; }; #endif // _JEventProcessor_bcal_timing12_