-
Notifications
You must be signed in to change notification settings - Fork 3
/
Display.h
61 lines (45 loc) · 1.32 KB
/
Display.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef Display_Class
#define Display_Class
#include <TH1F.h>
#include <TROOT.h>
#include <TApplication.h>
#include <TCanvas.h>
#include <TH2D.h>
#include <TStyle.h>
#include <TGraph.h>
#include "TFile.h"
#include "TRandom3.h"
#include "TTree.h"
#include "TTimer.h"
#include "TMath.h"
#include "TelescopeData.h"
using namespace std;
class Display {
public:
Display( int argc, char **argv,ReadConfig *readConfig);
void ShowSelectedDiscriminatorPixels();
void Show(int TelID, int pixel );
void ShowFADC(int TelID, int pixel );
void SetTelescopeData(TelescopeData **AllTelescopes){ allTelData = AllTelescopes;};
void AddCanvas(TCanvas *c);
void AddDiscriminatorTraces(int TelID, int triggerpixel,float threshold,TH1F hThresholdTrace,TH1F hCFDTrace);
void ResetTriggerTraces();
protected:
void MakeCameraParameterPlots();
TApplication *theApp;
ReadConfig *configuration;
Bool_t HandleInput();
TCanvas *cTrace;
TCanvas *cFADCTrace;
TH1F *hTrace; //Histogram to show the trace of a pixel
TH1F *hFADCTrace; //Histogram to show the FADC trace of a pixel
TelescopeData **allTelData;
vector<TCanvas*> vCanvasesToShow;
vector<TCanvas*> vTelParCanvases;
vector<float> vDiscThreshold;
vector<int> vDiscTelID;
vector<int> vDiscPixel;
vector<TH1F> vHCFDTrace;
vector<TH1F> vHThreshTrace;
};
#endif