Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DMCThrown_factory_Primary.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DMCThrown_factory_Primary.h
4 // Created: Tue Aug 9 14:29:24 EST 2011
5 // Creator: pmatt (on Linux ifarml6 2.6.18-128.el5 x86_64)
6 //
7 
8 #ifndef _DMCThrown_factory_Primary_
9 #define _DMCThrown_factory_Primary_
10 
11 #include <iostream>
12 #include <iomanip>
13 
14 #include <JANA/JFactory.h>
15 
16 #include <TRACKING/DMCThrown.h>
17 
19 
20 using namespace std;
21 using namespace jana;
22 
23 class DMCThrown_factory_Primary : public jana::JFactory<DMCThrown>
24 {
25  public:
26  DMCThrown_factory_Primary(){use_factory = 1;}; //prevents JANA from searching the input file for these objects
28  const char* Tag(void){return "Primary";}
29 
30  private:
31 
32  jerror_t init(void); ///< Called once at program start.
33  jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
34  jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t eventnumber); ///< Called every event.
35  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
36  jerror_t fini(void); ///< Called after last event of last event source has been processed.
37 
39 };
40 
41 #endif // _DMCThrown_factory_Primary_
42 
const DAnalysisUtilities * dAnalysisUtilities