pxar
 All Classes Namespaces Functions Variables Typedefs Friends
PixMonitor.hh
1 #ifndef PIXMONITOR_H
2 #define PIXMONITOR_H
3 
4 #include "pxardllexport.h"
5 
6 #ifdef __CINT__
7 #undef __GNUC__
8 typedef char __signed;
9 typedef char int8_t;
10 #endif
11 
12 #include <string>
13 #include <map>
14 
15 #include <TH1.h>
16 #include <TQObject.h>
17 
18 #include "api.h"
19 
20 class DLLEXPORT PixMonitor: public TQObject {
21 public:
23  ~PixMonitor();
24  void init();
25 
26  void update();
27  double getIana() {return fIana;}
28  double getIdig() {return fIdig;}
29 
30  void dumpSummaries();
31  void drawHist(std::string hname);
32 
33 private:
34  TH1D* extendHist(TH1D *h, int nbins);
35  UInt_t getHistMinSec(TH1D *h);
36 
37  pxar::pxarCore *fApi;
38  double fIana, fIdig;
39 
40  std::vector<std::pair<UInt_t, std::pair<double, double> > > fMeasurements;
41 
42  ClassDef(PixMonitor, 1); // testing PixMonitor
43 
44 };
45 
46 #endif
47