Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_danarest.h
Go to the documentation of this file.
1 //
2 // File: JEventProcessor_danarest.h
3 // Created: Mon Jul 1 09:08:37 EDT 2012
4 // Creator: Richard Jones
5 //
6 
7 #ifndef _JEventProcessor_danarest_
8 #define _JEventProcessor_danarest_
9 
10 #include <string>
11 using namespace std;
12 
13 #include <JANA/JEventProcessor.h>
14 #include <JANA/JEventLoop.h>
15 
16 #include <HDDM/DEventWriterREST.h>
17 #include <TRIGGER/DTrigger.h>
18 
19 class JEventProcessor_danarest : public jana::JEventProcessor
20 {
21  public:
22  jerror_t init(void); ///< Called once at program start.
23  jerror_t brun(JEventLoop *loop, int32_t runnumber); ///< Called everytime a new run number is detected.
24  jerror_t evnt(JEventLoop *loop, uint64_t eventnumber); ///< Called every event.
25  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
26  jerror_t fini(void); ///< Called after last event of last event source has been processed.
27 
28  private:
29  bool is_mc;
30 };
31 
32 #endif // _JEventProcessor_danarest_