KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
KVDBSystemDialog Class Reference

Dialog box for setting system parameters associated to runs.

Definition at line 35 of file 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 ()
 

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

#include <KVDBSystemDialog.h>

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 114 of file KVDBSystemDialog.cpp.

◆ ~KVDBSystemDialog()

KVDBSystemDialog::~KVDBSystemDialog ( )
virtual

Destructor.

Definition at line 142 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 657 of file KVDBSystemDialog.cpp.

◆ CloseWindow()

void KVDBSystemDialog::CloseWindow ( )

Definition at line 166 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 801 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 208 of file KVDBSystemDialog.cpp.

◆ DeleteSystem()

void KVDBSystemDialog::DeleteSystem ( )

Delete the currently selected system.

Definition at line 178 of file KVDBSystemDialog.cpp.

◆ DoClose()

void KVDBSystemDialog::DoClose ( )

Definition at line 156 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 410 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 344 of file KVDBSystemDialog.cpp.

◆ IsProjectileDefined()

Bool_t KVDBSystemDialog::IsProjectileDefined ( )
inline

Definition at line 128 of file KVDBSystemDialog.h.

◆ IsTargetDefined()

Bool_t KVDBSystemDialog::IsTargetDefined ( )
inline

Definition at line 132 of file KVDBSystemDialog.h.

◆ NeedSave()

Bool_t KVDBSystemDialog::NeedSave ( ) const
inlineprivate

Definition at line 79 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 578 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 594 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 526 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 555 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 695 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 281 of file KVDBSystemDialog.cpp.

◆ SelectSystem()

void KVDBSystemDialog::SelectSystem ( Int_t  index)

Called when a new system is selected in fComboBox1476.

Definition at line 376 of file KVDBSystemDialog.cpp.

◆ SetNeedSave()

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

Definition at line 74 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 739 of file KVDBSystemDialog.cpp.

◆ TargetAngleChanged()

void KVDBSystemDialog::TargetAngleChanged ( Long_t  )

Called when target angle is changed.

Definition at line 639 of file KVDBSystemDialog.cpp.

◆ TargetLayerAChanged()

void KVDBSystemDialog::TargetLayerAChanged ( Long_t  )

Called when target layer A is changed.

Definition at line 625 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 610 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 302 of file KVDBSystemDialog.cpp.

◆ UpdateProjectileProperties()

void KVDBSystemDialog::UpdateProjectileProperties ( )

Update displayed projectile properties Called by UpdateSystemProperties().

Definition at line 425 of file KVDBSystemDialog.cpp.

◆ UpdateRunlist()

void KVDBSystemDialog::UpdateRunlist ( )
inline

Signal emitted to tell KVINDRARunSheetGUI to update the runlist.

Definition at line 123 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 398 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 497 of file KVDBSystemDialog.cpp.

◆ UpdateTargetProperties()

void KVDBSystemDialog::UpdateTargetProperties ( )

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

Definition at line 462 of file KVDBSystemDialog.cpp.

Member Data Documentation

◆ fCheckButton1376

TGCheckButton* KVDBSystemDialog::fCheckButton1376
private

check button to define projectile

Definition at line 43 of file KVDBSystemDialog.h.

◆ fComboBox1476

TGComboBox* KVDBSystemDialog::fComboBox1476
private

combo box displaying list of systems for current dataset

Definition at line 41 of file KVDBSystemDialog.h.

◆ fComboBox1515

TGComboBox* KVDBSystemDialog::fComboBox1515
private

layers in current target

Definition at line 50 of file KVDBSystemDialog.h.

◆ fComboBox1542

TGComboBox* KVDBSystemDialog::fComboBox1542
private

list of materials for creating target layers

Definition at line 54 of file KVDBSystemDialog.h.

◆ fCreateSystem

TGTextButton* KVDBSystemDialog::fCreateSystem
private

button to create new system

Definition at line 57 of file KVDBSystemDialog.h.

◆ fCurrentSystemsFile

KVString KVDBSystemDialog::fCurrentSystemsFile
private

name (including timestamp) of currently used Systems.dat

Definition at line 68 of file KVDBSystemDialog.h.

◆ fLabel1530

TGLabel* KVDBSystemDialog::fLabel1530
private

units for thickness

Definition at line 52 of file KVDBSystemDialog.h.

◆ fLayer

KVMaterial* KVDBSystemDialog::fLayer
private

current target layer

Definition at line 62 of file KVDBSystemDialog.h.

◆ fMainFrame1475

TGTransientFrame* KVDBSystemDialog::fMainFrame1475
private

the main window

Definition at line 39 of file KVDBSystemDialog.h.

◆ fMaterialsList

unique_ptr<TObjArray> KVDBSystemDialog::fMaterialsList
private

list of all available materials

Definition at line 65 of file KVDBSystemDialog.h.

◆ fNeedSave

Bool_t KVDBSystemDialog::fNeedSave
private

Definition at line 73 of file KVDBSystemDialog.h.

◆ fNumberEntry1493

TGNumberEntry* KVDBSystemDialog::fNumberEntry1493
private

Z of projectile.

Definition at line 45 of file KVDBSystemDialog.h.

◆ fNumberEntry1499

TGNumberEntry* KVDBSystemDialog::fNumberEntry1499
private

A of projectile.

Definition at line 46 of file KVDBSystemDialog.h.

◆ fNumberEntry1509

TGNumberEntry* KVDBSystemDialog::fNumberEntry1509
private

E/A of projectile.

Definition at line 47 of file KVDBSystemDialog.h.

◆ fNumberEntry1526

TGNumberEntry* KVDBSystemDialog::fNumberEntry1526
private

thickness of current layer

Definition at line 51 of file KVDBSystemDialog.h.

◆ fNumberEntry1532

TGNumberEntry* KVDBSystemDialog::fNumberEntry1532
private

target angle to beam

Definition at line 49 of file KVDBSystemDialog.h.

◆ fNumberEntry1537

TGNumberEntry* KVDBSystemDialog::fNumberEntry1537
private

atomic mass of current layer

Definition at line 53 of file KVDBSystemDialog.h.

◆ fRuns

KVNumberList KVDBSystemDialog::fRuns
private

runs selected by user

Definition at line 63 of file KVDBSystemDialog.h.

◆ fSaveButton

TGTextButton* KVDBSystemDialog::fSaveButton
private

save changes

Definition at line 58 of file KVDBSystemDialog.h.

◆ fSetRuns

TGTextButton* KVDBSystemDialog::fSetRuns
private

associate runs with selected system

Definition at line 59 of file KVDBSystemDialog.h.

◆ fSystem

KVDBSystem* KVDBSystemDialog::fSystem
private

currently selected system in combo box fComboBox1476

Definition at line 60 of file KVDBSystemDialog.h.

◆ fTarget

KVTarget* KVDBSystemDialog::fTarget
private

current target

Definition at line 61 of file KVDBSystemDialog.h.

◆ fTextButton1553

TGTextButton* KVDBSystemDialog::fTextButton1553
private

add new layer to target

Definition at line 55 of file KVDBSystemDialog.h.

◆ fTextButton1554

TGTextButton* KVDBSystemDialog::fTextButton1554
private

remove current layer from target

Definition at line 56 of file KVDBSystemDialog.h.

◆ fTextEntry1490

TGTextEntry* KVDBSystemDialog::fTextEntry1490
private

symbol of projectile

Definition at line 44 of file KVDBSystemDialog.h.

◆ fUndo

KVDatedFileManager* KVDBSystemDialog::fUndo
private

allows to undo changes to Systems.dat

Definition at line 67 of file KVDBSystemDialog.h.


The documentation for this class was generated from the following files: