KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDBSystemDialog.h
1/*
2$Id: KVDBSystemDialog.h,v 1.7 2007/05/03 15:49:02 franklan Exp $
3$Revision: 1.7 $
4$Date: 2007/05/03 15:49:02 $
5*/
6
9
10#ifndef __KVDBSYSTEMDIALOG_H
11#define __KVDBSYSTEMDIALOG_H
12
13#include "TGButton.h"
14#include "RQ_OBJECT.h"
15#include "KVNumberList.h"
16#include "KVDatedFileManager.h"
17#include "Riostream.h"
19class TGComboBox;
20class TGTextEntry;
21class TGListBox;
22class TGLabel;
23class TGNumberEntry;
24class KVDBSystem;
25class KVList;
26class KVTarget;
27class KVMaterial;
28
37
38 RQ_OBJECT("KVDBSystemDialog")
39
41
43
49
65
66 std::unique_ptr<TObjArray> fMaterialsList;
67
70
73
75 void SetNeedSave(Bool_t k = kTRUE)
76 {
77 fNeedSave = k;
79 };
81 {
82 return fNeedSave;
83 };
84
85public:
86
87 KVDBSystemDialog(const TGWindow* p, const TGWindow* main, KVDBSystem* init_sys, const KVNumberList& runs,
88 UInt_t w = 1, UInt_t h = 1);
89 virtual ~KVDBSystemDialog();
90
91 void DoClose();
92 void CloseWindow();
93
94 void CreateMainWindow(const TGWindow* p, const TGWindow* main,
95 UInt_t w, UInt_t h);
96 void FillSystemList();
97 void SelectSystem(Int_t);
98 void DeleteSystem();
99
104
106
111
112 void AddNewTargetLayer();
113 void RemoveTargetLayer();
114
118
119 void CreateNewSystem();
120 void SetRuns();
121 void Undo();
122
125 {
126 Emit("UpdateRunlist()"); // *SIGNAL*
127 }
128
130 {
131 return fCheckButton1376->IsOn();
132 };
134 {
135 return (fTarget != 0);
136 };
137
138 void SaveSystems();
139
140 ClassDef(KVDBSystemDialog, 0) //Dialog box for setting system parameters associated to runs
141};
142
143#endif
int Int_t
unsigned int UInt_t
long Long_t
#define RQ_OBJECT(sender_class)
bool Bool_t
#define ClassDef(name, id)
Dialog box for setting system parameters associated to runs.
void DeleteSystem()
Delete the currently selected system.
KVNumberList fRuns
runs selected by user
void TargetAngleChanged(Long_t)
Called when target angle is changed.
KVDatedFileManager * fUndo
allows to undo changes to Systems.dat
TGLabel * fLabel1530
units for thickness
void ProjectileZChanged(Long_t)
TGComboBox * fComboBox1515
layers in current target
void SetNeedSave(Bool_t k=kTRUE)
TGComboBox * fComboBox1542
list of materials for creating target layers
TGTextButton * fTextButton1553
add new layer to target
void RemoveAll(TGComboBox *)
KVString fCurrentSystemsFile
name (including timestamp) of currently used Systems.dat
KVTarget * fTarget
current target
void ProjectileEChanged(Long_t)
void UpdateSystemProperties()
Update displayed system properties, e.g. when a new system is selected in fComboBox1476.
void UpdateTargetLayerProperties(Int_t)
TGNumberEntry * fNumberEntry1493
Z of projectile.
TGTextButton * fSetRuns
associate runs with selected system
KVMaterial * fLayer
current target layer
TGTextEntry * fTextEntry1490
symbol of projectile
TGNumberEntry * fNumberEntry1499
A of projectile.
TGNumberEntry * fNumberEntry1537
atomic mass of current layer
KVDBSystem * fSystem
currently selected system in combo box fComboBox1476
TGNumberEntry * fNumberEntry1509
E/A of projectile.
TGNumberEntry * fNumberEntry1526
thickness of current layer
TGComboBox * fComboBox1476
combo box displaying list of systems for current dataset
void CreateMainWindow(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h)
Creates main window and displays it.
TGTransientFrame * fMainFrame1475
the main window
void TargetLayerAChanged(Long_t)
Called when target layer A is changed.
virtual ~KVDBSystemDialog()
Destructor.
void TargetLayerThicknessChanged(Long_t)
TGTextButton * fCreateSystem
button to create new system
TGTextButton * fSaveButton
save changes
void UpdateRunlist()
Signal emitted to tell KVINDRARunSheetGUI to update the runlist.
TGTextButton * fTextButton1554
remove current layer from target
void SelectSystem(Int_t)
Called when a new system is selected in fComboBox1476.
Bool_t NeedSave() const
std::unique_ptr< TObjArray > fMaterialsList
list of all available materials
void ProjectileAChanged(Long_t)
void EnableProjectileProperties(Bool_t)
Called when "Projectile" check box is checked (on=kTRUE) or unchecked (on=kFALSE)
TGNumberEntry * fNumberEntry1532
target angle to beam
TGCheckButton * fCheckButton1376
check button to define projectile
Database class used to store information on different colliding systems studied during an experiment....
Definition KVDBSystem.h:52
Handles a set of different versions of files with the same base name and a timestamp.
Extended TList class which owns its objects by default.
Definition KVList.h:28
Description of physical materials used to construct detectors & targets; interface to range tables.
Definition KVMaterial.h:94
Strings used to represent a set of ranges of values.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition KVString.h:73
Calculation/correction of energy losses of particles through an experimental target.
Definition KVTarget.h:127
virtual void SetEnabled(Bool_t e=kTRUE)
Bool_t IsOn() const override
Bool_t IsEnabled() const