GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4MBSViewer.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGO4MBSVIEWER_H
15#define TGO4MBSVIEWER_H
16
17#include "QGo4Widget.h"
18#include "ui_TGo4MBSViewer.h"
19
20#include <QElapsedTimer>
21
22extern "C" {
23 #include "s_daqst.h"
24 #include "s_setup.h"
25 #include "s_set_ml.h"
26 #include "s_set_mo.h"
27}
28
29class QButtonGroup;
30class TH1;
31class QMovie;
32
33class TGo4MBSViewer : public QGo4Widget, public Ui::TGo4MBSViewer
34 {
35 Q_OBJECT
36
37 public:
38 TGo4MBSViewer(QWidget *parent = nullptr, const char *name = nullptr);
39 virtual ~TGo4MBSViewer();
40
41 TH1 *TrendHisto(QString & refname, const QString & name, const QString & title, int value);
42
43 public slots:
44
45 virtual void StoreSettings();
46 virtual void TimerStart();
47 virtual void TimerStop();
48 virtual void Display();
49 virtual void Refresh();
50 virtual void NodeEditEnter();
51 virtual void NodeChanged(const QString &txt);
52 virtual void ShowStatus();
53 virtual void StateGroup_clicked(int id);
54 virtual void PrintState();
55 virtual void TrendSwitched(bool on);
56 virtual void UpdateTrending();
57 virtual void IncTrending(TH1 *histo, int value, bool forwards);
58 virtual void FrequencyBox_valueChanged(int);
59 virtual void MoreBox_toggled(bool on);
60 virtual void TrendBinsBox_valueChanged(int i);
61 virtual void RefreshButtonClick();
62 virtual void SetNode(const QString &txt);
63 virtual void ResetRunIcon();
64 virtual void StartMovieReset();
65
66 protected:
67
68 bool fbSingleRefresh{false};
69 int fiLastDataNum{0};
70 int fiLastEventNum{0};
71 int fiCalcedEventRate{0};
72 s_set_mo fxSetupMO;
73 bool fbRunning{false};
74 bool fbTrendingForward{false};
75 QString fxHistokBAccessName;
76 TH1 *fxRatekBTrend{nullptr};
77 bool fbTrendingInit{false};
78 QString fxHistoAccessName;
79 bool fbTrending{false};
80 bool fbGetStatus{false};
81 bool fbGetSetML{false};
82 QString fxRefTime;
83 bool fbGetSetup{false};
84 QString fxMessage;
85 bool fbWarningState{false};
86 bool fbIsMonitoring{false};
87 s_daqst fxDaqStat;
88 QString fxNode;
89 QTimer* fxTimer{nullptr};
90 s_setup fxSetup;
91 s_set_ml fxSetupML;
92 QMovie* fxRunMovie{nullptr};
93 TH1 *fxRateTrend{nullptr};
94 int fiTrendBins{0};
95 bool fbShowMore{false};
96 QTimer* fxMovieResetTimer{nullptr};
97 int fiEvRatio{0};
99 TH1 *fxEvRatio{nullptr};
100 QString fxServerLabel;
101 bool fbGetSetMO{false};
102 int fiCalcedDataRate{0};
103 int fiLastServDataNum{0};
105 int fiDataDelta{0};
106 int fiServDataDelta{0};
107 QElapsedTimer fxDeltaClock;
108 QButtonGroup* StateGroup{nullptr};
109 };
110
111#endif
virtual void TrendBinsBox_valueChanged(int i)
s_daqst fxDaqStat
virtual void TimerStop()
QTimer * fxTimer
QString fxRefTime
QElapsedTimer fxDeltaClock
s_set_mo fxSetupMO
virtual void StartMovieReset()
QString fxHistokBAccessName
virtual void StoreSettings()
QMovie * fxRunMovie
QString fxHistoAccessName
QButtonGroup * StateGroup
QString fxServerLabel
virtual void UpdateTrending()
virtual void MoreBox_toggled(bool on)
TGo4MBSViewer(QWidget *parent=nullptr, const char *name=nullptr)
virtual void PrintState()
virtual void StateGroup_clicked(int id)
virtual ~TGo4MBSViewer()
virtual void RefreshButtonClick()
virtual void Display()
virtual void Refresh()
virtual void IncTrending(TH1 *histo, int value, bool forwards)
TH1 * TrendHisto(QString &refname, const QString &name, const QString &title, int value)
virtual void TrendSwitched(bool on)
QTimer * fxMovieResetTimer
virtual void NodeEditEnter()
virtual void ResetRunIcon()
virtual void NodeChanged(const QString &txt)
virtual void SetNode(const QString &txt)
virtual void TimerStart()
s_set_ml fxSetupML
QString fxHistoEvRatioAccessName
virtual void ShowStatus()
virtual void FrequencyBox_valueChanged(int)
QString fxMessage