Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DAnalysisUtilities_factory.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DAnalysisUtilities_factory.h
4 // Created: Mon Feb 28 14:12:16 EST 2011
5 // Creator: pmatt (on Linux ifarml1 2.6.18-128.el5 x86_64)
6 //
7 
8 #ifndef _DAnalysisUtilities_factory_
9 #define _DAnalysisUtilities_factory_
10 
11 #include <JANA/JFactory.h>
12 #include "DAnalysisUtilities.h"
13 
14 class DAnalysisUtilities_factory : public jana::JFactory<DAnalysisUtilities>
15 {
16  public:
19 
20  //------------------
21  // brun
22  //------------------
23  jerror_t brun(JEventLoop *loop, int32_t runnumber)
24  {
25  // See note in DTAGMGeometry_factory
26  SetFactoryFlag(NOT_OBJECT_OWNER);
27  ClearFactoryFlag(WRITE_TO_OUTPUT);
28 
30 
32 
33  return NOERROR;
34  }
35 
36  //------------------
37  // evnt
38  //------------------
39  jerror_t evnt(JEventLoop *loop, uint64_t eventnumber)
40  {
41  // Reuse existing DAnalysisUtilities object.
42  if( analysisutilities ) _data.push_back( analysisutilities );
43 
44  return NOERROR;
45  }
46 
47  //------------------
48  // erun
49  //------------------
50  jerror_t erun(void)
51  {
53  analysisutilities = NULL;
54 
55  return NOERROR;
56  }
57 
59 };
60 
61 #endif // _DAnalysisUtilities_factory_
62 
jerror_t evnt(JEventLoop *loop, uint64_t eventnumber)
jerror_t brun(JEventLoop *loop, int32_t runnumber)