// $Id$ // // File: JEventProcessor_pipolarization.h // Created: Tue Apr 17 08:12:00 EDT 2012 // Creator: davidl (on Darwin genmacbook-wireless.jlab.org 11.3.0 i386) // #ifndef _JEventProcessor_pipolarization_ #define _JEventProcessor_pipolarization_ #include #include #include class JEventProcessor_pipolarization:public jana::JEventProcessor{ public: JEventProcessor_pipolarization(); ~JEventProcessor_pipolarization(); const char* className(void){return "JEventProcessor_pipolarization";} typedef struct { float t; float phi_pipi; float theta; float psi; float Wpipi; }KinematicInfo_t; TTree *thrown_tree; KinematicInfo_t kinfo; 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_rwlock_t root_lock; }; #endif // _JEventProcessor_pipolarization_