Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_occupancy_online.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JEventProcessor_occupancy_online.h
4 // Created: Tue Apr 12 09:43:54 EDT 2016
5 // Creator: zihlmann (on Linux gluon47.jlab.org 2.6.32-358.23.2.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _JEventProcessor_occupancy_online_
9 #define _JEventProcessor_occupancy_online_
10 
11 #include <JANA/JEventProcessor.h>
12 
13 #include <GlueX.h>
15 #include <DIRC/DDIRCGeometry.h>
16 
17 #include <TDirectory.h>
18 #include <TH2.h>
19 #include <TH1.h>
20 
21 using namespace jana;
22 using namespace std;
23 
24 class JEventProcessor_occupancy_online:public jana::JEventProcessor{
25  public:
28  const char* className(void){return "JEventProcessor_occupancy_online";}
29 
30 
31  //------------------------ BCAL -----------------------
33  TH2I *bcal_adc_occ;
34  TH2I *bcal_tdc_occ;
35 
36  //------------------------ CCAL -----------------------
38  TH2F* ccal_occ;
39 
40  //------------------------ CDC ------------------------
42  TH2F *cdc_occ_ring[28];
43 
44  //------------------------ FCAL -----------------------
46  TH2F* fcal_occ;
47 
48  //------------------------ FDC ------------------------
51  TH2F *fdc_wire_occ;
52 
53  //------------------------ PS/PSC ---------------------
59  TH1I *ps_left_occ;
60  TH1I *ps_right_occ;
61 
62  //------------------------ RF -------------------------
64  TH1D* rf_occ; //TH1D ON PURPOSE!
65  map<DetectorSystem_t, double> dRFBinValueMap;
66 
67  //------------------------ Trigger -------------------------
68  TH2F *L1GTPRate; // n.b. plotted in highlevel_online/HistMacro_Trigger.C !!
69  TH1F *L1livetime; // n.b. plotted in highlevel_online/HistMacro_Trigger.C !!
70 
71  //------------------------ ST -------------------------
73  TH1I *st_adc_occ;
74  TH1I *st_tdc_occ;
75 
76  //------------------------ TAGH -----------------------
78  TH1I *tagh_adc_occ;
79  TH1I *tagh_tdc_occ;
80 
81  //------------------------ TAGM -----------------------
82  TH1I *tagm_adc_occ;
83  TH1I *tagm_tdc_occ;
84 
85  //------------------------ TPOL -----------------------
86  TH1I *tpol_occ;
87 
88  //------------------------ TOF ------------------------
94 
99 
101  TH2I *dirc_tdc_pixel_N_occ, *dirc_tdc_pixel_N_occ_led;
102  TH2I *dirc_tdc_pixel_S_occ, *dirc_tdc_pixel_S_occ_led;
103 
104  //------------------------ DigiHits ------------------------
105  map<string,double> digihitbinmap; // bin number
106  map<string,double> digihitsclmap; // Scale number of hits by this (0 means don't scale)
111 
112 
113  private:
114  jerror_t init(void);
115  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber);
116  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber);
117  jerror_t erun(void);
118  jerror_t fini(void);
119 
121 };
122 
123 #endif // _JEventProcessor_occupancy_online_
124 
map< DetectorSystem_t, double > dRFBinValueMap
static TH2D * cdc_occ_ring[29]