Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_highlevel_online.h
Go to the documentation of this file.
1 #ifndef _JEventProcessor_highlevel_online_
2 #define _JEventProcessor_highlevel_online_
3 
4 #include <JANA/JEventProcessor.h>
5 
6 #include <TDirectory.h>
7 #include <TH2.h>
8 #include <TH1.h>
9 #include <TMath.h>
10 
12 #include <PID/DBeamPhoton.h>
13 #include <FCAL/DFCALShower.h>
14 #include <PID/DChargedTrack.h>
15 #include <BCAL/DBCALShower.h>
16 #include <PID/DNeutralShower.h>
17 #include <PID/DNeutralParticle.h>
18 #include <TOF/DTOFPoint.h>
19 #include <START_COUNTER/DSCHit.h>
20 #include <PID/DDetectorMatches.h>
21 #include <PID/DVertex.h>
22 #include <PID/DEventRFBunch.h>
23 #include <TRIGGER/DL1Trigger.h>
24 #include <TAGGER/DTAGHHit.h>
25 #include <BCAL/DBCALDigiHit.h>
26 #include <FCAL/DFCALDigiHit.h>
27 #include <DAQ/Df250PulsePedestal.h>
30 
31 using namespace jana;
32 using namespace std;
33 
34 class JEventProcessor_highlevel_online:public jana::JEventProcessor
35 {
36  public:
39  const char* className(void){return "JEventProcessor_highlevel_online";}
40 
42 
45 
50 
52 
55 
58 
61 
62  TH1I* d2gamma;
63  TH1I *dpip_pim;
64  TH1I *dKp_Km;
65  TH1I *dpip_pim_pi0;
66  TH2I *dbeta_vs_p;
67  TH1I *dptrans;
68 
70  map<pair<int,int>, double> f1tdc_bin_map; // key=<rocid,slot> val=bin
71 
72  template<typename T> void FillF1Hist(vector<const T*> hits);
73 
74  private:
75  jerror_t init(void);
76  jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber);
77  jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t eventnumber);
78  jerror_t erun(void);
79  jerror_t fini(void);
80 
83  int fcal_row_mask_min, fcal_row_mask_max, fcal_col_mask_min, fcal_col_mask_max;
84 
87 
90  pair<double, double> dCoherentPeakRange;
91  pair<int, int> dRFSidebandBunchRange;
92  map<Particle_t, map<DetectorSystem_t, double> > dTimingCutMap;
93 
95  double unix_offset;
96 };
97 
98 #endif // _JEventProcessor_highlevel_online_
99 
map< pair< int, int >, double > f1tdc_bin_map
map< Particle_t, map< DetectorSystem_t, double > > dTimingCutMap