Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
CexmcPhysicsManagerMessenger Class Reference

#include <CexmcPhysicsManagerMessenger.hh>

Inheritance diagram for CexmcPhysicsManagerMessenger:
G4UImessenger

Public Member Functions

 CexmcPhysicsManagerMessenger (CexmcPhysicsManager *physicsManager)
 
 ~CexmcPhysicsManagerMessenger ()
 
void SetNewValue (G4UIcommand *cmd, G4String value)
 
- 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
 

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
 

Detailed Description

Definition at line 54 of file CexmcPhysicsManagerMessenger.hh.

Constructor & Destructor Documentation

CexmcPhysicsManagerMessenger::CexmcPhysicsManagerMessenger ( CexmcPhysicsManager physicsManager)
explicit

Definition at line 50 of file CexmcPhysicsManagerMessenger.cc.

References G4UIcommand::AvailableForStates(), G4State_Idle, G4State_PreInit, CexmcMessenger::physicsDirName, G4UIcmdWithADoubleAndUnit::SetDefaultUnit(), G4UIcommand::SetGuidance(), G4UIcmdWithADoubleAndUnit::SetParameterName(), and G4UIcmdWithADoubleAndUnit::SetUnitCandidates().

51  :
52  physicsManager( physicsManager ), setMaxILCorrection( NULL )
53 {
54  setMaxILCorrection = new G4UIcmdWithADoubleAndUnit(
55  ( CexmcMessenger::physicsDirName + "setMaxILCorrection" ).c_str(),
56  this );
57  setMaxILCorrection->SetGuidance( "Correction of maximum interaction "
58  "length in the\n target; can be used for precise tuning of the "
59  "center of\n distribution of interaction vertices in the target" );
60  setMaxILCorrection->SetParameterName( "MaxILCorrection", false );
61  setMaxILCorrection->SetUnitCandidates( "mm cm m" );
62  setMaxILCorrection->SetDefaultUnit( "mm" );
63  setMaxILCorrection->AvailableForStates( G4State_PreInit, G4State_Idle );
64 }
static G4String physicsDirName
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:225
void SetDefaultUnit(const char *defUnit)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetUnitCandidates(const char *candidateList)
CexmcPhysicsManagerMessenger::~CexmcPhysicsManagerMessenger ( )

Definition at line 67 of file CexmcPhysicsManagerMessenger.cc.

68 {
69  delete setMaxILCorrection;
70 }

Member Function Documentation

void CexmcPhysicsManagerMessenger::SetNewValue ( G4UIcommand cmd,
G4String  value 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 73 of file CexmcPhysicsManagerMessenger.cc.

References G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(), and CexmcPhysicsManager::SetMaxILCorrection().

75 {
76  do
77  {
78  if ( cmd == setMaxILCorrection )
79  {
80  physicsManager->SetMaxILCorrection(
82  break;
83  }
84  } while ( false );
85 }
static G4double GetNewDoubleValue(const char *paramString)
void SetMaxILCorrection(G4double value)

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