Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_bcal_hists.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventProcessor_bcal_hists.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_bcal_hists_
9 #define _DEventProcessor_bcal_hists_
10 
11 #include <JANA/JEventProcessor.h>
12 using namespace jana;
13 
14 #include <TFile.h>
15 #include <TH1.h>
16 #include <TH2.h>
17 
18 class DEventProcessor_bcal_hists:public JEventProcessor{
19  public:
22  const char* className(void){return "DEventProcessor_bcal_hists";}
23 
24  private:
25  jerror_t init(void); ///< Called once at program start.
26  jerror_t brun(JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
27  jerror_t evnt(JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
28  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
29  jerror_t fini(void); ///< Called after last event of last event source has been processed.
30 
31  TH1F* two_gamma_mass, *two_gamma_mass_corr, *two_gamma_mass_cut;
32  TH1F* bcal_fcal_two_gamma_mass, *bcal_fcal_two_gamma_mass_cut;
33  TH2F* xy_shower;
34  TH1F* z_shower;
35  TH1F* E_shower;
39  TH1F* Etot_truth, *Etot_hits;
42 };
43 
44 #endif // _DEventProcessor_bcal_hists_
45