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

#include <G4UCNBoundaryProcessMessenger.hh>

+ Inheritance diagram for G4UCNBoundaryProcessMessenger:

Public Member Functions

 G4UCNBoundaryProcessMessenger (G4UCNBoundaryProcess *)
 
virtual ~G4UCNBoundaryProcessMessenger ()
 
void SetNewValue (G4UIcommand *, G4String)
 
- 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 62 of file G4UCNBoundaryProcessMessenger.hh.

Constructor & Destructor Documentation

◆ G4UCNBoundaryProcessMessenger()

G4UCNBoundaryProcessMessenger::G4UCNBoundaryProcessMessenger ( G4UCNBoundaryProcess * process)

Definition at line 52 of file G4UCNBoundaryProcessMessenger.cc.

54 : theUCNBoundaryProcess (process)
55{
56 //G4cout << "Create messenger for the UCN boundary process " << G4endl;
57
58 boundaryDir = new G4UIdirectory("/ucnboundary/");
59 boundaryDir->SetGuidance("savetofile parameters");
60
61 VerboseCmd = new G4UIcmdWithAnInteger("/ucnboundary/verbose",this);
62 VerboseCmd->SetGuidance("Set verbose level" );
63 VerboseCmd->SetParameterName("level",true);
64 VerboseCmd->SetDefaultValue(1);
66
67 MicroRoughnessCmd =
68 new G4UIcmdWithABool("/ucnboundary/MicroRoughness",this);
69 MicroRoughnessCmd->
70 SetGuidance("Decide if MicroRoughness Model is activated");
71 MicroRoughnessCmd->SetParameterName("MicroRough",false);
72 MicroRoughnessCmd->SetDefaultValue(true);
74}
@ G4State_Idle
@ G4State_PreInit
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4int defVal)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)

◆ ~G4UCNBoundaryProcessMessenger()

G4UCNBoundaryProcessMessenger::~G4UCNBoundaryProcessMessenger ( )
virtual

Definition at line 78 of file G4UCNBoundaryProcessMessenger.cc.

79{
80 if (VerboseCmd) delete VerboseCmd;
81 if (MicroRoughnessCmd) delete MicroRoughnessCmd;
82}

Member Function Documentation

◆ SetNewValue()

void G4UCNBoundaryProcessMessenger::SetNewValue ( G4UIcommand * command,
G4String newValue )
virtual

Reimplemented from G4UImessenger.

Definition at line 86 of file G4UCNBoundaryProcessMessenger.cc.

88{
89 if( command == VerboseCmd ) theUCNBoundaryProcess->
90 SetVerboseLevel(VerboseCmd->GetNewIntValue(newValue));
91 if( command == MicroRoughnessCmd ) theUCNBoundaryProcess->
92 SetMicroRoughness(MicroRoughnessCmd->GetNewBoolValue(newValue));
93}
static G4bool GetNewBoolValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)

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