KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVTestIDGridDialog.h
Go to the documentation of this file.
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 
24 
25  RQ_OBJECT("KVTestIDGridDialog")
26 
28 
32 
44 
63 
65 
69 
71 
75  static Int_t hzrealbins;
76  static Int_t hzrealxmin;
77  static Int_t hzrealxmax;
78  static Int_t hzvsexbins;
81  static Int_t hzvseybins;
82  static Int_t hzvseymin;
83  static Int_t hzvseymax;
84 
85  std::unique_ptr<TCanvas> resultsCanvas;
86  std::unique_ptr<KVCanvas> resultsKVCanvas;
88  void add_histo(TH1* h)
89  {
90  h->SetDirectory(nullptr);
91  histos.Add(h);
92  }
93 
94 public:
95  KVTestIDGridDialog(const TGWindow* p = 0, const TGWindow* main =
96  0, UInt_t w = 1, UInt_t h = 1, KVIDGraph* g = 0, TH2* data_histo = 0);
98 
99  void DoClose();
100  void CloseWindow();
101  void TestGrid();
102  void DrawChart(TVirtualPad* cc, Int_t zmin, Int_t zmax, Int_t nmin, Int_t nmax);
103 
105  {
106  return (name != "");
107  };
108 
109  ClassDef(KVTestIDGridDialog, 0) //dialog box for testing an ID grid
110 };
111 #endif
int Int_t
unsigned int UInt_t
#define RQ_OBJECT(sender_class)
bool Bool_t
double Double_t
#define ClassDef(name, id)
TCanvas with mouse-controlled dynamic zoom and pan & scan.
Definition: KVCanvas.h:53
Extended version of ROOT THashList.
Definition: KVHashList.h:28
Base class for particle identification in a 2D map.
Definition: KVIDGraph.h:31
virtual void Add(TObject *obj)
GUI for testing identification grids.
static TString fNameZvsE
TGGroupFrame * fHzrealFrame
std::unique_ptr< KVCanvas > resultsKVCanvas
TGHorizontalFrame * fHzvseNameFrame
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
static Double_t hzvsexmax
static TString fNameData
TGNumberEntry * fHzvseYminEntry
TGTextEntry * fHzrealNameEntry
TGTransientFrame * fMain
std::unique_ptr< TCanvas > resultsCanvas
TGHorizontalFrame * fButtonsFrame
TGNumberEntry * fHzvseYBinsEntry
static Double_t hzvsexmin
TGGroupFrame * fHzvseFrame
TGHorizontalFrame * fHzvseXBinsFrame
static TString fNameZreal
TGTextButton * fCloseButton
TGNumberEntry * fHzrealBinsEntry
virtual void SetDirectory(TDirectory *dir)
int main(int argc, char **argv)
TH1 * h
const long double g
masses
Definition: KVUnits.h:72
const long double cc
volumes
Definition: KVUnits.h:83