Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InttMon.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file InttMon.h
1 #ifndef INTT_MON_H
2 #define INTT_MON_H
3 
4 #include "InttMonConstants.h"
5 #include "InttFelixMap.h"
6 
7 #include <onlmon/OnlMon.h>
8 #include <onlmon/OnlMonDB.h>
9 #include <onlmon/OnlMonServer.h>
10 
11 //#include <pmonitor/pmonitor.h>
12 #include <Event/Event.h>
13 #include <Event/EventTypes.h>
14 #include <Event/msg_profile.h>
15 
16 #include <TH1D.h>
17 #include <TH2D.h>
18 #include <TRandom.h> //for rng; remove later
19 
20 #include <cmath>
21 #include <cstdio>
22 #include <fstream>
23 #include <iostream>
24 #include <sstream>
25 #include <string>
26 
27 class InttMon : public OnlMon
28 {
29 public:
30  InttMon(const std::string &name);
31  virtual ~InttMon();
32 
33  int Init();
34  int BeginRun(const int);
35  int process_event(Event*);
36  int Reset();
37 
38  //for testing/debugging without unpacker, remove later
39  int MiscDebug();
40  void RandomEvent(int);
41 private:
43  TRandom* rng = nullptr;
44  //int InitExpectationHists();
46 
47  int DBVarInit();
48  int DBVarUpdate();
49 
50  OnlMonDB* dbvars = nullptr;
51  int evtcnt = 0;
52 
53  TH1D* NumEvents = nullptr;
54  TH1D* HitMap = nullptr;
55  //...
56 };
57 
58 #endif