KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDBSystemDialog Class Reference

Detailed Description

Dialog box for setting system parameters associated to runs.

Definition at line 36 of file KVDBSystemDialog.h.

#include <KVDBSystemDialog.h>

Public Member Functions

 KVDBSystemDialog (const TGWindow *p, const TGWindow *main, KVDBSystem *init_sys, const KVNumberList &runs, UInt_t w=1, UInt_t h=1)
 
virtual ~KVDBSystemDialog ()
 Destructor.
 
void AddNewTargetLayer ()
 
void CloseWindow ()
 
void CreateMainWindow (const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h)
 Creates main window and displays it.
 
void CreateNewSystem ()
 
void DeleteSystem ()
 Delete the currently selected system.
 
void DoClose ()
 
void EnableProjectileProperties (Bool_t)
 Called when "Projectile" check box is checked (on=kTRUE) or unchecked (on=kFALSE)
 
void FillSystemList ()
 
Bool_t IsProjectileDefined ()
 
Bool_t IsTargetDefined ()
 
void ProjectileAChanged (Long_t)
 
void ProjectileEChanged (Long_t)
 
void ProjectileSymbolChanged ()
 
void ProjectileZChanged (Long_t)
 
void RemoveTargetLayer ()
 
void SaveSystems ()
 
void SelectSystem (Int_t)
 Called when a new system is selected in fComboBox1476.
 
void SetRuns ()
 
void TargetAngleChanged (Long_t)
 Called when target angle is changed.
 
void TargetLayerAChanged (Long_t)
 Called when target layer A is changed.
 
void TargetLayerThicknessChanged (Long_t)
 
void Undo ()
 
void UpdateProjectileProperties ()
 
void UpdateRunlist ()
 Signal emitted to tell KVINDRARunSheetGUI to update the runlist.
 
void UpdateSystemProperties ()
 Update displayed system properties, e.g. when a new system is selected in fComboBox1476.
 
void UpdateTargetLayerProperties (Int_t)
 
void UpdateTargetProperties ()
 

Private Member Functions

Bool_t NeedSave () const
 
void RemoveAll (TGComboBox *)
 
void RemoveAll (TGListBox *)
 
void SetNeedSave (Bool_t k=kTRUE)
 

Private Attributes

TGCheckButtonfCheckButton1376
 check button to define projectile
 
TGComboBoxfComboBox1476
 combo box displaying list of systems for current dataset
 
TGComboBoxfComboBox1515
 layers in current target
 
TGComboBoxfComboBox1542
 list of materials for creating target layers
 
TGTextButtonfCreateSystem
 button to create new system
 
KVString fCurrentSystemsFile
 name (including timestamp) of currently used Systems.dat
 
TGLabelfLabel1530
 units for thickness
 
KVMaterialfLayer
 current target layer
 
TGTransientFramefMainFrame1475
 the main window
 
std::unique_ptr< TObjArrayfMaterialsList
 list of all available materials
 
Bool_t fNeedSave
 
TGNumberEntryfNumberEntry1493
 Z of projectile.
 
TGNumberEntryfNumberEntry1499
 A of projectile.
 
TGNumberEntryfNumberEntry1509
 E/A of projectile.
 
TGNumberEntryfNumberEntry1526
 thickness of current layer
 
TGNumberEntryfNumberEntry1532
 target angle to beam
 
TGNumberEntryfNumberEntry1537
 atomic mass of current layer
 
KVNumberList fRuns
 runs selected by user
 
TGTextButtonfSaveButton
 save changes
 
TGTextButtonfSetRuns
 associate runs with selected system
 
KVDBSystemfSystem
 currently selected system in combo box fComboBox1476
 
KVTargetfTarget
 current target
 
TGTextButtonfTextButton1553
 add new layer to target
 
TGTextButtonfTextButton1554
 remove current layer from target
 
TGTextEntryfTextEntry1490
 symbol of projectile
 
KVDatedFileManagerfUndo
 allows to undo changes to Systems.dat
 

Constructor & Destructor Documentation

◆ KVDBSystemDialog()

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.

◆ ~KVDBSystemDialog()

KVDBSystemDialog::~KVDBSystemDialog ( )
virtual

Destructor.

Definition at line 144 of file KVDBSystemDialog.cpp.

Member Function Documentation

◆ AddNewTargetLayer()

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.

◆ CloseWindow()

void KVDBSystemDialog::CloseWindow ( )

Definition at line 168 of file KVDBSystemDialog.cpp.

◆ CreateMainWindow()

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.

◆ CreateNewSystem()

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.

◆ DeleteSystem()

void KVDBSystemDialog::DeleteSystem ( )

Delete the currently selected system.

Definition at line 180 of file KVDBSystemDialog.cpp.

◆ DoClose()

void KVDBSystemDialog::DoClose ( )

Definition at line 158 of file KVDBSystemDialog.cpp.

◆ EnableProjectileProperties()

void KVDBSystemDialog::EnableProjectileProperties ( Bool_t  on)

Called when "Projectile" check box is checked (on=kTRUE) or unchecked (on=kFALSE)

Definition at line 412 of file KVDBSystemDialog.cpp.

◆ FillSystemList()

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.

◆ IsProjectileDefined()

Bool_t KVDBSystemDialog::IsProjectileDefined ( )
inline

Definition at line 129 of file KVDBSystemDialog.h.

◆ IsTargetDefined()

Bool_t KVDBSystemDialog::IsTargetDefined ( )
inline

Definition at line 133 of file KVDBSystemDialog.h.

◆ NeedSave()

Bool_t KVDBSystemDialog::NeedSave ( ) const
inlineprivate

Definition at line 80 of file KVDBSystemDialog.h.

◆ ProjectileAChanged()

void KVDBSystemDialog::ProjectileAChanged ( Long_t  )

Called when projectile A is changed Changes A of projectile for system

Definition at line 580 of file KVDBSystemDialog.cpp.

◆ ProjectileEChanged()

void KVDBSystemDialog::ProjectileEChanged ( Long_t  )

Called when projectile E is changed Changes E of projectile for system

Definition at line 596 of file KVDBSystemDialog.cpp.

◆ ProjectileSymbolChanged()

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.

◆ ProjectileZChanged()

void KVDBSystemDialog::ProjectileZChanged ( Long_t  )

Called when projectile Z is changed Changes Z and symbol of projectile for system

Definition at line 557 of file KVDBSystemDialog.cpp.

◆ RemoveAll() [1/2]

void KVDBSystemDialog::RemoveAll ( TGComboBox )
private

◆ RemoveAll() [2/2]

void KVDBSystemDialog::RemoveAll ( TGListBox )
private

◆ RemoveTargetLayer()

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.

◆ SaveSystems()

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.

◆ SelectSystem()

void KVDBSystemDialog::SelectSystem ( Int_t  index)

Called when a new system is selected in fComboBox1476.

Definition at line 378 of file KVDBSystemDialog.cpp.

◆ SetNeedSave()

void KVDBSystemDialog::SetNeedSave ( Bool_t  k = kTRUE)
inlineprivate

Definition at line 75 of file KVDBSystemDialog.h.

◆ SetRuns()

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.

◆ TargetAngleChanged()

void KVDBSystemDialog::TargetAngleChanged ( Long_t  )

Called when target angle is changed.

Definition at line 641 of file KVDBSystemDialog.cpp.

◆ TargetLayerAChanged()

void KVDBSystemDialog::TargetLayerAChanged ( Long_t  )

Called when target layer A is changed.

Definition at line 627 of file KVDBSystemDialog.cpp.

◆ TargetLayerThicknessChanged()

void KVDBSystemDialog::TargetLayerThicknessChanged ( Long_t  )

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.

◆ Undo()

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.

◆ UpdateProjectileProperties()

void KVDBSystemDialog::UpdateProjectileProperties ( )

Update displayed projectile properties Called by UpdateSystemProperties().

Definition at line 427 of file KVDBSystemDialog.cpp.

◆ UpdateRunlist()

void KVDBSystemDialog::UpdateRunlist ( )
inline

Signal emitted to tell KVINDRARunSheetGUI to update the runlist.

Definition at line 124 of file KVDBSystemDialog.h.

◆ UpdateSystemProperties()

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.

◆ UpdateTargetLayerProperties()

void KVDBSystemDialog::UpdateTargetLayerProperties ( Int_t  ind)

Update displayed target layer properties Called when a new layer is selected in fComboBox1515

Definition at line 499 of file KVDBSystemDialog.cpp.

◆ UpdateTargetProperties()

void KVDBSystemDialog::UpdateTargetProperties ( )

Update displayed target properties Called by UpdateSystemProperties(). clear list of target layers

Definition at line 464 of file KVDBSystemDialog.cpp.

Member Data Documentation

◆ fCheckButton1376

TGCheckButton* KVDBSystemDialog::fCheckButton1376
private

check button to define projectile

Definition at line 44 of file KVDBSystemDialog.h.

◆ fComboBox1476

TGComboBox* KVDBSystemDialog::fComboBox1476
private

combo box displaying list of systems for current dataset

Definition at line 42 of file KVDBSystemDialog.h.

◆ fComboBox1515

TGComboBox* KVDBSystemDialog::fComboBox1515
private

layers in current target

Definition at line 51 of file KVDBSystemDialog.h.

◆ fComboBox1542

TGComboBox* KVDBSystemDialog::fComboBox1542
private

list of materials for creating target layers

Definition at line 55 of file KVDBSystemDialog.h.

◆ fCreateSystem

TGTextButton* KVDBSystemDialog::fCreateSystem
private

button to create new system

Definition at line 58 of file KVDBSystemDialog.h.

◆ fCurrentSystemsFile

KVString KVDBSystemDialog::fCurrentSystemsFile
private

name (including timestamp) of currently used Systems.dat

Definition at line 69 of file KVDBSystemDialog.h.

◆ fLabel1530

TGLabel* KVDBSystemDialog::fLabel1530
private

units for thickness

Definition at line 53 of file KVDBSystemDialog.h.

◆ fLayer

KVMaterial* KVDBSystemDialog::fLayer
private

current target layer

Definition at line 63 of file KVDBSystemDialog.h.

◆ fMainFrame1475

TGTransientFrame* KVDBSystemDialog::fMainFrame1475
private

the main window

Definition at line 40 of file KVDBSystemDialog.h.

◆ fMaterialsList

std::unique_ptr<TObjArray> KVDBSystemDialog::fMaterialsList
private

list of all available materials

Definition at line 66 of file KVDBSystemDialog.h.

◆ fNeedSave

Bool_t KVDBSystemDialog::fNeedSave
private

Definition at line 74 of file KVDBSystemDialog.h.

◆ fNumberEntry1493

TGNumberEntry* KVDBSystemDialog::fNumberEntry1493
private

Z of projectile.

Definition at line 46 of file KVDBSystemDialog.h.

◆ fNumberEntry1499

TGNumberEntry* KVDBSystemDialog::fNumberEntry1499
private

A of projectile.

Definition at line 47 of file KVDBSystemDialog.h.

◆ fNumberEntry1509

TGNumberEntry* KVDBSystemDialog::fNumberEntry1509
private

E/A of projectile.

Definition at line 48 of file KVDBSystemDialog.h.

◆ fNumberEntry1526

TGNumberEntry* KVDBSystemDialog::fNumberEntry1526
private

thickness of current layer

Definition at line 52 of file KVDBSystemDialog.h.

◆ fNumberEntry1532

TGNumberEntry* KVDBSystemDialog::fNumberEntry1532
private

target angle to beam

Definition at line 50 of file KVDBSystemDialog.h.

◆ fNumberEntry1537

TGNumberEntry* KVDBSystemDialog::fNumberEntry1537
private

atomic mass of current layer

Definition at line 54 of file KVDBSystemDialog.h.

◆ fRuns

KVNumberList KVDBSystemDialog::fRuns
private

runs selected by user

Definition at line 64 of file KVDBSystemDialog.h.

◆ fSaveButton

TGTextButton* KVDBSystemDialog::fSaveButton
private

save changes

Definition at line 59 of file KVDBSystemDialog.h.

◆ fSetRuns

TGTextButton* KVDBSystemDialog::fSetRuns
private

associate runs with selected system

Definition at line 60 of file KVDBSystemDialog.h.

◆ fSystem

KVDBSystem* KVDBSystemDialog::fSystem
private

currently selected system in combo box fComboBox1476

Definition at line 61 of file KVDBSystemDialog.h.

◆ fTarget

KVTarget* KVDBSystemDialog::fTarget
private

current target

Definition at line 62 of file KVDBSystemDialog.h.

◆ fTextButton1553

TGTextButton* KVDBSystemDialog::fTextButton1553
private

add new layer to target

Definition at line 56 of file KVDBSystemDialog.h.

◆ fTextButton1554

TGTextButton* KVDBSystemDialog::fTextButton1554
private

remove current layer from target

Definition at line 57 of file KVDBSystemDialog.h.

◆ fTextEntry1490

TGTextEntry* KVDBSystemDialog::fTextEntry1490
private

symbol of projectile

Definition at line 45 of file KVDBSystemDialog.h.

◆ fUndo

KVDatedFileManager* KVDBSystemDialog::fUndo
private

allows to undo changes to Systems.dat

Definition at line 68 of file KVDBSystemDialog.h.