KaliVeda
Toolkit for HIC analysis
|
Dialog box for setting system parameters associated to runs.
Definition at line 36 of file KVDBSystemDialog.h.
#include <KVDBSystemDialog.h>
Private Member Functions | |
Bool_t | NeedSave () const |
void | RemoveAll (TGComboBox *) |
void | RemoveAll (TGListBox *) |
void | SetNeedSave (Bool_t k=kTRUE) |
Private Attributes | |
TGCheckButton * | fCheckButton1376 |
check button to define projectile | |
TGComboBox * | fComboBox1476 |
combo box displaying list of systems for current dataset | |
TGComboBox * | fComboBox1515 |
layers in current target | |
TGComboBox * | fComboBox1542 |
list of materials for creating target layers | |
TGTextButton * | fCreateSystem |
button to create new system | |
KVString | fCurrentSystemsFile |
name (including timestamp) of currently used Systems.dat | |
TGLabel * | fLabel1530 |
units for thickness | |
KVMaterial * | fLayer |
current target layer | |
TGTransientFrame * | fMainFrame1475 |
the main window | |
std::unique_ptr< TObjArray > | fMaterialsList |
list of all available materials | |
Bool_t | fNeedSave |
TGNumberEntry * | fNumberEntry1493 |
Z of projectile. | |
TGNumberEntry * | fNumberEntry1499 |
A of projectile. | |
TGNumberEntry * | fNumberEntry1509 |
E/A of projectile. | |
TGNumberEntry * | fNumberEntry1526 |
thickness of current layer | |
TGNumberEntry * | fNumberEntry1532 |
target angle to beam | |
TGNumberEntry * | fNumberEntry1537 |
atomic mass of current layer | |
KVNumberList | fRuns |
runs selected by user | |
TGTextButton * | fSaveButton |
save changes | |
TGTextButton * | fSetRuns |
associate runs with selected system | |
KVDBSystem * | fSystem |
currently selected system in combo box fComboBox1476 | |
KVTarget * | fTarget |
current target | |
TGTextButton * | fTextButton1553 |
add new layer to target | |
TGTextButton * | fTextButton1554 |
remove current layer from target | |
TGTextEntry * | fTextEntry1490 |
symbol of projectile | |
KVDatedFileManager * | fUndo |
allows to undo changes to Systems.dat | |
KVDBSystemDialog::KVDBSystemDialog | ( | const TGWindow * | p, |
const TGWindow * | main, | ||
KVDBSystem * | init_sys, | ||
const KVNumberList & | runs, | ||
UInt_t | w = 1 , |
||
UInt_t | h = 1 |
||
) |
Default constructor init_sys = initial system corresponding to chosen runs
Definition at line 116 of file KVDBSystemDialog.cpp.
|
virtual |
Destructor.
Definition at line 144 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::AddNewTargetLayer | ( | ) |
Called when "Add" button is clicked. Add a new target layer. Creates target if none exists. The currently selected material in the list will be used The new layer will be added after any existing layers in the target. get selected material
Definition at line 659 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::CloseWindow | ( | ) |
Definition at line 168 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::CreateMainWindow | ( | const TGWindow * | p, |
const TGWindow * | main, | ||
UInt_t | w, | ||
UInt_t | h | ||
) |
Creates main window and displays it.
Definition at line 803 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::CreateNewSystem | ( | ) |
Use current values of all fields in dialog box to create a new KVDBSystem We open a dialog to ask for the title of the new system, and for the target Z and A if a target is defined.
Definition at line 210 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::DeleteSystem | ( | ) |
Delete the currently selected system.
Definition at line 180 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::DoClose | ( | ) |
Definition at line 158 of file KVDBSystemDialog.cpp.
Called when "Projectile" check box is checked (on=kTRUE) or unchecked (on=kFALSE)
Definition at line 412 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::FillSystemList | ( | ) |
Fill combo box with list of all systems for the current dataset clear list of systems
Definition at line 346 of file KVDBSystemDialog.cpp.
|
inline |
Definition at line 129 of file KVDBSystemDialog.h.
|
inline |
Definition at line 133 of file KVDBSystemDialog.h.
|
inlineprivate |
Definition at line 80 of file KVDBSystemDialog.h.
Called when projectile A is changed Changes A of projectile for system
Definition at line 580 of file KVDBSystemDialog.cpp.
Called when projectile E is changed Changes E of projectile for system
Definition at line 596 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::ProjectileSymbolChanged | ( | ) |
Called when projectile symbol is changed and the user presses "Return" Changes Z and A of projectile for system
Definition at line 528 of file KVDBSystemDialog.cpp.
Called when projectile Z is changed Changes Z and symbol of projectile for system
Definition at line 557 of file KVDBSystemDialog.cpp.
|
private |
void KVDBSystemDialog::RemoveTargetLayer | ( | ) |
Removes currently selected layer from target. In fact we create a new target which does not have the offending layer
Definition at line 697 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::SaveSystems | ( | ) |
Write new Systems.dat file. The list of file versions for the 'Undo' is updated
Definition at line 283 of file KVDBSystemDialog.cpp.
Called when a new system is selected in fComboBox1476.
Definition at line 378 of file KVDBSystemDialog.cpp.
Definition at line 75 of file KVDBSystemDialog.h.
void KVDBSystemDialog::SetRuns | ( | ) |
Called when "SetRuns" button is clicked. The selected system is associated with the runlist passed to the constructor. The Systems.dat file is updated Any previous association run<->system is removed KVNumberList tmp; fSystem->GetRunList(tmp); tmp.Add(fRuns); fSystem->SetRuns(tmp);
Definition at line 741 of file KVDBSystemDialog.cpp.
Called when target angle is changed.
Definition at line 641 of file KVDBSystemDialog.cpp.
Called when target layer A is changed.
Definition at line 627 of file KVDBSystemDialog.cpp.
Called when target layer "thickness" is changed Note that this is in fact the area density in mg/cm**2
Definition at line 612 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::Undo | ( | ) |
Revert unsaved changes to system (if fNeedSave=kTRUE), or revert to previously saved version of Systems.dat file to remove unsaved changes, we simply rebuild the database from the existing files if there are no unsaved changes, we replace the current Systems.dat with the previous version
Definition at line 304 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::UpdateProjectileProperties | ( | ) |
Update displayed projectile properties Called by UpdateSystemProperties().
Definition at line 427 of file KVDBSystemDialog.cpp.
|
inline |
Signal emitted to tell KVINDRARunSheetGUI to update the runlist.
Definition at line 124 of file KVDBSystemDialog.h.
void KVDBSystemDialog::UpdateSystemProperties | ( | ) |
Update displayed system properties, e.g. when a new system is selected in fComboBox1476.
Definition at line 400 of file KVDBSystemDialog.cpp.
Update displayed target layer properties Called when a new layer is selected in fComboBox1515
Definition at line 499 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::UpdateTargetProperties | ( | ) |
Update displayed target properties Called by UpdateSystemProperties(). clear list of target layers
Definition at line 464 of file KVDBSystemDialog.cpp.
|
private |
check button to define projectile
Definition at line 44 of file KVDBSystemDialog.h.
|
private |
combo box displaying list of systems for current dataset
Definition at line 42 of file KVDBSystemDialog.h.
|
private |
layers in current target
Definition at line 51 of file KVDBSystemDialog.h.
|
private |
list of materials for creating target layers
Definition at line 55 of file KVDBSystemDialog.h.
|
private |
button to create new system
Definition at line 58 of file KVDBSystemDialog.h.
|
private |
name (including timestamp) of currently used Systems.dat
Definition at line 69 of file KVDBSystemDialog.h.
|
private |
units for thickness
Definition at line 53 of file KVDBSystemDialog.h.
|
private |
current target layer
Definition at line 63 of file KVDBSystemDialog.h.
|
private |
the main window
Definition at line 40 of file KVDBSystemDialog.h.
|
private |
list of all available materials
Definition at line 66 of file KVDBSystemDialog.h.
|
private |
Definition at line 74 of file KVDBSystemDialog.h.
|
private |
Z of projectile.
Definition at line 46 of file KVDBSystemDialog.h.
|
private |
A of projectile.
Definition at line 47 of file KVDBSystemDialog.h.
|
private |
E/A of projectile.
Definition at line 48 of file KVDBSystemDialog.h.
|
private |
thickness of current layer
Definition at line 52 of file KVDBSystemDialog.h.
|
private |
target angle to beam
Definition at line 50 of file KVDBSystemDialog.h.
|
private |
atomic mass of current layer
Definition at line 54 of file KVDBSystemDialog.h.
|
private |
runs selected by user
Definition at line 64 of file KVDBSystemDialog.h.
|
private |
save changes
Definition at line 59 of file KVDBSystemDialog.h.
|
private |
associate runs with selected system
Definition at line 60 of file KVDBSystemDialog.h.
|
private |
currently selected system in combo box fComboBox1476
Definition at line 61 of file KVDBSystemDialog.h.
|
private |
current target
Definition at line 62 of file KVDBSystemDialog.h.
|
private |
add new layer to target
Definition at line 56 of file KVDBSystemDialog.h.
|
private |
remove current layer from target
Definition at line 57 of file KVDBSystemDialog.h.
|
private |
symbol of projectile
Definition at line 45 of file KVDBSystemDialog.h.
|
private |
allows to undo changes to Systems.dat
Definition at line 68 of file KVDBSystemDialog.h.