Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DReaction_factory_Z2pi_trees.h
Go to the documentation of this file.
1 // $Id$
2 // DReaction_factory_Z2pi_trees.h, modeled after DReaction_factory_p2pi_trees.h
3 //
4 // File: DReaction_factory_p2pi_trees.h
5 // Created: Wed Mar 29 16:34:58 EDT 2017
6 // Creator: elton (on Linux ifarm1401.jlab.org 3.10.0-327.el7.x86_64 x86_64)
7 //
8 
9 #ifndef _DReaction_factory_Z2pi_trees_
10 #define _DReaction_factory_Z2pi_trees_
11 
12 #include <iostream>
13 #include <iomanip>
14 
15 #include <JANA/JFactory.h>
16 #include <ANALYSIS/DReaction.h>
18 #include <ANALYSIS/DCutActions.h>
19 
20 using namespace std;
21 using namespace jana;
22 
23 class DReaction_factory_Z2pi_trees : public jana::JFactory<DReaction>
24 {
25  public:
27  {
28  // This is so that the created DReaction objects persist throughout the life of the program instead of being cleared each event.
29  SetFactoryFlag(PERSISTANT);
30  }
31  const char* Tag(void){return "Z2pi_trees";}
32 
33  private:
34  jerror_t brun(JEventLoop* locEventLoop, int32_t locRunNumber);
35  jerror_t evnt(JEventLoop* locEventLoop, uint64_t locEventNumber);
36  jerror_t fini(void); ///< Called after last event of last event source has been processed.
37 
39  deque<DReactionStep*> dReactionStepPool; //to prevent memory leaks
40 };
41 
42 #endif // _DReaction_factory_Z2pi_trees_
43 
deque< DReactionStep * > dReactionStepPool