40 #include "DetectorConstruction.hh"
41 #include "PhysicsList.hh"
42 #include "ActionInitialization.hh"
44 #ifdef G4MULTITHREADED
55 #include "CommandLineParser.hh"
62 void Parse(
int& argc,
char** argv);
66 int main(
int argc,
char** argv)
74 CLHEP::RanecuEngine defaultEngine(1234567);
75 G4Random::setTheEngine(&defaultEngine);
79 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
86 #ifdef G4MULTITHREADED
99 G4cout <<
"===== PDB4DNA is started with "
101 <<
" threads =====" <<
G4endl;
167 G4String command =
"/control/execute ";
178 G4UIQt* UIQt =
static_cast<G4UIQt*
> (UImanager->
GetG4UIWindow());
180 UIQt->AddViewerTabFromFile(
"README",
"README from "+
G4String(argv[0]));
205 "Select geant4 UI or just launch a geant4 terminal session",
210 "Give a mac file to execute",
219 #ifdef G4MULTITHREADED
221 "Launch in MT mode (events computed in parallel)",
227 "Select a visualization driver",
232 "Deactivate visualization when using GUI");
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)
int main(int argc, char **argv)
bool CheckIfNotHandledOptionsExists(int &argc, char **argv)
static CommandLineParser * GetParser()
void Parse(int &argc, char **argv)
static void DeleteInstance()
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
G4int G4GetNumberOfCores()
G4int GetNumberOfThreads() const
static G4int ConvertToInt(const char *st)
Action initialization class.
G4UIsession * GetG4UIWindow() const
Detector construction class to demonstrate various ways of placement.
CommandLineParser * parser(0)
virtual const G4String & GetOption()
G4int ApplyCommand(const char *aCommand)