Geant4  10.00.p03
G4UImanager Class Reference

#include <G4UImanager.hh>

+ Inheritance diagram for G4UImanager:
+ Collaboration diagram for G4UImanager:

Public Member Functions

 ~G4UImanager ()
 
G4String GetCurrentValues (const char *aCommand)
 
void AddNewCommand (G4UIcommand *newCommand)
 
void RemoveCommand (G4UIcommand *aCommand)
 
void ExecuteMacroFile (const char *fileName)
 
void Loop (const char *macroFile, const char *variableName, G4double initialValue, G4double finalValue, G4double stepSize=1.0)
 
void Foreach (const char *macroFile, const char *variableName, const char *candidates)
 
G4int ApplyCommand (const char *aCommand)
 
G4int ApplyCommand (const G4String &aCommand)
 
void StoreHistory (const char *fileName="G4history.macro")
 
void StoreHistory (G4bool historySwitch, const char *fileName="G4history.macro")
 
void ListCommands (const char *direc)
 
void SetAlias (const char *aliasLine)
 
void RemoveAlias (const char *aliasName)
 
void ListAlias ()
 
G4String SolveAlias (const char *aCmd)
 
void CreateHTML (const char *dir="/")
 
void LoopS (const char *valueList)
 
void ForeachS (const char *valueList)
 
virtual G4bool Notify (G4ApplicationState requestedState)
 
G4String GetCurrentStringValue (const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
 
G4int GetCurrentIntValue (const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
 
G4double GetCurrentDoubleValue (const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
 
G4String GetCurrentStringValue (const char *aCommand, const char *aParameterName, G4bool reGet=true)
 
G4int GetCurrentIntValue (const char *aCommand, const char *aParameterName, G4bool reGet=true)
 
G4double GetCurrentDoubleValue (const char *aCommand, const char *aParameterName, G4bool reGet=true)
 
void SetPauseAtBeginOfEvent (G4bool vl)
 
G4bool GetPauseAtBeginOfEvent () const
 
void SetPauseAtEndOfEvent (G4bool vl)
 
G4bool GetPauseAtEndOfEvent () const
 
G4UIcommandTreeGetTree () const
 
G4UIsessionGetSession () const
 
G4UIsessionGetG4UIWindow () const
 
void SetSession (G4UIsession *const value)
 
void SetG4UIWindow (G4UIsession *const value)
 
void SetCoutDestination (G4UIsession *const value)
 
void SetVerboseLevel (G4int val)
 
G4int GetVerboseLevel () const
 
G4int GetNumberOfHistory () const
 
G4String GetPreviousCommand (G4int i) const
 
void SetMaxHistSize (G4int mx)
 
G4int GetMaxHistSize () const
 
void SetMacroSearchPath (const G4String &path)
 
const G4StringGetMacroSearchPath () const
 
void ParseMacroSearchPath ()
 
G4String FindMacroPath (const G4String &fname) const
 
void SetMasterUIManager (G4bool val)
 
void SetIgnoreCmdNotFound (G4bool val)
 
std::vector< G4String > * GetCommandStack ()
 
void RegisterBridge (G4UIbridge *brg)
 
void SetUpForAThread (G4int tId)
 
void SetCoutFileName (const G4String &fileN="G4cout.txt", G4bool ifAppend=true)
 
void SetCerrFileName (const G4String &fileN="G4cerr.txt", G4bool ifAppend=true)
 
void SetThreadPrefixString (const G4String &s="W")
 
void SetThreadUseBuffer (G4bool flg=true)
 
void SetThreadIgnore (G4int tid=0)
 
- Public Member Functions inherited from G4VStateDependent
 G4VStateDependent (G4bool bottom=false)
 
virtual ~G4VStateDependent ()
 
G4int operator== (const G4VStateDependent &right) const
 
G4int operator!= (const G4VStateDependent &right) const
 

Static Public Member Functions

static G4UImanagerGetUIpointer ()
 
static G4UImanagerGetMasterUIpointer ()
 

Protected Member Functions

 G4UImanager ()
 

Private Member Functions

 G4UImanager (const G4UImanager &right)
 
const G4UImanageroperator= (const G4UImanager &right)
 
G4int operator== (const G4UImanager &right) const
 
G4int operator!= (const G4UImanager &right) const
 
void AddWorkerCommand (G4UIcommand *newCommand)
 
void RemoveWorkerCommand (G4UIcommand *aCommand)
 
void PauseSession (const char *msg)
 
void CreateMessenger ()
 
G4UIcommandTreeFindDirectory (const char *dirName)
 

Private Attributes

G4UIcommandTreetreeTop
 
G4UIsessionsession
 
G4UIsessiong4UIWindow
 
G4UIcontrolMessengerUImessenger
 
G4UnitsMessengerUnitsMessenger
 
G4LocalThreadCoutMessengerCoutMessenger
 
G4String savedParameters
 
G4UIcommandsavedCommand
 
G4int verboseLevel
 
std::ofstream historyFile
 
G4bool saveHistory
 
std::vector< G4StringhistVec
 
G4UIaliasListaliasList
 
G4int maxHistSize
 
G4bool pauseAtBeginOfEvent
 
G4bool pauseAtEndOfEvent
 
G4String searchPath
 
std::vector< G4StringsearchDirs
 
G4bool isMaster
 
std::vector< G4UIbridge * > * bridges
 
G4bool ignoreCmdNotFound
 
G4bool stackCommandsForBroadcast
 
std::vector< G4String > * commandStack
 
G4int threadID
 
G4MTcoutDestinationthreadCout
 

Static Private Attributes

static G4ThreadLocal G4UImanagerfUImanager = 0
 
static G4ThreadLocal G4bool fUImanagerHasBeenKilled = false
 
static G4UImanagerfMasterUImanager = 0
 
static G4int igThreadID = -1
 

Detailed Description

Definition at line 56 of file G4UImanager.hh.

Constructor & Destructor Documentation

G4UImanager::G4UImanager ( )
protected

Definition at line 74 of file G4UImanager.cc.

References aliasList, commandStack, g4UIWindow, maxHistSize, pauseAtBeginOfEvent, pauseAtEndOfEvent, savedCommand, savedParameters, saveHistory, searchPath, session, SetCoutDestination(), treeTop, and verboseLevel.

Referenced by GetUIpointer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UImanager::~G4UImanager ( )

Definition at line 105 of file G4UImanager.cc.

References aliasList, bridges, commandStack, CoutMessenger, fUImanager, fUImanagerHasBeenKilled, G4iosFinalization(), historyFile, histVec, saveHistory, SetCoutDestination(), threadCout, threadID, treeTop, UImessenger, and UnitsMessenger.

+ Here is the call graph for this function:

G4UImanager::G4UImanager ( const G4UImanager right)
private

Definition at line 137 of file G4UImanager.cc.

References aliasList, g4UIWindow, savedCommand, session, treeTop, UImessenger, and UnitsMessenger.

Member Function Documentation

void G4UImanager::AddNewCommand ( G4UIcommand newCommand)

Definition at line 254 of file G4UImanager.cc.

References G4UIcommandTree::AddNewCommand(), AddWorkerCommand(), fMasterUImanager, G4Threading::G4GetThreadId(), and treeTop.

Referenced by G4UIcommand::G4UIcommandCommonConstructorCode().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::AddWorkerCommand ( G4UIcommand newCommand)
private

Definition at line 261 of file G4UImanager.cc.

References G4UIcommandTree::AddNewCommand(), and treeTop.

Referenced by AddNewCommand().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4UImanager::ApplyCommand ( const char *  aCommand)

Definition at line 432 of file G4UImanager.cc.

References a1, a2, bridges, commandStack, G4UIcommand::DoIt(), fAliasNotFound, fCommandNotFound, fCommandSucceeded, fIllegalApplicationState, G4UIcommandTree::FindPath(), G4cout, G4endl, historyFile, histVec, ignoreCmdNotFound, G4String::index(), G4UIcommand::IsAvailable(), isMaster, G4String::isNull(), maxHistSize, G4String::remove(), saveHistory, SolveAlias(), stackCommandsForBroadcast, G4UIcommand::ToBeBroadcasted(), treeTop, and verboseLevel.

Referenced by G4UIbridge::ApplyCommand(), ApplyCommand(), CCalRunAction::BeginOfRunAction(), ExGflashRunAction::BeginOfRunAction(), exrdmRunAction::BeginOfRunAction(), FCALRunAction::BeginOfRunAction(), F01RunAction::BeginOfRunAction(), F02RunAction::BeginOfRunAction(), F03RunAction::BeginOfRunAction(), ExG4RunAction01::BeginOfRunAction(), Em10RunAction::BeginOfRunAction(), GammaRayTelRunAction::BeginOfRunAction(), XrayFluoRunAction::BeginOfRunAction(), XrayTelRunAction::BeginOfRunAction(), G4RunManagerKernel::BuildPhysicsTables(), exrdmDetectorConstruction::Construct(), G4TheMTRayTracer::CreateBitMap(), CML2AcceleratorConstruction::design(), CexmcRunManager::DoCommonEventLoop(), DMXEventAction::drawTracks(), CCalRunAction::EndOfRunAction(), ExGflashRunAction::EndOfRunAction(), exrdmRunAction::EndOfRunAction(), FCALRunAction::EndOfRunAction(), F01RunAction::EndOfRunAction(), F02RunAction::EndOfRunAction(), F03RunAction::EndOfRunAction(), G03RunAction::EndOfRunAction(), ExG4RunAction01::EndOfRunAction(), Em10RunAction::EndOfRunAction(), G02RunAction::EndOfRunAction(), XrayFluoRunAction::EndOfRunAction(), XrayTelRunAction::EndOfRunAction(), tbbTask::execute(), G4UIGAG::ExecuteCommand(), G4VBasicShell::ExecuteCommand(), G4UIGainServer::ExecuteCommand(), G4RunManager::GeometryHasBeenModified(), Initialize(), G4VisManager::IsValidView(), main(), G4WorkerRunManager::ProcessOneEvent(), G4RunManager::ProcessOneEvent(), G4VVisCommandViewer::RefreshIfRequired(), G4RunManager::ReinitializeGeometry(), G4RunManager::rndmSaveThisEvent(), G4RunManager::rndmSaveThisRun(), XrayFluoSimulation::RunSimulation(), WLSSteppingAction::saveRandomStatus(), G4VVisCommandGeometrySet::Set(), LXeDetectorConstruction::SetDefaults(), G4VisCommandDrawTree::SetNewValue(), PerspectiveVisActionMessenger::SetNewValue(), G4VisCommandDrawView::SetNewValue(), G4VisCommandDrawVolume::SetNewValue(), G4TrackingMessenger::SetNewValue(), CML2AcceleratorConstructionMessenger::SetNewValue(), CML2PhantomConstructionMessenger::SetNewValue(), G4VisCommandGeometryRestore::SetNewValue(), G4ProcessTableMessenger::SetNewValue(), G4VisCommandOpen::SetNewValue(), G4UIcontrolMessenger::SetNewValue(), G4EmManagerMessenger::SetNewValue(), G4ProcessManagerMessenger::SetNewValue(), G4VisCommandList::SetNewValue(), G4EnergyLossMessenger::SetNewValue(), G4VisCommandSpecify::SetNewValue(), G4VisCommandReviewKeptEvents::SetNewValue(), G4VisCommandViewerClone::SetNewValue(), G4VisCommandViewerCreate::SetNewValue(), G4VisCommandViewerFlush::SetNewValue(), G4VisCommandSceneAddTrajectories::SetNewValue(), G4VisCommandGeometrySetVisibility::SetNewValueOnLV(), SignalHandler(), G4MTRunManagerKernel::StartThread(), G4TheRayTracer::Trace(), and G4TheMTRayTracer::Trace().

+ Here is the call graph for this function:

G4int G4UImanager::ApplyCommand ( const G4String aCommand)

Definition at line 425 of file G4UImanager.cc.

References ApplyCommand(), and G4String::data().

+ Here is the call graph for this function:

void G4UImanager::CreateHTML ( const char *  dir = "/")

Definition at line 641 of file G4UImanager.cc.

References G4UIcommandTree::CreateHTML(), FindDirectory(), G4cerr, and G4endl.

Referenced by export_G4UImanager(), and G4UIcontrolMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::CreateMessenger ( )
private

Definition at line 98 of file G4UImanager.cc.

References CoutMessenger, UImessenger, and UnitsMessenger.

Referenced by GetUIpointer().

+ Here is the caller graph for this function:

void G4UImanager::ExecuteMacroFile ( const char *  fileName)

Definition at line 278 of file G4UImanager.cc.

References session, and G4UIsession::SessionStart().

Referenced by export_G4UImanager(), Foreach(), and G4UIcontrolMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UIcommandTree * G4UImanager::FindDirectory ( const char *  dirName)
private

Definition at line 546 of file G4UImanager.cc.

References G4String::both, G4UIcommandTree::GetTree(), G4String::index(), G4String::strip(), and treeTop.

Referenced by CreateHTML(), and ListCommands().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4UImanager::FindMacroPath ( const G4String fname) const

Definition at line 680 of file G4UImanager.cc.

References FileFound(), and searchDirs.

+ Here is the call graph for this function:

void G4UImanager::Foreach ( const char *  macroFile,
const char *  variableName,
const char *  candidates 
)

Definition at line 360 of file G4UImanager.cc.

References cd, ExecuteMacroFile(), and SetAlias().

Referenced by ForeachS(), and Loop().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::ForeachS ( const char *  valueList)

Definition at line 331 of file G4UImanager.cc.

References c1, and Foreach().

Referenced by G4UIcontrolMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< G4String > * G4UImanager::GetCommandStack ( )

Definition at line 695 of file G4UImanager.cc.

References commandStack.

Referenced by G4MTRunManager::PrepareCommandsStack().

+ Here is the caller graph for this function:

G4double G4UImanager::GetCurrentDoubleValue ( const char *  aCommand,
G4int  parameterNumber = 1,
G4bool  reGet = true 
)

Definition at line 242 of file G4UImanager.cc.

References GetCurrentStringValue().

+ Here is the call graph for this function:

G4double G4UImanager::GetCurrentDoubleValue ( const char *  aCommand,
const char *  aParameterName,
G4bool  reGet = true 
)

Definition at line 230 of file G4UImanager.cc.

References GetCurrentStringValue().

+ Here is the call graph for this function:

G4int G4UImanager::GetCurrentIntValue ( const char *  aCommand,
G4int  parameterNumber = 1,
G4bool  reGet = true 
)

Definition at line 218 of file G4UImanager.cc.

References GetCurrentStringValue().

Referenced by G4TheRayTracer::Trace(), and G4TheMTRayTracer::Trace().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4UImanager::GetCurrentIntValue ( const char *  aCommand,
const char *  aParameterName,
G4bool  reGet = true 
)

Definition at line 206 of file G4UImanager.cc.

References GetCurrentStringValue().

+ Here is the call graph for this function:

G4String G4UImanager::GetCurrentStringValue ( const char *  aCommand,
G4int  parameterNumber = 1,
G4bool  reGet = true 
)

Definition at line 168 of file G4UImanager.cc.

References G4String::append(), GetCurrentValues(), G4String::isNull(), savedCommand, and savedParameters.

Referenced by GetCurrentDoubleValue(), GetCurrentIntValue(), GetCurrentStringValue(), G4DecayTableMessenger::SetCurrentParticle(), G4ParticlePropertyMessenger::SetCurrentParticle(), and G4ProcessManagerMessenger::SetCurrentParticle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4UImanager::GetCurrentStringValue ( const char *  aCommand,
const char *  aParameterName,
G4bool  reGet = true 
)

Definition at line 190 of file G4UImanager.cc.

References GetCurrentStringValue(), GetCurrentValues(), G4UIcommand::GetParameter(), G4UIcommand::GetParameterEntries(), G4UIparameter::GetParameterName(), and savedCommand.

+ Here is the call graph for this function:

G4String G4UImanager::GetCurrentValues ( const char *  aCommand)

Definition at line 156 of file G4UImanager.cc.

References G4UIcommandTree::FindPath(), G4cerr, G4endl, G4UIcommand::GetCurrentValue(), savedCommand, and treeTop.

Referenced by export_G4UImanager(), GetCurrentStringValue(), G4UIGAG::ShowCurrent(), G4VBasicShell::ShowCurrent(), and G4UIGainServer::ShowCurrent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UIsession* G4UImanager::GetG4UIWindow ( ) const
inline

Definition at line 210 of file G4UImanager.hh.

References g4UIWindow.

const G4String& G4UImanager::GetMacroSearchPath ( ) const
inline

Definition at line 245 of file G4UImanager.hh.

References searchPath.

Referenced by export_G4UImanager().

+ Here is the caller graph for this function:

G4UImanager * G4UImanager::GetMasterUIpointer ( )
static

Definition at line 71 of file G4UImanager.cc.

References fMasterUImanager.

Referenced by G4UIbridge::G4UIbridge().

+ Here is the caller graph for this function:

G4int G4UImanager::GetMaxHistSize ( ) const
inline

Definition at line 240 of file G4UImanager.hh.

References maxHistSize.

Referenced by G4UIcontrolMessenger::GetCurrentValue().

+ Here is the caller graph for this function:

G4int G4UImanager::GetNumberOfHistory ( ) const
inline

Definition at line 229 of file G4UImanager.hh.

Referenced by G4VBasicShell::ApplyShellCommand(), G4UIGAG::GetCommand(), and G4UIGainServer::GetCommand().

+ Here is the caller graph for this function:

G4bool G4UImanager::GetPauseAtBeginOfEvent ( ) const
inline

Definition at line 194 of file G4UImanager.hh.

References pauseAtBeginOfEvent.

Referenced by export_G4UImanager().

+ Here is the caller graph for this function:

G4bool G4UImanager::GetPauseAtEndOfEvent ( ) const
inline

Definition at line 198 of file G4UImanager.hh.

References pauseAtEndOfEvent.

Referenced by export_G4UImanager().

+ Here is the caller graph for this function:

G4String G4UImanager::GetPreviousCommand ( G4int  i) const
inline

Definition at line 231 of file G4UImanager.hh.

Referenced by G4VBasicShell::ApplyShellCommand(), G4UIGAG::GetCommand(), G4UIterminal::GetCommand(), and G4UIGainServer::GetCommand().

+ Here is the caller graph for this function:

G4UIsession* G4UImanager::GetSession ( ) const
inline

Definition at line 208 of file G4UImanager.hh.

References session.

Referenced by G4VisCommandReviewKeptEvents::SetNewValue().

+ Here is the caller graph for this function:

G4UImanager * G4UImanager::GetUIpointer ( )
static

Definition at line 58 of file G4UImanager.cc.

References CreateMessenger(), fUImanager, fUImanagerHasBeenKilled, and G4UImanager().

Referenced by G4VBasicShell::ApplyShellCommand(), G4MPImanager::BeamOn(), CCalRunAction::BeginOfRunAction(), ExGflashRunAction::BeginOfRunAction(), FCALRunAction::BeginOfRunAction(), exrdmRunAction::BeginOfRunAction(), F01RunAction::BeginOfRunAction(), F02RunAction::BeginOfRunAction(), F03RunAction::BeginOfRunAction(), ExG4RunAction01::BeginOfRunAction(), GammaRayTelRunAction::BeginOfRunAction(), Em10RunAction::BeginOfRunAction(), XrayFluoRunAction::BeginOfRunAction(), XrayTelRunAction::BeginOfRunAction(), G4RunManagerKernel::BuildPhysicsTables(), CexmcSensitiveDetectorMessenger::CexmcSensitiveDetectorMessenger(), G4VBasicShell::Complete(), exrdmDetectorConstruction::Construct(), G4TheMTRayTracer::CreateBitMap(), G4CascadeParamMessenger::CreateDirectory(), G4UImessenger::CreateDirectory(), CML2AcceleratorConstruction::design(), CexmcRunManager::DoCommonEventLoop(), G4BlineEventAction::DrawFieldLines(), DMXEventAction::drawTracks(), CCalRunAction::EndOfRunAction(), ExGflashRunAction::EndOfRunAction(), exrdmRunAction::EndOfRunAction(), FCALRunAction::EndOfRunAction(), F03RunAction::EndOfRunAction(), F01RunAction::EndOfRunAction(), F02RunAction::EndOfRunAction(), ExG4RunAction01::EndOfRunAction(), G03RunAction::EndOfRunAction(), Em10RunAction::EndOfRunAction(), G02RunAction::EndOfRunAction(), XrayFluoRunAction::EndOfRunAction(), XrayTelRunAction::EndOfRunAction(), G4VMPIsession::ExecCommand(), G4UIbatch::ExecCommand(), tbbTask::execute(), G4VBasicShell::ExecuteCommand(), G4MPImanager::ExecuteThreadCommand(), export_G4UImanager(), G4VBasicShell::FindCommand(), G4VBasicShell::FindDirectory(), G4MTRunManager::G4MTRunManager(), G4UIbatch::G4UIbatch(), G4UIcommand::G4UIcommandCommonConstructorCode(), G4UIGAG::G4UIGAG(), G4UIGainServer::G4UIGainServer(), G4UIterminal::G4UIterminal(), G4WorkerRunManager::G4WorkerRunManager(), G4RunManager::GeometryHasBeenModified(), G4VisManager::GeometryHasChanged(), G4VUIshell::GetCommandTree(), G4UIcontrolMessenger::GetCurrentValue(), Initialize(), G4VisManager::IsValidView(), main(), G4VisManager::NotifyHandlers(), G4MTRunManager::PrepareCommandsStack(), G4WorkerRunManager::ProcessOneEvent(), G4RunManager::ProcessOneEvent(), G4VVisCommandViewer::RefreshIfRequired(), G4RunManager::ReinitializeGeometry(), pyglobals::ResetG4PyCoutDestination(), G4RunManager::rndmSaveThisEvent(), G4RunManager::rndmSaveThisRun(), XrayFluoSimulation::RunSimulation(), WLSSteppingAction::saveRandomStatus(), G4MPIbatch::SessionStart(), G4UIbatch::SessionStart(), G4VVisCommandGeometrySet::Set(), G4DecayTableMessenger::SetCurrentParticle(), G4ParticlePropertyMessenger::SetCurrentParticle(), G4ProcessManagerMessenger::SetCurrentParticle(), LXeDetectorConstruction::SetDefaults(), pyglobals::SetG4PyCoutDestination(), G4VisCommandDrawTree::SetNewValue(), PerspectiveVisActionMessenger::SetNewValue(), G4MPImessenger::SetNewValue(), G4VisCommandDrawView::SetNewValue(), G4LocalThreadCoutMessenger::SetNewValue(), G4VisCommandSceneHandlerCreate::SetNewValue(), G4VisCommandDrawVolume::SetNewValue(), G4TrackingMessenger::SetNewValue(), CML2PhantomConstructionMessenger::SetNewValue(), CML2AcceleratorConstructionMessenger::SetNewValue(), G4VisCommandGeometryRestore::SetNewValue(), G4ProcessTableMessenger::SetNewValue(), G4VisCommandOpen::SetNewValue(), G4UIcontrolMessenger::SetNewValue(), G4EmManagerMessenger::SetNewValue(), G4RunMessenger::SetNewValue(), G4ProcessManagerMessenger::SetNewValue(), G4VisCommandList::SetNewValue(), G4EnergyLossMessenger::SetNewValue(), G4VisCommandSpecify::SetNewValue(), G4VisCommandReviewKeptEvents::SetNewValue(), G4VisCommandViewerClone::SetNewValue(), G4VisCommandViewerCreate::SetNewValue(), G4VisCommandViewerFlush::SetNewValue(), G4VisCommandSceneAddTrajectories::SetNewValue(), G4VisCommandGeometrySetVisibility::SetNewValueOnLV(), G4VBasicShell::ShowCurrent(), SignalHandler(), G4MTRunManagerKernel::StartThread(), G4VBasicShell::TerminalHelp(), G4TheRayTracer::Trace(), G4TheMTRayTracer::Trace(), G4VVisCommand::UpdateVisManagerScene(), G4MPIsession::~G4MPIsession(), G4RunManagerKernel::~G4RunManagerKernel(), G4UIcommand::~G4UIcommand(), G4UIGAG::~G4UIGAG(), G4UIGainServer::~G4UIGainServer(), and G4UIterminal::~G4UIterminal().

+ Here is the call graph for this function:

void G4UImanager::ListAlias ( )

Definition at line 636 of file G4UImanager.cc.

References aliasList, and G4UIaliasList::List().

Referenced by G4UIcontrolMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::ListCommands ( const char *  direc)

Definition at line 537 of file G4UImanager.cc.

References FindDirectory(), G4cout, G4endl, and G4UIcommandTree::List().

Referenced by G4UIcontrolMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::Loop ( const char *  macroFile,
const char *  variableName,
G4double  initialValue,
G4double  finalValue,
G4double  stepSize = 1.0 
)

Definition at line 307 of file G4UImanager.cc.

References cd, and Foreach().

Referenced by LoopS().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::LoopS ( const char *  valueList)

Definition at line 287 of file G4UImanager.cc.

References c1, d1, d2, d3, and Loop().

Referenced by G4UIcontrolMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4UImanager::Notify ( G4ApplicationState  requestedState)
virtual

Implements G4VStateDependent.

Definition at line 568 of file G4UImanager.cc.

References G4State_EventProc, G4State_GeomClosed, G4StateManager::GetStateManager(), pauseAtBeginOfEvent, pauseAtEndOfEvent, and PauseSession().

+ Here is the call graph for this function:

G4int G4UImanager::operator!= ( const G4UImanager right) const
private

Definition at line 153 of file G4UImanager.cc.

const G4UImanager & G4UImanager::operator= ( const G4UImanager right)
private

Definition at line 149 of file G4UImanager.cc.

References right.

G4int G4UImanager::operator== ( const G4UImanager right) const
private

Definition at line 151 of file G4UImanager.cc.

void G4UImanager::ParseMacroSearchPath ( )

Definition at line 650 of file G4UImanager.cc.

References G4String::index(), searchDirs, and searchPath.

+ Here is the call graph for this function:

void G4UImanager::PauseSession ( const char *  msg)
private

Definition at line 532 of file G4UImanager.cc.

References G4UIsession::PauseSessionStart(), and session.

Referenced by Notify().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::RegisterBridge ( G4UIbridge brg)

Definition at line 702 of file G4UImanager.cc.

References bridges, FatalException, G4Exception(), and G4UIbridge::LocalUI().

Referenced by G4UIbridge::G4UIbridge().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::RemoveAlias ( const char *  aliasName)

Definition at line 629 of file G4UImanager.cc.

References aliasList, G4String::both, G4UIaliasList::RemoveAlias(), and G4String::strip().

Referenced by G4UIcontrolMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::RemoveCommand ( G4UIcommand aCommand)

Definition at line 266 of file G4UImanager.cc.

References fMasterUImanager, G4Threading::G4GetThreadId(), G4UIcommandTree::RemoveCommand(), RemoveWorkerCommand(), and treeTop.

Referenced by G4UIcommand::~G4UIcommand().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::RemoveWorkerCommand ( G4UIcommand aCommand)
private

Definition at line 273 of file G4UImanager.cc.

References G4UIcommandTree::RemoveCommand(), and treeTop.

Referenced by RemoveCommand().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::SetAlias ( const char *  aliasLine)

Definition at line 610 of file G4UImanager.cc.

References aliasList, G4UIaliasList::ChangeAlias(), and G4String::index().

Referenced by Foreach(), and G4UIcontrolMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::SetCerrFileName ( const G4String fileN = "G4cerr.txt",
G4bool  ifAppend = true 
)

Definition at line 736 of file G4UImanager.cc.

References G4MTcoutDestination::SetCerrFileName(), threadCout, and threadID.

Referenced by G4LocalThreadCoutMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::SetCoutDestination ( G4UIsession *const  value)

Definition at line 604 of file G4UImanager.cc.

References G4cerrbuf, G4coutbuf, and G4strstreambuf::SetDestination().

Referenced by G4UIGAG::G4UIGAG(), G4UImanager(), G4UIGAG::~G4UIGAG(), G4UIGainServer::~G4UIGainServer(), and ~G4UImanager().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::SetCoutFileName ( const G4String fileN = "G4cout.txt",
G4bool  ifAppend = true 
)

Definition at line 721 of file G4UImanager.cc.

References G4MTcoutDestination::SetCoutFileName(), threadCout, and threadID.

Referenced by G4LocalThreadCoutMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::SetG4UIWindow ( G4UIsession *const  value)
inline

Definition at line 215 of file G4UImanager.hh.

void G4UImanager::SetIgnoreCmdNotFound ( G4bool  val)
inline

Definition at line 269 of file G4UImanager.hh.

Referenced by G4WorkerRunManager::G4WorkerRunManager().

+ Here is the caller graph for this function:

void G4UImanager::SetMacroSearchPath ( const G4String path)
inline

Definition at line 243 of file G4UImanager.hh.

Referenced by export_G4UImanager().

+ Here is the caller graph for this function:

void G4UImanager::SetMasterUIManager ( G4bool  val)
inline

Definition at line 258 of file G4UImanager.hh.

Referenced by G4MTRunManager::G4MTRunManager().

+ Here is the caller graph for this function:

void G4UImanager::SetMaxHistSize ( G4int  mx)
inline

Definition at line 238 of file G4UImanager.hh.

Referenced by G4UIcontrolMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4UImanager::SetPauseAtBeginOfEvent ( G4bool  vl)
inline

Definition at line 192 of file G4UImanager.hh.

Referenced by export_G4UImanager(), and G4RunMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4UImanager::SetPauseAtEndOfEvent ( G4bool  vl)
inline

Definition at line 196 of file G4UImanager.hh.

Referenced by export_G4UImanager(), and G4RunMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4UImanager::SetSession ( G4UIsession *const  value)
inline

Definition at line 213 of file G4UImanager.hh.

Referenced by G4UIGAG::G4UIGAG(), G4UIGAG::~G4UIGAG(), and G4UIGainServer::~G4UIGainServer().

+ Here is the caller graph for this function:

void G4UImanager::SetThreadIgnore ( G4int  tid = 0)

Definition at line 765 of file G4UImanager.cc.

References igThreadID, G4MTcoutDestination::SetIgnoreCout(), threadCout, and threadID.

Referenced by G4LocalThreadCoutMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::SetThreadPrefixString ( const G4String s = "W")

Definition at line 751 of file G4UImanager.cc.

References G4MTcoutDestination::SetPrefixString(), threadCout, and threadID.

Referenced by G4LocalThreadCoutMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::SetThreadUseBuffer ( G4bool  flg = true)

Definition at line 758 of file G4UImanager.cc.

References G4MTcoutDestination::EnableBuffering(), threadCout, and threadID.

Referenced by G4LocalThreadCoutMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::SetUpForAThread ( G4int  tId)

Definition at line 713 of file G4UImanager.cc.

References G4iosInitialization(), igThreadID, G4MTcoutDestination::SetIgnoreCout(), threadCout, and threadID.

Referenced by tbbTask::execute(), and G4MTRunManagerKernel::StartThread().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4UImanager::SolveAlias ( const char *  aCmd)

Definition at line 377 of file G4UImanager.cc.

References aliasList, G4UIaliasList::FindAlias(), G4cerr, G4endl, G4String::index(), and iz.

Referenced by ApplyCommand(), G4UIterminal::ExecuteCommand(), G4UIGAG::ExecuteCommand(), G4UIGainServer::ExecuteCommand(), and G4UIcontrolMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UImanager::StoreHistory ( const char *  fileName = "G4history.macro")

Definition at line 512 of file G4UImanager.cc.

Referenced by G4UIcontrolMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4UImanager::StoreHistory ( G4bool  historySwitch,
const char *  fileName = "G4history.macro" 
)

Definition at line 515 of file G4UImanager.cc.

References historyFile, and saveHistory.

Member Data Documentation

G4UIaliasList* G4UImanager::aliasList
private

Definition at line 163 of file G4UImanager.hh.

Referenced by G4UImanager(), ListAlias(), RemoveAlias(), SetAlias(), SolveAlias(), and ~G4UImanager().

std::vector<G4UIbridge*>* G4UImanager::bridges
private

Definition at line 252 of file G4UImanager.hh.

Referenced by ApplyCommand(), RegisterBridge(), and ~G4UImanager().

std::vector<G4String>* G4UImanager::commandStack
private

Definition at line 255 of file G4UImanager.hh.

Referenced by ApplyCommand(), G4UImanager(), GetCommandStack(), and ~G4UImanager().

G4LocalThreadCoutMessenger* G4UImanager::CoutMessenger
private

Definition at line 156 of file G4UImanager.hh.

Referenced by CreateMessenger(), and ~G4UImanager().

G4UImanager * G4UImanager::fMasterUImanager = 0
staticprivate

Definition at line 150 of file G4UImanager.hh.

Referenced by AddNewCommand(), GetMasterUIpointer(), and RemoveCommand().

G4ThreadLocal G4UImanager * G4UImanager::fUImanager = 0
staticprivate

Definition at line 148 of file G4UImanager.hh.

Referenced by GetUIpointer(), and ~G4UImanager().

G4ThreadLocal G4bool G4UImanager::fUImanagerHasBeenKilled = false
staticprivate

Definition at line 149 of file G4UImanager.hh.

Referenced by GetUIpointer(), and ~G4UImanager().

G4UIsession* G4UImanager::g4UIWindow
private

Definition at line 153 of file G4UImanager.hh.

Referenced by G4UImanager(), and GetG4UIWindow().

std::ofstream G4UImanager::historyFile
private

Definition at line 160 of file G4UImanager.hh.

Referenced by ApplyCommand(), StoreHistory(), and ~G4UImanager().

std::vector<G4String> G4UImanager::histVec
private

Definition at line 162 of file G4UImanager.hh.

Referenced by ApplyCommand(), and ~G4UImanager().

G4bool G4UImanager::ignoreCmdNotFound
private

Definition at line 253 of file G4UImanager.hh.

Referenced by ApplyCommand().

G4int G4UImanager::igThreadID = -1
staticprivate

Definition at line 281 of file G4UImanager.hh.

Referenced by SetThreadIgnore(), and SetUpForAThread().

G4bool G4UImanager::isMaster
private

Definition at line 251 of file G4UImanager.hh.

Referenced by ApplyCommand().

G4int G4UImanager::maxHistSize
private

Definition at line 164 of file G4UImanager.hh.

Referenced by ApplyCommand(), G4UImanager(), and GetMaxHistSize().

G4bool G4UImanager::pauseAtBeginOfEvent
private

Definition at line 165 of file G4UImanager.hh.

Referenced by G4UImanager(), GetPauseAtBeginOfEvent(), and Notify().

G4bool G4UImanager::pauseAtEndOfEvent
private

Definition at line 166 of file G4UImanager.hh.

Referenced by G4UImanager(), GetPauseAtEndOfEvent(), and Notify().

G4UIcommand* G4UImanager::savedCommand
private

Definition at line 158 of file G4UImanager.hh.

Referenced by G4UImanager(), GetCurrentStringValue(), and GetCurrentValues().

G4String G4UImanager::savedParameters
private

Definition at line 157 of file G4UImanager.hh.

Referenced by G4UImanager(), and GetCurrentStringValue().

G4bool G4UImanager::saveHistory
private

Definition at line 161 of file G4UImanager.hh.

Referenced by ApplyCommand(), G4UImanager(), StoreHistory(), and ~G4UImanager().

std::vector<G4String> G4UImanager::searchDirs
private

Definition at line 168 of file G4UImanager.hh.

Referenced by FindMacroPath(), and ParseMacroSearchPath().

G4String G4UImanager::searchPath
private

Definition at line 167 of file G4UImanager.hh.

Referenced by G4UImanager(), GetMacroSearchPath(), and ParseMacroSearchPath().

G4UIsession* G4UImanager::session
private

Definition at line 152 of file G4UImanager.hh.

Referenced by ExecuteMacroFile(), G4UImanager(), GetSession(), and PauseSession().

G4bool G4UImanager::stackCommandsForBroadcast
private

Definition at line 254 of file G4UImanager.hh.

Referenced by ApplyCommand().

G4UIcontrolMessenger* G4UImanager::UImessenger
private

Definition at line 154 of file G4UImanager.hh.

Referenced by CreateMessenger(), G4UImanager(), and ~G4UImanager().

G4UnitsMessenger* G4UImanager::UnitsMessenger
private

Definition at line 155 of file G4UImanager.hh.

Referenced by CreateMessenger(), G4UImanager(), and ~G4UImanager().

G4int G4UImanager::verboseLevel
private

Definition at line 159 of file G4UImanager.hh.

Referenced by ApplyCommand(), G4UImanager(), and GetVerboseLevel().


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