// $Id$ // // File: DReaction_factory_ppi0gamma_hists.h // Created: Wed Mar 11 20:34:22 EDT 2015 // Creator: jrsteven (on Linux halldw1.jlab.org 2.6.32-504.8.1.el6.x86_64 x86_64) // #ifndef _DReaction_factory_ppi0gamma_hists_ #define _DReaction_factory_ppi0gamma_hists_ #include #include #include #include #include #include #include "DCustomAction_ppi0gamma_Pi0Cuts.h" #include "DCustomAction_ppi0gamma_hists.h" using namespace std; using namespace jana; class DReaction_factory_ppi0gamma_hists : public jana::JFactory { public: DReaction_factory_ppi0gamma_hists() { // 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 "ppi0gamma_hists";} private: jerror_t brun(JEventLoop* locEventLoop, int32_t locRunNumber); jerror_t evnt(JEventLoop* locEventLoop, uint64_t locEventNumber); jerror_t fini(void); ///< Called after last event of last event source has been processed. double dBeamBunchPeriod; deque dReactionStepPool; //to prevent memory leaks void PIDCuts(DReaction* locReaction); }; #endif // _DReaction_factory_ppi0gamma_hists_