GUI.h 975 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef GUI_H
#define GUI_H 1

#include "Algorithm.h"
#include <iostream>
#include "TH1F.h"
#include "TH2F.h"
#include "TH3F.h"
#include "TCanvas.h"
#include "TBrowser.h"
#include "TThread.h"
#include "TApplication.h"

#include "Timepix3Pixel.h"
#include "Timepix3Cluster.h"
#include "Timepix3Track.h"

class GUI : public Algorithm {
  
public:
  // Constructors and destructors
  GUI(bool);
  ~GUI(){}

  // Functions
  void initialise(Parameters*);
Daniel Hynds's avatar
Daniel Hynds committed
27
  StatusCode run(Clipboard*);
28
29
  void finalise();
  
30
31
32
  // Canvases to display plots
  TCanvas* trackCanvas;
  TCanvas* hitmapCanvas;
33
  TCanvas* globalHitmapCanvas;
34
  TCanvas* residualsCanvas;
35
  
36
37
  // Plot holders
  map<string, TH2F*> hitmap;
38
  map<string, TH2F*> globalHitmap;
39
40
41
42
43
44
45
46
  map<string, TH1F*> residuals;
  
  // Thread to allow display to run in separate thread
  TThread* displayThread;
  
  // Misc. member objects
  int nDetectors;
  int eventNumber;
47
  int updateNumber;
48
//  TBrowser* browser;
49
50
51
52
  
};

#endif // GUI_H