Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_TRIG_online.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JEventProcessor_TRIG_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_TRIG_online_
9 #define _JEventProcessor_TRIG_online_
10 
11 #include <map>
12 
13 #include "TH1I.h"
14 #include "TH2I.h"
15 
16 #include <JANA/JEventProcessor.h>
17 
18 class JEventProcessor_TRIG_online:public jana::JEventProcessor{
19  public:
22  const char* className(void){return "JEventProcessor_TRIG_online";}
23 
24 
25  private:
26  jerror_t init(void); ///< Called once at program start.
27  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
28  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
29  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
30  jerror_t fini(void); ///< Called after last event of last event source has been processed.
31 
32  bool timing;
33  vector<uint32_t> dTrigBits;
34 
36 
37  TH1I* h1trig_tot;
44 
45  map<uint32_t, TH2I*> h2trigbits_fcalVSbcal;
46  map<uint32_t, TH1I*> h1trigbits_fcal_time;
47  map<uint32_t, TH1I*> h1trigbits_bcal_time;
48  map<uint32_t, TH2I*> h2trigbits_tfcalVStbcal;
49  map<uint32_t, TH2I*> h2trigbits_tfcalVSfcal;
50  map<uint32_t, TH2I*> h2trigbits_tbcalVSbcal;
51 };
52 
53 #endif // _JEventProcessor_TRIG_online_
54 
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber)
Called everytime a new run number is detected.
map< uint32_t, TH1I * > h1trigbits_bcal_time
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber)
Called every event.
jerror_t init(void)
Called once at program start.
map< uint32_t, TH2I * > h2trigbits_tfcalVSfcal
jerror_t fini(void)
Called after last event of last event source has been processed.
map< uint32_t, TH1I * > h1trigbits_fcal_time
map< uint32_t, TH2I * > h2trigbits_tfcalVStbcal
map< uint32_t, TH2I * > h2trigbits_fcalVSbcal
jerror_t erun(void)
Called everytime run number changes, provided brun has been called.
map< uint32_t, TH2I * > h2trigbits_tbcalVSbcal