Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_dirc_tree.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventProcessor_dirc_tree.h
4 //
5 
6 #ifndef _DEventProcessor_dirc_tree_
7 #define _DEventProcessor_dirc_tree_
8 
9 #include <JANA/JEventProcessor.h>
10 #include <JANA/JApplication.h>
11 
13 #include <HDDM/DEventWriterREST.h>
16 
18 
19 #include "DIRC/DDIRCGeometry.h"
20 #include "DrcHit.h"
21 #include "DrcEvent.h"
22 
23 #include <TVector3.h>
24 #include <TROOT.h>
25 #include <TClonesArray.h>
26 
27 
28 using namespace jana;
29 using namespace std;
30 
31 class DEventProcessor_dirc_tree : public jana::JEventProcessor
32 {
33 public:
34  const char* className(void){return "DEventProcessor_dirc_tree";}
35 
36 private:
37  jerror_t init(void); ///< Called once at program start.
38  jerror_t brun(jana::JEventLoop* locEventLoop, int locRunNumber); ///< Called every time a new run number is detected.
39  jerror_t evnt(jana::JEventLoop* locEventLoop, uint64_t locEventNumber); ///< Called every event.
40  jerror_t erun(void); ///< Called every time run number changes, provided brun has been called.
41  jerror_t fini(void); ///< Called after last event of last event source has been processed.
42 
43  //For non-custom reaction-independent histograms, it is recommended that you simultaneously run the monitoring_hists plugin instead of defining them here
44 
47  TClonesArray *fcEvent;
49  TTree *fTree;
51 
52 };
53 
54 #endif // _DEventProcessor_dirc_tree_
55 
const DDIRCGeometry * dDIRCGeometry
const DAnalysisUtilities * fAnalysisUtilities