Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DReaction_factory_p2gamma_hists.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DReaction_factory_p2gamma_hists.h
4 // Created: Tue Apr 28 21:19:40 EDT 2015
5 // Creator: jrsteven (on Linux ifarm1401 2.6.32-431.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _DReaction_factory_p2gamma_hists_
9 #define _DReaction_factory_p2gamma_hists_
10 
11 #include <iostream>
12 #include <iomanip>
13 
14 #include <JANA/JFactory.h>
15 #include <ANALYSIS/DReaction.h>
17 #include <ANALYSIS/DCutActions.h>
18 
22 
23 using namespace std;
24 using namespace jana;
25 
26 class DReaction_factory_p2gamma_hists : public jana::JFactory<DReaction>
27 {
28  public:
30  {
31  // This is so that the created DReaction objects persist throughout the life of the program instead of being cleared each event.
32  SetFactoryFlag(PERSISTANT);
33  }
34  const char* Tag(void){return "p2gamma_hists";}
35 
36  private:
37  jerror_t init(void); ///< Called once at program start.
38  jerror_t fini(void); ///< Called after last event of last event source has been processed.
39 
40  deque<DReactionStep*> dReactionStepPool; //to prevent memory leaks
41 };
42 
43 #endif // _DReaction_factory_p2gamma_hists_
44