Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OnlMon.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file OnlMon.h
1 #ifndef ONLMONSERVER_ONLMON_H
2 #define ONLMONSERVER_ONLMON_H
3 
4 #include "OnlMonBase.h"
5 
6 #include <iostream>
7 #include <set>
8 #include <string>
9 
10 class Event;
11 class OnlMonServer;
12 class TH1;
13 
14 class OnlMon : public OnlMonBase
15 {
16  public:
17  OnlMon(const std::string &name = "NONE");
18  ~OnlMon() override {}
19 
20  enum
21  {
22  ACTIVE = -1,
23  OK = 0,
24  WARNING = 1,
25  ERROR = 2
26  };
27  virtual int process_event_common(Event *evt);
28  virtual int process_event(Event *evt);
29  virtual int InitCommon(OnlMonServer *se);
30  virtual int Init() { return 0; }
31  virtual int Reset();
32  virtual void identify(std::ostream &out = std::cout) const;
33  virtual int BeginRunCommon(const int runno, OnlMonServer *se);
34  virtual int BeginRun(const int /* runno */) { return 0; }
35  virtual int EndRun(const int /* runno */) { return 0; }
36  virtual void SetStatus(const int newstatus);
37  virtual int ResetEvent() { return 0; }
38  virtual void SetMonitorServerId(unsigned int i);
39  virtual unsigned int MonitorServerId() const {return m_MonitorServerId;}
40 
41  protected:
42  int status;
43  unsigned int m_MonitorServerId = 0;
44  TH1 *m_LocalFrameWorkVars = nullptr;
45 };
46 
47 #endif /* ONLMONSERVER_ONLMON_H */