Geant4 Example Application with Rich features and Small footprints
Public Member Functions | List of all members
RunManager Class Reference

Place to put all building blocks together. More...

Inheritance diagram for RunManager:

Public Member Functions

 RunManager ()
 ~RunManager ()
void SetNewValue (G4UIcommand *cmd, G4String value)
 for UI More...
void InitializePhysics ()
 set physics list if it is not specified explicitly More...

Detailed Description

Place to put all building blocks together.

Definition at line 614 of file

Constructor & Destructor Documentation

§ RunManager()

RunManager::RunManager ( )

Definition at line 620 of file

620  : G4RunManager(), G4UImessenger(), fFactory(0) {
621  SetUserInitialization(new Detector); // needed for /run/initialize
622  fCmdPhys = new G4UIcmdWithAString("/physics_lists/select",this);
623  fCmdPhys->SetGuidance("Select a physics list");
624  fCmdPhys->SetGuidance("Candidates are specified in");
625  fCmdPhys->SetParameterName("name of a physics list", false);
626  fCmdPhys->AvailableForStates(G4State_PreInit);
627  }
Construct detector geometry.

§ ~RunManager()

RunManager::~RunManager ( )

Definition at line 628 of file

628 { delete fCmdPhys; delete fFactory; }

Member Function Documentation

§ InitializePhysics()

void RunManager::InitializePhysics ( )

set physics list if it is not specified explicitly

Definition at line 641 of file

§ SetNewValue()

void RunManager::SetNewValue ( G4UIcommand *  cmd,
G4String  value 

for UI

Definition at line 630 of file

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