KaliVeda
Toolkit for HIC analysis
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. More...
 
void AddNewTargetLayer ()
 
void CloseWindow ()
 
void CreateMainWindow (const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h)
 Creates main window and displays it. More...
 
void CreateNewSystem ()
 
void DeleteSystem ()
 Delete the currently selected system. More...
 
void DoClose ()
 
void EnableProjectileProperties (Bool_t)
 Called when "Projectile" check box is checked (on=kTRUE) or unchecked (on=kFALSE) More...
 
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. More...
 
void SetRuns ()
 
void TargetAngleChanged (Long_t)
 Called when target angle is changed. More...
 
void TargetLayerAChanged (Long_t)
 Called when target layer A is changed. More...
 
void TargetLayerThicknessChanged (Long_t)
 
void Undo ()
 
void UpdateProjectileProperties ()
 
void UpdateRunlist ()
 Signal emitted to tell KVINDRARunSheetGUI to update the runlist. More...
 
void UpdateSystemProperties ()
 Update displayed system properties, e.g. when a new system is selected in fComboBox1476. More...
 
void UpdateTargetLayerProperties (Int_t)
 
void UpdateTargetProperties ()
 

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.

◆ 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.

◆ 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.

◆ 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.