Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_TOF_TDC_shift.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JEventProcessor_TOF_TDC_shift.h
4 // Created: Fri Nov 9 11:58:09 EST 2012
5 // Creator: wolin (on Linux stan.jlab.org 2.6.32-279.11.1.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _JEventProcessor_TOF_TDC_shift_
9 #define _JEventProcessor_TOF_TDC_shift_
10 
11 #include <JANA/JEventProcessor.h>
12 
13 #include <TDirectory.h>
14 #include <TH2I.h>
15 #include "TTree.h"
16 
17 using namespace std;
18 
19 class JEventProcessor_TOF_TDC_shift:public jana::JEventProcessor{
20  public:
23  const char* className(void){return "JEventProcessor_TOF_TDC_shift";}
24 
25  static const Int_t NMAX = 200;
26 
27  /*
28  // Number of hits
29  Int_t nTOF;
30  Int_t nTOF_TDC;
31  // ADC times
32  Float_t tof_adc_time[NMAX];
33  // TDC times
34  Float_t tof_tdc_time[NMAX];
35 
36  // DCODAROCInfo
37  Int_t nDCODAROCInfo;
38  static const Int_t NROCINFO = 96;
39  Int_t rocid[NROCINFO];
40  ULong64_t rocTime[NROCINFO];
41  */
42 
43  private:
44  jerror_t init(void); ///< Called once at program start.
45  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
46  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
47  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
48  jerror_t fini(void); ///< Called after last event of last event source has been processed.
49 
50  TDirectory* filedir;
53 
54  ofstream OUTPUT;
55 };
56 
57 #endif // _JEventProcessor_TOF_TDC_shift_
58