Logo ROOT  
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
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
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();
49 void ExitButton_clicked();
50};
51
52#endif
char name[80]
Definition TGX11.cxx:110
void DrawGeometryInCanvas()
void StandaloneBtn_clicked()
void InfoButton_clicked()
TH1F * fHisto
histogram for display in TCanvas
void ExitButton_clicked()
void CreateDummyGeometry()
void GeoCanvasButton_clicked()
std::shared_ptr< TH2I > fHisto2
histogram for display in RCanvas
virtual ~ExampleWidget()
void ImportCmsGeometry()
1-D histogram with a float per channel (see TH1 documentation)
Definition TH1.h:621
2-D histogram with an int per channel (see TH1 documentation)
Definition TH2.h:217