KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVSimDirGUI.h
Go to the documentation of this file.
1 
4 #ifndef __KVSIMDIRGUI_H
5 #define __KVSIMDIRGUI_H
6 
7 #include "KVBase.h"
8 #include "KVList.h"
9 #include "TGListTree.h"
10 #include "TGFrame.h"
11 #include "TGTab.h"
12 #include "TEnv.h"
13 #include "TGTextEntry.h"
14 #include "TGNumberEntry.h"
15 #include "TGButton.h"
16 #include "TGComboBox.h"
17 #include "RQ_OBJECT.h"
18 #include "TApplication.h"
19 #include "KVListView.h"
20 #include "KVSimDir.h"
21 #ifdef WITH_RSQLITE
22 #include "SQLiteDB.h"
23 #endif
24 class TChain;
25 
35 class KVSimDirGUI : public KVBase {
36  RQ_OBJECT("KVSimDirGUI")
37 
40 
42  /* picture buttons for managing directories */
47  /* list tree for managing directories */
51  const TGPicture* popen;
52  const TGPicture* pclose;
53  /* lists of data */
56  /* tabs for filtering, analysing */
68  /* filter */
82  enum {
83  kFTGeo = 1,
85  kFTFull
86  };
87  enum {
89  kGTROOT
90  };
91  enum {
92  kKCM = 1,
94  kKProj
95  };
103 #ifdef WITH_RSQLITE
105 #endif
108 protected:
109  void SetFilterOptions();
110 #ifdef WITH_RSQLITE
111  TString AddTableForDataSet(KVSimDir* sd, int ds_table_number);
112  void FillDataSetTableWithInfos(TString ds_table_name, KVSimDir* sd);
114 #endif
115 
116 public:
117  KVSimDirGUI();
118  KVSimDirGUI(const KVSimDirGUI&) ;
119  virtual ~KVSimDirGUI();
120  void Copy(TObject&) const;
121  void Exit()
122  {
124  }
125 
126  void AddSimDir();
127  void RemSimDir();
128  void RefreshSimDir();
129  void FillTreeList();
130  void EmptyTreeList();
132 
134  void SelectAnalysisClass();
135  void RunAnalysis(const TString& type);
136 
137  void SelectDataSet(const char*);
138  void SelectSystem(const char*);
139  void UpdateSystemText(const char*);
140  void SelectRun(const char*);
142  {
143  fFilterType = i;
144  }
145  void GeoType(Int_t i)
146  {
147  fGeoType = i;
148  }
150  {
151  fKine = i;
152  }
154  {
155  fRandomPhi = on;
156  }
158  {
159  fGemDecay = on;
160 
161  if (on) {
164  }
165  else {
168  }
169  }
171  {
172  fGemAddRotEner = on;
173  }
174 
176  void Run();
177  void EnableProof()
178  {
180  fWithPROOF = kTRUE;
191  }
193  {
195  fWithPROOF = kFALSE;
200  }
201 
202  void ImportSimulation();
205  Bool_t WarningBox(const char* title, const char* msg, Bool_t confirm);
206 
207  ClassDef(KVSimDirGUI, 0) //GUI for simulated data
208 };
209 
210 #endif
int Int_t
#define RQ_OBJECT(sender_class)
const Bool_t kFALSE
bool Bool_t
const Bool_t kTRUE
#define ClassDef(name, id)
R__EXTERN TApplication * gApplication
Base class for KaliVeda framework.
Definition: KVBase.h:141
Enhanced version of ROOT TGListView widget.
Definition: KVListView.h:145
Extended TList class which owns its objects by default.
Definition: KVList.h:27
Interface to ROOT SQLite database backend ,.
Definition: SQLiteDB.h:389
GUI for analysing and filtering simulated data.
Definition: KVSimDirGUI.h:35
TGPictureButton * BremDir
Definition: KVSimDirGUI.h:45
void SelectDataSet(const char *)
void ReconstructSimDirsFromDB()
Rebuild all KVSimDir/KVSimFile objects from information in sqlite DB.
void NewFilteredAnalysisClass()
Get name of new class.
TGCheckButton * gemini_add_rot_energy
Definition: KVSimDirGUI.h:80
Bool_t fGemAddRotEner
Definition: KVSimDirGUI.h:81
TGCompositeFrame * fAnalTab
analysis tab
Definition: KVSimDirGUI.h:58
KVSQLite::database fConfigDB
Definition: KVSimDirGUI.h:104
void RemSimDir()
TGComboBox * fCBrun
Definition: KVSimDirGUI.h:71
TGComboBox * fCBdataset
Definition: KVSimDirGUI.h:69
TGTextEntry * fTESystem
Definition: KVSimDirGUI.h:61
void EmptyTreeList()
void EnableProof()
Definition: KVSimDirGUI.h:177
void RefreshSimDir()
void SelectAnalysisClass()
void SetGeminiDecayAddRotEnergy(Bool_t on)
Definition: KVSimDirGUI.h:170
KVString fRun
Definition: KVSimDirGUI.h:74
TGCompositeFrame * fFiltTab
filter tab
Definition: KVSimDirGUI.h:59
Bool_t fGemDecay
Definition: KVSimDirGUI.h:78
void FilterType(Int_t i)
Definition: KVSimDirGUI.h:141
void UpdateSystemText(const char *)
called every time the text changes
void SetFilterOptions()
void AddSimDir()
TGCheckButton * fCBAllEvents
Definition: KVSimDirGUI.h:66
virtual ~KVSimDirGUI()
Destructor.
void NewSimulatedAnalysisClass()
Get name of new class.
KVList fListOfDirs
Definition: KVSimDirGUI.h:38
TGPictureButton * proof_analysis_ana
Definition: KVSimDirGUI.h:101
TGMainFrame * MainFrame
Definition: KVSimDirGUI.h:41
TGCheckButton * gemini_decay
Definition: KVSimDirGUI.h:77
TGViewPort * fDirListViewPort
Definition: KVSimDirGUI.h:49
TGNumberEntry * fNENumberEvents
Definition: KVSimDirGUI.h:67
KVString fAnalClassName
Definition: KVSimDirGUI.h:62
void SelectSystem(const char *)
void DisableProof()
Definition: KVSimDirGUI.h:192
void FillTreeList()
Int_t fFilterType
Definition: KVSimDirGUI.h:96
TGComboBox * fCBsystem
Definition: KVSimDirGUI.h:70
KVSimDir * fSelectedSimDir
Definition: KVSimDirGUI.h:39
void Copy(TObject &) const
TGTab * fAnalysisTabs
Definition: KVSimDirGUI.h:57
KVString fSystem
Definition: KVSimDirGUI.h:73
TGListTree * fDirListTree
Definition: KVSimDirGUI.h:50
TGCanvas * fDirListCanvas
Definition: KVSimDirGUI.h:48
const TGPicture * pclose
used for list tree items
Definition: KVSimDirGUI.h:52
void SetRandomPhi(Bool_t on)
Definition: KVSimDirGUI.h:153
const TGPicture * popen
used for list tree items
Definition: KVSimDirGUI.h:51
KVString fAnalClassHeader
Definition: KVSimDirGUI.h:63
KVListView * fLVfiltData
Definition: KVSimDirGUI.h:55
void Exit()
Definition: KVSimDirGUI.h:121
void Run()
void ChangeOutputDirectory();
void FillDataSetTableWithInfos(TString ds_table_name, KVSimDir *sd)
Definition: KVSimDirGUI.cpp:68
TGPictureButton * proof_analysis
TGTextEntry* fTEOutputDir;.
Definition: KVSimDirGUI.h:100
KVString fAnalClassImp
Definition: KVSimDirGUI.h:64
TGNumberEntry * gemini_decays
Definition: KVSimDirGUI.h:79
TGCheckButton * phi_rotation_check
Definition: KVSimDirGUI.h:75
Int_t fKine
Definition: KVSimDirGUI.h:98
KVString fAnalClassDir
Definition: KVSimDirGUI.h:65
void EnableEventNumberEntry(Bool_t)
Int_t fGeoType
Definition: KVSimDirGUI.h:97
void RunAnalysis(const TString &type)
Bool_t WarningBox(const char *title, const char *msg, Bool_t confirm)
TGPictureButton * BaddDir
Definition: KVSimDirGUI.h:43
void SetGeminiDecay(Bool_t on)
Definition: KVSimDirGUI.h:157
Bool_t fWithPROOF
=kTRUE when running with PROOF-lite
Definition: KVSimDirGUI.h:106
void GeoType(Int_t i)
Definition: KVSimDirGUI.h:145
Bool_t fCancelJob
if job parameters are not valid
Definition: KVSimDirGUI.h:107
void Kinematics(Int_t i)
Definition: KVSimDirGUI.h:149
Bool_t fRandomPhi
Definition: KVSimDirGUI.h:76
KVListView * fLVsimData
Definition: KVSimDirGUI.h:54
TGPictureButton * BimpSim
Definition: KVSimDirGUI.h:44
TGPictureButton * BrefreshDir
Definition: KVSimDirGUI.h:46
TGTextEntry * fTEAnalysisClassFileName
Definition: KVSimDirGUI.h:60
void SelectSimDir(TGListTreeItem *, Int_t)
TString AddTableForDataSet(KVSimDir *sd, int ds_table_number)
Add a new dataset table for the given KVSimDir object.
Definition: KVSimDirGUI.cpp:36
void ImportSimulation()
Import simulation data from currently selected directory.
KVString fDataset
Definition: KVSimDirGUI.h:72
void SelectRun(const char *)
Handle directory containing simulated and/or filtered simulated data ,.
Definition: KVSimDir.h:43
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:72
virtual void Terminate(Int_t status=0)
virtual void SetDown(Bool_t on=kTRUE, Bool_t emit=kFALSE)
virtual void SetEnabled(Bool_t e=kTRUE)
virtual void SetDisabledAndSelected(Bool_t)
virtual void SetState(Bool_t enable=kTRUE)