// $Id$ // // File: DReaction_factory_bcal_eta.h // Created: Fri Jul 18 12:21:01 EDT 2014 // Creator: jrsteven (on Linux ifarm1102 2.6.32-220.7.1.el6.x86_64 x86_64) // #ifndef _DReaction_factory_bcal_eta_ #define _DReaction_factory_bcal_eta_ #include #include #include #include #include #include using namespace std; using namespace jana; class DReaction_factory_bcal_eta : public jana::JFactory { public: DReaction_factory_bcal_eta() { // This is so that the created DReaction objects persist throughout the life of the program instead of being cleared each event. SetFactoryFlag(PERSISTANT); } const char* Tag(void){return "bcal_eta";} private: jerror_t brun(JEventLoop* locEventLoop, int32_t locRunNumber); ///< Called once at program start. jerror_t evnt(JEventLoop* locEventLoop, uint64_t locEventNumber);///< Called once at program start. jerror_t fini(void); ///< Called after last event of last event source has been processed. double dBeamBunchPeriod; deque dReactionStepPool; //to prevent memory leaks }; #endif // _DReaction_factory_bcal_eta_