Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventRFBunch_factory_Thrown.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventRFBunch_factory_Thrown.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 _DEventRFBunch_factory_Thrown_
9 #define _DEventRFBunch_factory_Thrown_
10 
11 #include <iostream>
12 #include <iomanip>
13 
14 #include <JANA/JFactory.h>
15 #include <PID/DEventRFBunch.h>
16 #include <PID/DBeamPhoton.h>
17 #include <RF/DRFTime.h>
18 #include <TRACKING/DMCThrown.h>
19 
20 using namespace std;
21 using namespace jana;
22 
23 class DEventRFBunch_factory_Thrown : public jana::JFactory<DEventRFBunch>
24 {
25  public:
28  const char* Tag(void){return "Thrown";}
29 
30  private:
31  jerror_t init(void); ///< Called once at program start.
32  jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
33  jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t eventnumber); ///< Called every event.
34  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
35  jerror_t fini(void); ///< Called after last event of last event source has been processed.
36 };
37 
38 #endif // _DEventRFBunch_factory_Thrown_
39