KaliVeda
Toolkit for HIC analysis
KVTestIDGridDialog.h
1 #ifndef __KVTestIDGridDialog_H
2 #define __KVTestIDGridDialog_H
3 
4 #include "TGFrame.h"
5 #include "TGMenu.h"
6 #include "TGListBox.h"
7 #include "TGButtonGroup.h"
8 #include "TGButton.h"
9 #include "KVIDGraph.h"
10 #include "RQ_OBJECT.h"
11 #include <TGComboBox.h>
12 #include <TGLabel.h>
13 #include <TGNumberEntry.h>
14 #include <TGTextEntry.h>
15 #include <TGProgressBar.h>
16 #include "KVCanvas.h"
17 
25 
26  RQ_OBJECT("KVTestIDGridDialog")
27 
29 
33 
45 
71 
73 
77 
79 
83  static Int_t hzrealbins;
84  static Int_t hzrealxmin;
85  static Int_t hzrealxmax;
86  static Int_t hzvsexbins;
89  static Int_t hzvseybins;
90  static Int_t hzvseymin;
91  static Int_t hzvseymax;
95 
96  std::unique_ptr<TCanvas> resultsCanvas;
97  std::unique_ptr<KVCanvas> resultsKVCanvas;
99  void add_histo(TH1* h)
100  {
101  h->SetDirectory(nullptr);
102  histos.Add(h);
103  }
104 
105 public:
106  KVTestIDGridDialog(const TGWindow* p = 0, const TGWindow* main =
107  0, UInt_t w = 1, UInt_t h = 1, KVIDGraph* g = 0, TH2* data_histo = 0);
109 
110  void DoClose();
111  void CloseWindow();
112  void TestGrid();
113  void DrawChart(TVirtualPad* cc, Int_t zmin, Int_t zmax, Int_t nmin, Int_t nmax);
114 
116  {
117  return (name != "");
118  };
119 
120  ClassDef(KVTestIDGridDialog, 0) //dialog box for testing an ID grid
121 };
122 #endif
int Int_t
unsigned int UInt_t
#define RQ_OBJECT(sender_class)
bool Bool_t
double Double_t
#define ClassDef(name, id)
char name[80]
TCanvas with mouse-controlled dynamic zoom and pan & scan.
Definition: KVCanvas.h:54
Extended version of ROOT THashList.
Definition: KVHashList.h:29
Base class for particle identification in a 2D map.
Definition: KVIDGraph.h:32
virtual void Add(TObject *obj)
GUI for testing identification grids.
static TString fNameZvsE
TGGroupFrame * fHzrealFrame
TGNumberEntry * fHzvsdeXBinsEntry
std::unique_ptr< KVCanvas > resultsKVCanvas
TGHorizontalFrame * fHzvseNameFrame
static Double_t hzvsdexmin
TGNumberEntry * fHzrealXminEntry
TGNumberEntry * fHzvseXmaxEntry
TGHorizontalFrame * fHzvseYBinsFrame
TGTextButton * fTestButton
TGNumberEntry * fHzvseYmaxEntry
KVTestIDGridDialog(const TGWindow *p=0, const TGWindow *main=0, UInt_t w=1, UInt_t h=1, KVIDGraph *g=0, TH2 *data_histo=0)
TGTextEntry * fHdataNameEntry
TGHProgressBar * fProgressBar
TGNumberEntry * fHzvseXBinsEntry
void DrawChart(TVirtualPad *cc, Int_t zmin, Int_t zmax, Int_t nmin, Int_t nmax)
TGTextEntry * fHzvseNameEntry
TGHorizontalFrame * fHzrealBinsFrame
Bool_t CheckNameOK(const TString &name)
TGNumberEntry * fHzrealXmaxEntry
TGHorizontalFrame * fHdataFrame
TGNumberEntry * fHzvseXminEntry
virtual ~ KVTestIDGridDialog()
TGHorizontalFrame * fHzrealNameFrame
TGNumberEntry * fHzvsdeXminEntry
static Int_t hzvsdexbins
static Double_t hzvsexmax
static TString fNameData
TGHorizontalFrame * fHzvsdeXBinsFrame
TGNumberEntry * fHzvseYminEntry
TGTextEntry * fHzrealNameEntry
TGTransientFrame * fMain
std::unique_ptr< TCanvas > resultsCanvas
TGHorizontalFrame * fButtonsFrame
TGNumberEntry * fHzvsdeXmaxEntry
TGNumberEntry * fHzvseYBinsEntry
static Double_t hzvsexmin
TGGroupFrame * fHzvseFrame
TGHorizontalFrame * fHzvseXBinsFrame
static TString fNameZreal
TGTextButton * fCloseButton
static Double_t hzvsdexmax
TGNumberEntry * fHzrealBinsEntry
virtual void SetDirectory(TDirectory *dir)
int main(int argc, char **argv)
TH1 * h