Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_ccal_hits.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventProcessor_ccal_hits.h
4 // Created: Mon Apr 3 11:38:03 EDT 2006
5 // Creator: davidl (on Darwin swire-b241.jlab.org 8.4.0 powerpc)
6 //
7 
8 #ifndef _DEventProcessor_ccal_hits_
9 #define _DEventProcessor_ccal_hits_
10 
11 #include <JANA/JEventProcessor.h>
12 using namespace jana;
13 
14 #include "TApplication.h"
15 #include "TCanvas.h"
16 
17 #include "TProfile.h"
18 #include <TTree.h>
19 
20 #include <TFile.h>
21 #include <TH1.h>
22 #include <TH2.h>
23 
24 
25 class DEventProcessor_ccal_hits:public JEventProcessor{
26  public:
29  const char* className(void){return "DEventProcessor_ccal_hits";}
30 
31  private:
32  jerror_t init(void); ///< Called once at program start.
33  jerror_t brun(JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
34  jerror_t evnt(JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
35  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
36  jerror_t fini(void); ///< Called after last event of last event source has been processed.
37 
38 
39  TTree* tree1;
40 
41  static const Int_t max_hit = 3000;
42  static const Int_t max_sample = 100;
43 
44 
45  Int_t nhit;
46  Int_t column[max_hit];
47  Int_t row[max_hit];
48  Int_t peak[max_hit];
49  Int_t integral[max_hit];
50  Int_t pedestal[max_hit];
51  Int_t time[max_hit];
52  Int_t qf[max_hit];
53 
54  Int_t waveform[max_hit][max_sample];
55 
58 
59  TProfile *ccal_wave[144];
60  TH1F *ccal_peak[144];
61  TH1F *ccal_int[144];
62 
63 };
64 
65 #endif // _DEventProcessor_ccal_hits_
66 
static TH1I * pedestal[nChan]