KaliVeda
Toolkit for HIC analysis
KVSimDirGUI.h
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 
152 class KVSimDirGUI : public KVBase {
153  RQ_OBJECT("KVSimDirGUI")
154 
157 
159  /* picture buttons for managing directories */
164  /* list tree for managing directories */
168  const TGPicture* popen;
170  /* lists of data */
173  /* tabs for filtering, analysing */
185  /* filter */
201  enum {
202  kFTGeo = 1,
204  kFTFull
205  };
206  enum {
208  kGTROOT
209  };
210  enum {
211  kKCM = 1,
213  kKProj
214  };
222 #ifdef WITH_RSQLITE
224 #endif
227 protected:
228  void SetFilterOptions();
229 #ifdef WITH_RSQLITE
230  TString AddTableForDataSet(KVSimDir* sd, int ds_table_number);
231  void FillDataSetTableWithInfos(TString ds_table_name, KVSimDir* sd);
233 #endif
234 
235 public:
236  KVSimDirGUI();
237  KVSimDirGUI(const KVSimDirGUI&) ;
238  virtual ~KVSimDirGUI();
239  void Copy(TObject&) const;
240  void Exit()
241  {
243  }
244 
245  void AddSimDir();
246  void RemSimDir();
247  void RefreshSimDir();
248  void FillTreeList();
249  void EmptyTreeList();
251 
253  void SelectAnalysisClass();
254  void RunAnalysis(const TString& type);
255 
256  void SelectDataSet(const char*);
257  void SelectSystem(const char*);
258  void UpdateSystemText(const char*);
259  void SelectRun(const char*);
261  {
262  fFilterType = i;
263  }
264  void GeoType(Int_t i)
265  {
266  fGeoType = i;
267  }
269  {
270  fKine = i;
271  }
273  {
275  if (on)
277  else
279  }
281  {
282  fRandomPhi = on;
283  }
285  {
286  fGemDecay = on;
287 
288  if (on) {
291  }
292  else {
295  }
296  }
298  {
299  fGemAddRotEner = on;
300  }
301 
303  void Run();
304  void EnableProof()
305  {
307  fWithPROOF = kTRUE;
318  }
320  {
322  fWithPROOF = kFALSE;
327  }
328 
329  void ImportSimulation();
332  Bool_t WarningBox(const char* title, const char* msg, Bool_t confirm);
333 
334  ClassDef(KVSimDirGUI, 0) //GUI for simulated data
335 };
336 
337 #endif
int Int_t
#define RQ_OBJECT(sender_class)
bool Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
#define ClassDef(name, id)
R__EXTERN TApplication * gApplication
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Base class for KaliVeda framework.
Definition: KVBase.h:142
Enhanced version of ROOT TGListView widget.
Definition: KVListView.h:146
Extended TList class which owns its objects by default.
Definition: KVList.h:28
Interface to ROOT SQLite database backend.
Definition: SQLiteDB.h:401
GUI for analysing and filtering simulated data.
Definition: KVSimDirGUI.h:152
TGPictureButton * BremDir
Definition: KVSimDirGUI.h:162
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:199
Bool_t fGemAddRotEner
Definition: KVSimDirGUI.h:200
TGCompositeFrame * fAnalTab
analysis tab
Definition: KVSimDirGUI.h:175
KVSQLite::database fConfigDB
Definition: KVSimDirGUI.h:223
void RemSimDir()
TGComboBox * fCBrun
Definition: KVSimDirGUI.h:188
TGComboBox * fCBdataset
Definition: KVSimDirGUI.h:186
TGTextEntry * fTESystem
Definition: KVSimDirGUI.h:178
void EmptyTreeList()
void EnableProof()
Definition: KVSimDirGUI.h:304
void RefreshSimDir()
void SelectAnalysisClass()
void SetGeminiDecayAddRotEnergy(Bool_t on)
Definition: KVSimDirGUI.h:297
KVString fRun
Definition: KVSimDirGUI.h:191
TGCompositeFrame * fFiltTab
filter tab
Definition: KVSimDirGUI.h:176
Bool_t fGemDecay
Definition: KVSimDirGUI.h:197
void FilterType(Int_t i)
Definition: KVSimDirGUI.h:260
void UpdateSystemText(const char *)
called every time the text changes
void SetFilterOptions()
void AddSimDir()
TGCheckButton * fCBAllEvents
Definition: KVSimDirGUI.h:183
virtual ~KVSimDirGUI()
Destructor.
TGCheckButton * custom_kinematics_check
Definition: KVSimDirGUI.h:192
void NewSimulatedAnalysisClass()
Get name of new class.
KVList fListOfDirs
Definition: KVSimDirGUI.h:155
TGPictureButton * proof_analysis_ana
Definition: KVSimDirGUI.h:220
TGMainFrame * MainFrame
Definition: KVSimDirGUI.h:158
TGCheckButton * gemini_decay
Definition: KVSimDirGUI.h:196
TGViewPort * fDirListViewPort
Definition: KVSimDirGUI.h:166
TGNumberEntry * fNENumberEvents
Definition: KVSimDirGUI.h:184
KVString fAnalClassName
Definition: KVSimDirGUI.h:179
void SelectSystem(const char *)
void SetCustomKinematics(Bool_t on)
Definition: KVSimDirGUI.h:272
void DisableProof()
Definition: KVSimDirGUI.h:319
void FillTreeList()
Int_t fFilterType
Definition: KVSimDirGUI.h:215
TGComboBox * fCBsystem
Definition: KVSimDirGUI.h:187
KVSimDir * fSelectedSimDir
Definition: KVSimDirGUI.h:156
void Copy(TObject &) const
TGTab * fAnalysisTabs
Definition: KVSimDirGUI.h:174
KVString fReactionKinematics
Definition: KVSimDirGUI.h:190
KVString fSystem
Definition: KVSimDirGUI.h:190
TGListTree * fDirListTree
Definition: KVSimDirGUI.h:167
TGCanvas * fDirListCanvas
Definition: KVSimDirGUI.h:165
const TGPicture * pclose
used for list tree items
Definition: KVSimDirGUI.h:169
void SetRandomPhi(Bool_t on)
Definition: KVSimDirGUI.h:280
const TGPicture * popen
used for list tree items
Definition: KVSimDirGUI.h:168
KVString fAnalClassHeader
Definition: KVSimDirGUI.h:180
Bool_t fCustomKinematics
Definition: KVSimDirGUI.h:193
KVListView * fLVfiltData
Definition: KVSimDirGUI.h:172
void Exit()
Definition: KVSimDirGUI.h:240
void Run()
void ChangeOutputDirectory();
void FillDataSetTableWithInfos(TString ds_table_name, KVSimDir *sd)
Definition: KVSimDirGUI.cpp:67
TGPictureButton * proof_analysis
TGTextEntry* fTEOutputDir;.
Definition: KVSimDirGUI.h:219
KVString fAnalClassImp
Definition: KVSimDirGUI.h:181
TGNumberEntry * gemini_decays
Definition: KVSimDirGUI.h:198
TGCheckButton * phi_rotation_check
Definition: KVSimDirGUI.h:194
KVString fAnalClassDir
Definition: KVSimDirGUI.h:182
void EnableEventNumberEntry(Bool_t)
Int_t fGeoType
Definition: KVSimDirGUI.h:216
void RunAnalysis(const TString &type)
Bool_t WarningBox(const char *title, const char *msg, Bool_t confirm)
TGPictureButton * BaddDir
Definition: KVSimDirGUI.h:160
void SetGeminiDecay(Bool_t on)
Definition: KVSimDirGUI.h:284
Bool_t fWithPROOF
=kTRUE when running with PROOF-lite
Definition: KVSimDirGUI.h:225
void GeoType(Int_t i)
Definition: KVSimDirGUI.h:264
Bool_t fCancelJob
if job parameters are not valid
Definition: KVSimDirGUI.h:226
void Kinematics(Int_t i)
Definition: KVSimDirGUI.h:268
Bool_t fRandomPhi
Definition: KVSimDirGUI.h:195
KVListView * fLVsimData
Definition: KVSimDirGUI.h:171
TGPictureButton * BimpSim
Definition: KVSimDirGUI.h:161
TGPictureButton * BrefreshDir
Definition: KVSimDirGUI.h:163
TGTextEntry * fTEAnalysisClassFileName
Definition: KVSimDirGUI.h:177
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:35
void ImportSimulation()
Import simulation data from currently selected directory.
KVString fDataset
Definition: KVSimDirGUI.h:189
void SelectRun(const char *)
Handle directory containing simulated and/or filtered simulated data ,.
Definition: KVSimDir.h:44
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73
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)
void SetEnabled(Bool_t flag=kTRUE)