// $Id$ // // File: DEventProcessor_bcal_calib.h // Created: Fri Jun 3 00:15:38 EDT 2011 // Creator: davidl (on Linux ifarml1 2.6.18-128.el5) // #ifndef _DEventProcessor_bcal_calib_ #define _DEventProcessor_bcal_calib_ #include #include #include #include #include #include "ReconPhoton.h" #include "BCALHit.h" class DMCTrajectoryPoint; class DEventProcessor_bcal_calib:public jana::JEventProcessor{ public: DEventProcessor_bcal_calib(); ~DEventProcessor_bcal_calib(); const char* className(void){return "DEventProcessor_bcal_calib";} TH1D *Nshower; TH1D *Nhits_per_shower; TTree *reconPhoton_tree; ReconPhoton *reconPhoton; TTree *bcalHit_tree; BCALHit *bcalHit; 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_bcal_calib_