-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
118 lines (83 loc) · 2.38 KB
/
mainwindow.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "AlpideDB.h"
#include "DBHelpers.h"
#include "utilities.h"
#include "CernSsoCookiesJar.h"
#include "AlpideDBEndPoints.h"
#include <iostream>
#include <vector>
#include <QDialog>
#include <QFile>
#include <QLabel>
#include <QMainWindow>
#include <QPixmap>
#include <QtCore>
#include <QtGui>
#include <deque>
#include <mutex>
#include <qapplication.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
namespace Ui {
class ITSDB;
}
class ITSDB : public QMainWindow
{
Q_OBJECT
public:
explicit ITSDB(QWidget *parent = 0);
struct MStaveR {
float IDDA=-0.1;
float IDDD=-0.1;
float IDDAC=-0.1;
float IDDDC=-0.1;
int pixels=-1;
int pixelsth=-1;
float ThMax=-0.1;
float ThMin=-0.1;
float Noise=-0.1;
int Noisy=-1;
int NoisyM=-1;
std::string name;
std::string error="\n";
} ;
struct MStaveR getmodulepara(AlpideDB *theDB, string hicname, const int index);
void addinfo(std::vector<MStaveR> para);
struct MStaveR getStaveRDB(AlpideDB *theDB, string hicname, const int index);
// void plot_pixel(std::vector<MStaveR> data, std::vector<float> index);
void plot_current(std::vector<MStaveR> data, std::vector<float> index);
void get_module_info(string moduleName);
// void addinfo(std::vector<MStaveR>);
void getstavecompDB(AlpideDB *theDB, string stavename);
void stave_parameters(std::string stavename);
void set_plot_style();
~ITSDB();
public slots:
void on_get_clicked();
void on_bad_pixels_clicked();
void on_noisy_pixels_clicked();
void on_noise_clicked();
void on_current_clicked();
void on_get_stave_clicked();
void on_get_module_l1_clicked();
void on_get_module_l2_clicked();
void on_get_module_l3_clicked();
void on_get_module_l4_clicked();
void on_get_module_l5_clicked();
void on_get_module_l6_clicked();
void on_get_module_l7_clicked();
void on_get_module_r1_clicked();
void on_get_module_r2_clicked();
void on_get_module_r3_clicked();
void on_get_module_r4_clicked();
void on_get_module_r5_clicked();
void on_get_module_r6_clicked();
void on_get_module_r7_clicked();
void on_draw_clicked();
private:
Ui::ITSDB *ui;
};
#endif // MAINWINDOW_H