Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4RadioactivationMessenger Class Reference

#include <G4RadioactivationMessenger.hh>

+ Inheritance diagram for G4RadioactivationMessenger:

Public Member Functions

 G4RadioactivationMessenger (G4Radioactivation *theRadioactivationContainer)
 
 ~G4RadioactivationMessenger ()
 
void SetNewValue (G4UIcommand *command, G4String newValues)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()=default
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool CommandsShouldBeInMaster () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String LtoS (G4long l)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (const G4String &s)
 
G4long StoL (const G4String &s)
 
G4double StoD (const 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 = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Detailed Description

Definition at line 53 of file G4RadioactivationMessenger.hh.

Constructor & Destructor Documentation

◆ G4RadioactivationMessenger()

G4RadioactivationMessenger::G4RadioactivationMessenger ( G4Radioactivation * theRadioactivationContainer)

Definition at line 42 of file G4RadioactivationMessenger.cc.

43 :theRadioactivationContainer(theRadioactivationContainer1)
44{
45 rdmDirectory = new G4UIdirectory("/process/had/rdm/");
46 rdmDirectory->SetGuidance("Controls the biased version of radioactive decay");
47
48 // Command to turn on/off variance reduction options
49 analoguemcCmd = new G4UIcmdWithABool("/process/had/rdm/analogueMC",this);
50 analoguemcCmd->SetGuidance("false: variance reduction method; true: analogue method");
51 analoguemcCmd->SetParameterName("AnalogueMC",true);
52 analoguemcCmd->SetDefaultValue(true);
53
54 // Command to use branching ratio biasing or not
55 brbiasCmd = new G4UIcmdWithABool("/process/had/rdm/BRbias",this);
56 brbiasCmd->SetGuidance("false: no biasing; true: all branches are treated as equal");
57 brbiasCmd->SetParameterName("BRBias",true);
58 brbiasCmd->SetDefaultValue(true);
59
60 // Command to set the half-life thresold for isomer production
61 hlthCmd = new G4UIcmdWithADoubleAndUnit("/process/had/rdm/hlThreshold",this);
62 hlthCmd->SetGuidance("Set the h-l threshold for isomer production");
63 hlthCmd->SetParameterName("hlThreshold",false);
64 hlthCmd->SetUnitCategory("Time");
65
66 // Command to define the incident particle source time profile
67 sourcetimeprofileCmd = new G4UIcmdWithAString("/process/had/rdm/sourceTimeProfile",this);
68 sourcetimeprofileCmd->SetGuidance
69 ("Supply the name of the ascii file containing the source particle time profile");
70 sourcetimeprofileCmd->SetParameterName("STimeProfile",true);
71 sourcetimeprofileCmd->SetDefaultValue("source.data");
72
73 // Command to define the incident particle source time profile
74 decaybiasprofileCmd = new G4UIcmdWithAString("/process/had/rdm/decayBiasProfile",this);
75 decaybiasprofileCmd->SetGuidance
76 ("Supply the name of the ascii file containing the decay bias time profile");
77 decaybiasprofileCmd->SetParameterName("DBiasProfile",true);
78 decaybiasprofileCmd->SetDefaultValue("bias.data");
79
80 // Command to set nuclei splitting parameter
81 splitnucleiCmd = new G4UIcmdWithAnInteger("/process/had/rdm/splitNuclei",this);
82 splitnucleiCmd->SetGuidance("Set number of splitting for the isotopes.");
83 splitnucleiCmd->SetParameterName("NSplit",true);
84 splitnucleiCmd->SetDefaultValue(1);
85 splitnucleiCmd->SetRange("NSplit>=1");
86}
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4bool defVal)
void SetUnitCategory(const char *unitCategory)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4int defVal)
void SetGuidance(const char *aGuidance)
void SetRange(const char *rs)

◆ ~G4RadioactivationMessenger()

G4RadioactivationMessenger::~G4RadioactivationMessenger ( )

Definition at line 89 of file G4RadioactivationMessenger.cc.

90{
91 delete rdmDirectory;
92 delete analoguemcCmd;
93 delete sourcetimeprofileCmd;
94 delete decaybiasprofileCmd;
95 delete brbiasCmd;
96 delete splitnucleiCmd;
97 delete hlthCmd;
98}

Member Function Documentation

◆ SetNewValue()

void G4RadioactivationMessenger::SetNewValue ( G4UIcommand * command,
G4String newValues )
virtual

Reimplemented from G4UImessenger.

Definition at line 101 of file G4RadioactivationMessenger.cc.

102{
103 if ( command == analoguemcCmd ) { theRadioactivationContainer->
104 SetAnalogueMonteCarlo( analoguemcCmd->GetNewBoolValue( newValues ) );
105 } else if ( command == brbiasCmd ) { theRadioactivationContainer->
106 SetBRBias( brbiasCmd->GetNewBoolValue( newValues ) );
107 } else if ( command == sourcetimeprofileCmd ) { theRadioactivationContainer->
108 SetSourceTimeProfile( newValues );
109 } else if ( command == decaybiasprofileCmd ) { theRadioactivationContainer->
110 SetDecayBias( newValues );
111 } else if ( command == splitnucleiCmd ) { theRadioactivationContainer->
112 SetSplitNuclei( splitnucleiCmd->GetNewIntValue( newValues ) );
113 } else if ( command == hlthCmd ) { theRadioactivationContainer->
114 SetHLThreshold( hlthCmd->GetNewDoubleValue( newValues ) );
115 }
116}
static G4bool GetNewBoolValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)

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