Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_CCAL_online.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JEventProcessor_CCAL_online.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_CCAL_online_
9 #define _JEventProcessor_CCAL_online_
10 
11 #include <JANA/JEventProcessor.h>
12 
13 class TH1D;
14 class TH1I;
15 class TH2I;
16 class TH2F;
17 class TH1F;
18 class TProfile;
19 class TProfile2D;
20 
21 class JEventProcessor_CCAL_online:public jana::JEventProcessor{
22  public:
25  const char* className(void){return "JEventProcessor_CCAL_online";}
26 
27  private:
28 
29  jerror_t init(void); ///< Called once at program start.
30  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
31  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
32  jerror_t erun(void); ///< Called everytime 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  double m_targetZ;
36 
37  const double pi = 3.1415926535;
38  const double me = 0.510998928e-3;
39  const double ZFCAL = 624.906;
40  const double ZCCAL = 1279.77;
41 
42  const double CRYS_SIZE_X = 2.077;
43  const double CRYS_SIZE_Y = 2.075;
44  const double GLASS_SIZE = 4.0157;
45 
47 
48  TH1I *hdigN;
49  TH2F *hdigOcc2D;
50  TH1I *hdigInt;
51  TH1I *hdigPeak;
52  TH1I *hdigT;
53  TH1I *hdigPed;
54  TProfile *hdigPedChan;
55  TH2F *hdigPed2D;
56  TH2F *hdigPedSq2D;
58  TH1I *hdigQF;
59 
60  TH1I *hhitN;
61  TH1I *hhitE;
62  TH1I *hhitETot;
63  TH1I *hhitiop;
64  TH1I *hhitT;
65  TH2F *hhitE2D;
66  TH2F *hhitOcc2D;
67 
68  TH1I *hclusN;
69  TH1I *hclusE;
70  TH1I *hclusETot;
71  TH1I *hclusT;
72  TH1I *hclusDime;
73  TH2I *hclusXYHigh;
74  TH2I *hclusXYLow;
75  TH1I *hclusPhi;
76  TH1I *hclus2GMass;
78  TH2I *hclusOccEmax;
79 
80  TH1F *hcomp_bfdt;
81  TH1F *hcomp_fcdt;
83 
84  TH1F *hcomp_cratio;
86  TH2F *hcomp_cfb2d;
87  TH1F *hcomp_pfpc;
88  TH2F *hcomp_cxy;
89  TH2F *hcomp_fxy;
90  TH1F *hcomp_bcdt;
91 
99 
100  TH1I *hNPhotons;
101 
102  TH2F *hfcalOcc;
103 
104 };
105 
106 #endif // _JEventProcessor_CCAL_online_
107 
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber)
Called everytime a new run number is detected.
jerror_t init(void)
Called once at program start.
jerror_t fini(void)
Called after last event of last event source has been processed.
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber)
Called every event.
jerror_t erun(void)
Called everytime run number changes, provided brun has been called.