ROOT
v6-32
Reference Guide
Loading...
Searching...
No Matches
ExampleWidget.h
Go to the documentation of this file.
1
// Author: Sergey Linev, GSI 13/01/2021
2
3
/*************************************************************************
4
* Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
11
#ifndef ExampleWidget_h
12
#define ExampleWidget_h
13
14
#include <QWidget>
15
#include "ui_ExampleWidget.h"
16
17
#include <memory>
18
19
class
TH1F
;
20
class
TH2I
;
21
22
class
ExampleWidget
:
public
QWidget
,
public
Ui::ExampleWidget
23
{
24
Q_OBJECT
25
26
protected
:
27
28
TH1F
*
fHisto
{
nullptr
};
///< histogram for display in TCanvas
29
std::shared_ptr<TH2I>
fHisto2
;
///< histogram for display in RCanvas
30
31
void
ImportCmsGeometry
();
32
33
void
CreateDummyGeometry
();
34
35
void
DrawGeometryInCanvas
();
36
37
public
:
38
39
ExampleWidget
(
QWidget
*parent =
nullptr
,
const
char
*
name
=
nullptr
);
40
41
virtual
~ExampleWidget
();
42
43
public
slots:
44
45
void
InfoButton_clicked
();
46
void
CmsButton_clicked
();
47
void
GeoCanvasButton_clicked
();
48
void
StandaloneBtn_clicked
();
49
void
ExitButton_clicked
();
50
};
51
52
#endif
name
char name[80]
Definition
TGX11.cxx:110
ExampleWidget
Definition
ExampleWidget.h:23
ExampleWidget::CmsButton_clicked
void CmsButton_clicked()
Definition
ExampleWidget.cpp:292
ExampleWidget::DrawGeometryInCanvas
void DrawGeometryInCanvas()
Definition
ExampleWidget.cpp:140
ExampleWidget::StandaloneBtn_clicked
void StandaloneBtn_clicked()
Definition
ExampleWidget.cpp:313
ExampleWidget::InfoButton_clicked
void InfoButton_clicked()
Definition
ExampleWidget.cpp:287
ExampleWidget::fHisto
TH1F * fHisto
histogram for display in TCanvas
Definition
ExampleWidget.h:28
ExampleWidget::ExitButton_clicked
void ExitButton_clicked()
Definition
ExampleWidget.cpp:332
ExampleWidget::CreateDummyGeometry
void CreateDummyGeometry()
Definition
ExampleWidget.cpp:79
ExampleWidget::GeoCanvasButton_clicked
void GeoCanvasButton_clicked()
Definition
ExampleWidget.cpp:300
ExampleWidget::fHisto2
std::shared_ptr< TH2I > fHisto2
histogram for display in RCanvas
Definition
ExampleWidget.h:29
ExampleWidget::~ExampleWidget
virtual ~ExampleWidget()
Definition
ExampleWidget.cpp:74
ExampleWidget::ImportCmsGeometry
void ImportCmsGeometry()
Definition
ExampleWidget.cpp:99
QWidget
TH1F
1-D histogram with a float per channel (see TH1 documentation)
Definition
TH1.h:621
TH2I
2-D histogram with an int per channel (see TH1 documentation)
Definition
TH2.h:225
tutorials
webgui
qtweb
ExampleWidget.h
ROOT v6-32 - Reference Guide Generated on Thu Dec 12 2024 15:06:30 (GVA Time) using Doxygen 1.9.8