KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVSimDirGUI.h
1
3
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
24class TChain;
25
152class KVSimDirGUI : public KVBase {
153 RQ_OBJECT("KVSimDirGUI")
154
157
159 /* picture buttons for managing directories */
164 /* list tree for managing directories */
170 /* lists of data */
173 /* tabs for filtering, analysing */
185 /* filter */
201 enum {
204 kFTFull
205 };
206 enum {
208 kGTROOT
209 };
210 enum {
211 kKCM = 1,
213 kKProj
214 };
222#ifdef WITH_RSQLITE
224#endif
227protected:
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
235public:
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 }
265 {
266 fGeoType = i;
267 }
269 {
270 fKine = i;
271 }
273 {
275 if (on)
277 else
279 }
281 {
282 fRandomPhi = on;
283 }
301
303 void Run();
305 {
318 }
320 {
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.
TGPictureButton * BremDir
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
Bool_t fGemAddRotEner
TGCompositeFrame * fAnalTab
analysis tab
KVSQLite::database fConfigDB
TGComboBox * fCBrun
TGComboBox * fCBdataset
TGTextEntry * fTESystem
void EmptyTreeList()
void EnableProof()
void RefreshSimDir()
void SelectAnalysisClass()
void SetGeminiDecayAddRotEnergy(Bool_t on)
KVString fRun
TGCompositeFrame * fFiltTab
filter tab
Bool_t fGemDecay
void FilterType(Int_t i)
void UpdateSystemText(const char *)
called every time the text changes
void SetFilterOptions()
TGCheckButton * fCBAllEvents
virtual ~KVSimDirGUI()
Destructor.
TGCheckButton * custom_kinematics_check
void NewSimulatedAnalysisClass()
Get name of new class.
KVList fListOfDirs
TGPictureButton * proof_analysis_ana
TGMainFrame * MainFrame
TGCheckButton * gemini_decay
TGViewPort * fDirListViewPort
TGNumberEntry * fNENumberEvents
KVString fAnalClassName
void SelectSystem(const char *)
void SetCustomKinematics(Bool_t on)
void DisableProof()
void FillTreeList()
Int_t fFilterType
TGComboBox * fCBsystem
KVSimDir * fSelectedSimDir
void Copy(TObject &) const
TGTab * fAnalysisTabs
KVString fReactionKinematics
KVString fSystem
TGListTree * fDirListTree
TGCanvas * fDirListCanvas
const TGPicture * pclose
used for list tree items
void SetRandomPhi(Bool_t on)
const TGPicture * popen
used for list tree items
KVString fAnalClassHeader
Bool_t fCustomKinematics
KVListView * fLVfiltData
void Run()
void ChangeOutputDirectory();
void FillDataSetTableWithInfos(TString ds_table_name, KVSimDir *sd)
TGPictureButton * proof_analysis
TGTextEntry* fTEOutputDir;.
KVString fAnalClassImp
TGNumberEntry * gemini_decays
TGCheckButton * phi_rotation_check
KVString fAnalClassDir
void EnableEventNumberEntry(Bool_t)
void RunAnalysis(const TString &type)
Bool_t WarningBox(const char *title, const char *msg, Bool_t confirm)
TGPictureButton * BaddDir
void SetGeminiDecay(Bool_t on)
Bool_t fWithPROOF
=kTRUE when running with PROOF-lite
void GeoType(Int_t i)
Bool_t fCancelJob
if job parameters are not valid
void Kinematics(Int_t i)
Bool_t fRandomPhi
KVListView * fLVsimData
TGPictureButton * BimpSim
TGPictureButton * BrefreshDir
TGTextEntry * fTEAnalysisClassFileName
void SelectSimDir(TGListTreeItem *, Int_t)
TString AddTableForDataSet(KVSimDir *sd, int ds_table_number)
Add a new dataset table for the given KVSimDir object.
void ImportSimulation()
Import simulation data from currently selected directory.
KVString fDataset
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)