Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ZdcMon.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ZdcMon.h
1 #ifndef ZDC_ZDCMON_H
2 #define ZDC_ZDCMON_H
3 
4 #include <onlmon/OnlMon.h>
5 
6 #include <onlmon/OnlMon.h>
7 #include <cmath>
8 #include <vector>
9 
11 class TowerInfoContainer;
12 class Event;
13 class TH1;
14 class TH2;
15 class Packet;
16 
17 class ZdcMon : public OnlMon
18 {
19  public:
20  ZdcMon(const std::string &name = "ZDCMON");
21  virtual ~ZdcMon();
22 
23  int process_event(Event *evt);
24  int Init();
25  int BeginRun(const int runno);
26  int Reset();
27 
28  protected:
29  std::vector<float> anaWaveformFast(Packet *p, const int channel);
31 
32  int evtcnt = 0;
33  int idummy = 0;
34  TH1 *zdc_adc_north = nullptr;
35  TH1 *zdc_adc_south = nullptr;
36 
37 };
38 
39 #endif /* ZDC_ZDCMON_H */