Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MyMon.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MyMon.h
1 #ifndef EXAMPLE_MYMON_H
2 #define EXAMPLE_MYMON_H
3 
4 #include <onlmon/OnlMon.h>
5 
6 class Event;
7 class OnlMonDB;
8 class TH1;
9 class TH2;
10 
11 class MyMon : public OnlMon
12 {
13  public:
14  MyMon(const std::string &name = "MYMON");
15  virtual ~MyMon();
16 
17  int process_event(Event *evt);
18  int Init();
19  int BeginRun(const int runno);
20  int Reset();
21 
22  protected:
23  int DBVarInit();
24  int evtcnt = 0;
25  int idummy = 0;
26  OnlMonDB *dbvars = nullptr;
27  TH1 *myhist1 = nullptr;
28  TH2 *myhist2 = nullptr;
29 };
30 
31 #endif /* EXAMPLE_MYMON_H */