Logo ROOT  
Reference Guide
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
19class TH1F;
20class TH2I;
21
22class 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
34
35 public:
36
37 ExampleWidget(QWidget *parent = nullptr, const char* name = nullptr);
38
39 virtual ~ExampleWidget();
40
41 public slots:
42
43 void InfoButton_clicked();
44 void CmsButton_clicked();
45 void ExitButton_clicked();
46
47};
48
49#endif
char name[80]
Definition: TGX11.cxx:110
void CmsButton_clicked()
void InfoButton_clicked()
TH1F * fHisto
histogram for display in TCanvas
Definition: ExampleWidget.h:28
void ExitButton_clicked()
void CreateDummyGeometry()
ExampleWidget(QWidget *parent=nullptr, const char *name=nullptr)
std::shared_ptr< TH2I > fHisto2
histogram for display in RCanvas
Definition: ExampleWidget.h:29
virtual ~ExampleWidget()
void ImportCmsGeometry()
1-D histogram with a float per channel (see TH1 documentation)}
Definition: TH1.h:575
2-D histogram with an int per channel (see TH1 documentation)}
Definition: TH2.h:212