// $Id$ // // File: JEventProcessor_cpp_tree.h // Created: Tue May 26 09:55:48 EDT 2015 // Creator: davidl (on Darwin harriet.jlab.org 13.4.0 i386) // #ifndef _JEventProcessor_cpp_tree_ #define _JEventProcessor_cpp_tree_ #include #include #include "cppinfo.h" class JEventProcessor_cpp_tree:public jana::JEventProcessor{ public: JEventProcessor_cpp_tree(); ~JEventProcessor_cpp_tree(); const char* className(void){return "JEventProcessor_cpp_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. double CalcPsi(TLorentzVector &pip, TLorentzVector &pipi); cppinfo *cppinfo_ptr; cppinfo cppinfo_obj; TTree *cpptree; }; #endif // _JEventProcessor_cpp_tree_