Geant4 11.4.0
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 (const 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);
65 VerboseCmd->AvailableForStates(G4State_Idle,G4State_PreInit);
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);
73 MicroRoughnessCmd->AvailableForStates(G4State_Idle,G4State_PreInit);
74}
@ G4State_Idle
@ G4State_PreInit

◆ ~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}

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