38 #include "DetectorConstruction.hh"
39 #include "PhysicsList.hh"
40 #include "ActionInitialization.hh"
42 #ifdef G4MULTITHREADED
53 #include "CommandLineParser.hh"
69 void Parse(
int& argc,
char** argv);
71 int main(
int argc,
char** argv)
83 #ifdef G4MULTITHREADED
94 else if(option ==
"NMAX")
103 G4cout <<
"===== Chem2 is started with "
105 <<
" threads =====" <<
G4endl;
178 G4String command =
"/control/execute ";
214 "Select geant4 UI or just launch a geant4 terminal session",
219 "Give a mac file to execute",
228 #ifdef G4MULTITHREADED
230 "Launch in MT mode (events computed in parallel,"
231 " NOT RECOMMANDED WITH CHEMISTRY)",
237 "Deactivate chemistry");
241 "Select a visualization driver",
246 "Deactivate visualization when using GUI");
void Parse(int &argc, char **argv)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
int Parse(int &argc, char **argv)
virtual const G4String & GetDefaultOption()
void AddCommand(const G4String &marker, Command::Type, const G4String &description="", const G4String &defaultOption="", const G4String &optionName="")
Command * GetCommandIfActive(const G4String &marker)
bool CheckIfNotHandledOptionsExists(int &argc, char **argv)
static CommandLineParser * GetParser()
static void DeleteInstance()
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
G4int G4GetNumberOfCores()
CommandLineParser * parser(0)
static G4int ConvertToInt(const char *st)
Action initialization class.
int main(int argc, char **argv)
virtual void Initialize()
Detector construction class to demonstrate various ways of placement.
virtual const G4String & GetOption()
G4int ApplyCommand(const char *aCommand)