KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVItvFinderDialog.h
Go to the documentation of this file.
1 
4 #ifndef __KVITVFINDERDIALOG_H
5 #define __KVITVFINDERDIALOG_H
6 
7 #include "RQ_OBJECT.h"
8 
9 #include "TLine.h"
10 #include "TMarker.h"
11 
12 #include "TGFrame.h"
13 #include "TGMenu.h"
14 #include "TGListBox.h"
15 #include "TGButtonGroup.h"
16 #include "TGButton.h"
17 #include "KVIDGraph.h"
18 #include "RQ_OBJECT.h"
19 #include <TGComboBox.h>
20 #include <TGLabel.h>
21 #include <TGNumberEntry.h>
22 #include <TGTextEntry.h>
23 #include <TGProgressBar.h>
24 #include "KVCanvas.h"
25 #include "KVList.h"
26 #include "KVListView.h"
27 #include "KVIDZAFromZGrid.h"
28 #include "TGToolBar.h"
29 #include "TGButton.h"
30 
31 #include <TSpectrum.h>
32 #include <TROOT.h>
33 #include <TF1.h>
34 
35 
43  RQ_OBJECT("KVZAFinderDialog")
44 
45 public:
46  enum {
52  M_UNZOOM
53  };
54 
55 
56 public:
60 
65 
66 
70 
74 
77 
83 
85 
87 
88 
89 public:
91  virtual ~KVItvFinderDialog();
92 
94  {
95  return fNextIntervalZ;
96  }
97  void SetNextIntevalZ(int zz)
98  {
99  fNextIntervalZ = zz;
100  }
101 
102  void DisplayPIDint();
103  void SelectionITVChanged();
104  void UpdatePIDList();
105 
106  void ZoomOnCanvas();
107  void DrawIntervals();
108  void DrawInterval(interval_set* itvs, bool label = 0);
109 
110  void ClearInterval(interval_set* itvs);
111 
113  void LinearizeHisto(int nbins);
114 
115  void DoClose() {}
116  void CloseWindow() {}
117 
118  void Identify();//{ProcessIdentification(1,25);}//{Info("SaveGrid","Not yet implemented");}
119  void Identify(double sigma, double ratio);//{ProcessIdentification(1,25);}//{Info("SaveGrid","Not yet implemented");}
120  void SaveGrid();//{fGrid->GetIntervalSets()->ls(); fGrid->GetParameters()->ls();}
121  void ExportToGrid();
122  void NewInterval();//{Info("NewInterval","Not yet implemented");}
123  void NewIntervalSet();//{Info("NewIntervalSet","Not yet implemented");}
124  void RemoveInterval();//{Info("RemoveInterval","Not yet implemented");}
125  void MassesUp();//{Info("ChangeMasses","Not yet implemented");}
126  void MassesDown();//{Info("ChangeMasses","Not yet implemented");}
127  void UpdateLists();//{cout << "toto" << endl;}
128  void TestIdent();//;{cout << "TestIdent()" << endl;}
129  void SetLogy();
130  void UnzoomHisto();
131 
132  void ProcessIdentification(Int_t zmin = -1, Int_t zmax = -1);
133  void FindPIDIntervals(Int_t zz);
134  Double_t fpeaks(Double_t* x, Double_t* par);
135 
136 
137  ClassDef(KVItvFinderDialog, 1) //gui to KVPIDIntevalFinder
138 };
139 
140 
143 
148 
151 
156 
158 
161 
162 #endif
int Int_t
#define RQ_OBJECT(sender_class)
double Double_t
#define ClassDef(name, id)
TCanvas with mouse-controlled dynamic zoom and pan & scan.
Definition: KVCanvas.h:53
Hybrid identification grid.
GUI for finding/fixing mass identification intervals.
void DrawInterval(interval_set *itvs, bool label=0)
KVIDZAFromZGrid * fGrid
TGTransientFrame * fMain
void DisplayPIDint()
DrawIntervals();.
void ClearInterval(interval_set *itvs)
void ProcessIdentification(Int_t zmin=-1, Int_t zmax=-1)
TVirtualPad * fPad
void Identify()
KVBase::OpenContextMenu("Identify(double,double)",this);.
KVListView * fCurrentView
void DrawIntervals()
fCanvas->cd();
TGButton * fTBbuttons[50]
void FindPIDIntervals(Int_t zz)
KVItvFinderDialog(KVIDZAFromZGrid *gg, TH2 *hh)
TSpectrum fSpectrum
KVPIDIntervalFinder* fPIDFinder;.
void TestIdent()
fGrid->SetOnlyZId(0);
void SetNextIntevalZ(int zz)
virtual ~KVItvFinderDialog()
Destructor.
void LinearizeHisto(int nbins)
Double_t fpeaks(Double_t *x, Double_t *par)
KVListView * fCustomView
Enhanced version of ROOT TGListView widget.
Definition: KVListView.h:145
Extended TList class which owns its objects by default.
Definition: KVList.h:27