Geant4  10.02.p03
G4UCNBoundaryProcessMessenger Class Reference

#include <G4UCNBoundaryProcessMessenger.hh>

Inheritance diagram for G4UCNBoundaryProcessMessenger:
Collaboration diagram for G4UCNBoundaryProcessMessenger:

Public Member Functions

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

Private Attributes

G4UCNBoundaryProcesstheUCNBoundaryProcess
 
G4UIdirectoryboundaryDir
 
G4UIcmdWithAnIntegerVerboseCmd
 
G4UIcmdWithABoolMicroRoughnessCmd
 

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 63 of file G4UCNBoundaryProcessMessenger.hh.

Constructor & Destructor Documentation

◆ G4UCNBoundaryProcessMessenger()

G4UCNBoundaryProcessMessenger::G4UCNBoundaryProcessMessenger ( G4UCNBoundaryProcess process)

Definition at line 54 of file G4UCNBoundaryProcessMessenger.cc.

55  : theUCNBoundaryProcess (process)
56 {
57  //G4cout << "Create messenger for the UCN boundary process " << G4endl;
58 
59  boundaryDir = new G4UIdirectory("/ucnboundary/");
60  boundaryDir->SetGuidance("savetofile parameters");
61 
62  VerboseCmd = new G4UIcmdWithAnInteger("/ucnboundary/verbose",this);
63  VerboseCmd->SetGuidance("Set verbose level" );
64  VerboseCmd->SetParameterName("level",true);
67 
69  new G4UIcmdWithABool("/ucnboundary/MicroRoughness",this);
71  SetGuidance("Decide if MicroRoughness Model is activated");
72  MicroRoughnessCmd->SetParameterName("MicroRough",false);
75 }
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 SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
void SetDefaultValue(G4int defVal)
Here is the call graph for this function:

◆ ~G4UCNBoundaryProcessMessenger()

G4UCNBoundaryProcessMessenger::~G4UCNBoundaryProcessMessenger ( )
virtual

Definition at line 79 of file G4UCNBoundaryProcessMessenger.cc.

80 {
81  if (VerboseCmd) delete VerboseCmd;
83 }

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 87 of file G4UCNBoundaryProcessMessenger.cc.

89 {
90  if( command == VerboseCmd ) theUCNBoundaryProcess->
91  SetVerboseLevel(VerboseCmd->GetNewIntValue(newValue));
92  if( command == MicroRoughnessCmd ) theUCNBoundaryProcess->
93  SetMicroRoughness(MicroRoughnessCmd->GetNewBoolValue(newValue));
94 }
static G4int GetNewIntValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
Here is the call graph for this function:

Member Data Documentation

◆ boundaryDir

G4UIdirectory* G4UCNBoundaryProcessMessenger::boundaryDir
private

Definition at line 76 of file G4UCNBoundaryProcessMessenger.hh.

◆ MicroRoughnessCmd

G4UIcmdWithABool* G4UCNBoundaryProcessMessenger::MicroRoughnessCmd
private

Definition at line 79 of file G4UCNBoundaryProcessMessenger.hh.

◆ theUCNBoundaryProcess

G4UCNBoundaryProcess* G4UCNBoundaryProcessMessenger::theUCNBoundaryProcess
private

Definition at line 74 of file G4UCNBoundaryProcessMessenger.hh.

◆ VerboseCmd

G4UIcmdWithAnInteger* G4UCNBoundaryProcessMessenger::VerboseCmd
private

Definition at line 78 of file G4UCNBoundaryProcessMessenger.hh.


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