Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_Z2pi_trees.h
Go to the documentation of this file.
1 // $Id$
2 // DEventProcessor_Z2pi_trees.h, modeled after DEventProcessor_p2pi_trees.h
3 //
4 // File: DEventProcessor_p2pi_trees.h
5 // Created: Wed Mar 29 16:34:58 EDT 2017
6 // Creator: elton (on Linux ifarm1401.jlab.org 3.10.0-327.el7.x86_64 x86_64)
7 //
8 
9 #ifndef _DEventProcessor_Z2pi_trees_
10 #define _DEventProcessor_Z2pi_trees_
11 
12 #include <JANA/JEventProcessor.h>
13 #include <JANA/JApplication.h>
14 
16 #include <HDDM/DEventWriterREST.h>
18 
20 
21 using namespace jana;
22 using namespace std;
23 
24 class DEventProcessor_Z2pi_trees : public jana::JEventProcessor
25 {
26  public:
27  const char* className(void){return "DEventProcessor_Z2pi_trees";}
28 
29  private:
30  jerror_t init(void); ///< Called once at program start.
31  jerror_t brun(jana::JEventLoop* locEventLoop, int32_t locRunNumber); ///< Called every time a new run number is detected.
32  jerror_t evnt(jana::JEventLoop* locEventLoop, uint64_t locEventNumber); ///< Called every event.
33  jerror_t erun(void); ///< Called every time run number changes, provided brun has been called.
34  jerror_t fini(void); ///< Called after last event of last event source has been processed.
35 
36  //For non-custom reaction-independent histograms, it is recommended that you simultaneously run the monitoring_hists plugin instead of defining them here
37 
38  //For making EventStore skims
39  int Get_FileNumber(JEventLoop* locEventLoop) const;
41 };
42 
43 #endif // _DEventProcessor_Z2pi_trees_
44