Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_b1pi_hists.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventProcessor_b1pi_hists.h
4 // Created: Mon Apr 3 11:38:03 EDT 2006
5 // Creator: pmatt (on Darwin swire-b241.jlab.org 8.4.0 powerpc)
6 //
7 
8 #ifndef _DEventProcessor_b1pi_hists_
9 #define _DEventProcessor_b1pi_hists_
10 
11 #include "TFile.h"
12 #include "TROOT.h"
13 
14 #include "JANA/JEventProcessor.h"
15 
16 #include "DANA/DApplication.h"
19 #include "HDDM/DEventWriterREST.h"
20 
22 
23 using namespace jana;
24 
25 class DEventProcessor_b1pi_hists : public JEventProcessor
26 {
27  public:
30  const char* className(void){return "DEventProcessor_b1pi_hists";}
31 
32  private:
33  jerror_t init(void); ///< Called once at program start.
34  jerror_t brun(JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
35  jerror_t evnt(JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
36  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
37  jerror_t fini(void); ///< Called after last event of last event source has been processed.
38 };
39 
40 
41 #endif // _DEventProcessor_b1pi_hists_
42