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