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