Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4NuclideTableMessenger Class Reference

#include <G4NuclideTableMessenger.hh>

Inheritance diagram for G4NuclideTableMessenger:
Collaboration diagram for G4NuclideTableMessenger:

Public Member Functions

 G4NuclideTableMessenger (G4NuclideTable *nuclideTable=0)
 
virtual ~G4NuclideTableMessenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValues)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 57 of file G4NuclideTableMessenger.hh.

Constructor & Destructor Documentation

G4NuclideTableMessenger::G4NuclideTableMessenger ( G4NuclideTable nuclideTable = 0)

particle/manage/nuclide/min_halflife

particle/manage/nuclide/level_tolerance

Definition at line 50 of file G4NuclideTableMessenger.cc.

51  :theNuclideTable(nuclideTable)
52 {
53  //Commnad /particle/manage/nuclide
54  thisDirectory = new G4UIdirectory("/particle/manage/nuclideTable/");
55  thisDirectory->SetGuidance("Nuclide table control commands.");
56 
58  lifetimeCmd = new G4UIcmdWithADoubleAndUnit("/particle/manage/nuclideTable/min_halflife",this);
59  lifetimeCmd->SetGuidance("Set threshold of half-life.");
60  lifetimeCmd->SetGuidance("Unit of the time can be :");
61  lifetimeCmd->SetGuidance(" s, ms, ns (default)");
62  lifetimeCmd->SetParameterName("life",false);
63  lifetimeCmd->SetDefaultValue( 1000.0 );
64  lifetimeCmd->SetRange("life >0.0");
65  //lifetimeCmd->SetUnitCategory("Time");
66  //lifetimeCmd->SetUnitCandidates("s ms ns");
67  lifetimeCmd->SetDefaultUnit("ns");
69 
71  lToleranceCmd = new G4UIcmdWithADoubleAndUnit("/particle/manage/nuclideTable/level_tolerance",this);
72  lToleranceCmd->SetGuidance("Set tolerance in level seaching.");
73  lToleranceCmd->SetGuidance("Unit of the energy can be :");
74  lToleranceCmd->SetGuidance(" MeV, keV, eV (default)");
75  lToleranceCmd->SetParameterName("lTolerance",false);
76  lToleranceCmd->SetDefaultValue( 1.0 );
77  lToleranceCmd->SetRange("lTolerance >0.0");
78  lToleranceCmd->SetDefaultUnit("eV");
80 
81  //Commnad /particle/manage/nuclide/dump
82  //dumpCmd = new G4UIcmdWithoutParameter("/particle/manage/nuclide/dump",this);
83  //dumpCmd->SetGuidance("dump nuclide table.");
84 
85 }
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:240
void SetDefaultUnit(const char *defUnit)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)

Here is the call graph for this function:

G4NuclideTableMessenger::~G4NuclideTableMessenger ( )
virtual

Definition at line 87 of file G4NuclideTableMessenger.cc.

88 {
89 // if (fDecayTableMessenger !=0) delete fDecayTableMessenger;
90 // fDecayTableMessenger = 0;
91 
92  delete thisDirectory;
93  delete lifetimeCmd;
94  delete lToleranceCmd;
95 }

Member Function Documentation

void G4NuclideTableMessenger::SetNewValue ( G4UIcommand command,
G4String  newValues 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 97 of file G4NuclideTableMessenger.cc.

98 {
99  if (command == lifetimeCmd ) {
100  //Commnad /particle/manage/nuclideTable/min_halflife
101  theNuclideTable->SetThresholdOfHalfLife(lifetimeCmd->GetNewDoubleValue(newValue));
102  } else if (command == lToleranceCmd ) {
103  //Commnad /particle/manage/nuclideTable/level_tolerance
104  theNuclideTable->SetLevelTolerance(lToleranceCmd->GetNewDoubleValue(newValue));
105  }
106 }
void SetThresholdOfHalfLife(G4double)
static G4double GetNewDoubleValue(const char *paramString)
void SetLevelTolerance(G4double x)

Here is the call graph for this function:


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