38 #ifdef G4MULTITHREADED
50 #include "ActionInitialization.hh"
51 #include "DetectorConstruction.hh"
52 #include "PhysicsList.hh"
53 #include "CommandLineParser.hh"
61 void Parse(
int& argc,
char** argv);
63 int main(
int argc,
char** argv)
67 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
79 #ifdef G4MULTITHREADED
92 G4cout <<
"===== WholeNuclearDNA is started with "
94 <<
" threads =====" <<
G4endl;
161 G4String command =
"/control/execute ";
166 UImanager->
ApplyCommand(
"/control/execute wholeNuclearDNA.in");
172 G4UIQt* UIQt =
static_cast<G4UIQt*
> (UImanager->
GetG4UIWindow());
174 UIQt->AddViewerTabFromFile(
"README",
"README from "+
G4String(argv[0]));
194 std::string aux(argv[0]);
197 #if defined(_WIN32) || defined(WIN32)
198 int pos = aux.rfind(
'\\');
200 int pos = aux.rfind(
'/');
204 path = aux.substr(0, pos + 1);
205 executable = aux.substr(pos + 1);
219 "Select geant4 UI or just launch a geant4 terminal session",
224 "Give a mac file to execute",
233 #ifdef G4MULTITHREADED
236 "Launch in MT mode (events computed in parallel)",
242 "Select a visualization driver",
247 "Deactivate visualization when using GUI");
255 "Output files (ROOT is used by default)",
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
int Parse(int &argc, char **argv)
void SetNumberOfThreads(G4int n)
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()
void Parse(int &argc, char **argv)
static void DeleteInstance()
static G4UImanager * GetUIpointer()
int main(int argc, char **argv)
G4GLOB_DLL std::ostream G4cout
G4int G4GetNumberOfCores()
G4int GetNumberOfThreads() const
static G4int ConvertToInt(const char *st)
Action initialization class.
G4UIsession * GetG4UIWindow() const
virtual void Initialize()
Detector construction class to demonstrate various ways of placement.
void GetNameAndPathOfExecutable(char **argv, G4String &executable, G4String &path)
virtual const G4String & GetOption()
static const G4double pos
G4int ApplyCommand(const char *aCommand)
CommandLineParser * parser(0)