83 #ifdef G4MULTITHREADED
102 int main(
int argc ,
char ** argv)
105 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine());
108 G4int seed =1414159599;
109 CLHEP::HepRandom::setTheSeed(seed);
113 #ifdef G4MULTITHREADED
148 char* path = getenv(
"PHYSLIST");
149 if (path) { physName =
G4String(path); }
157 G4cout <<
"Going to register G4ParallelWorldPhysics" <<
G4endl;
194 #ifdef G4ANALYSIS_USE_ROOT
217 UImanager->
ApplyCommand(
"/control/execute macro/defaultMacroWithReferencePhysicsList.mac");
221 UImanager->
ApplyCommand(
"/control/execute macro/defaultMacro.mac");
233 G4String command =
"/control/execute ";
242 pMatrix -> TotalEnergyDeposit();
243 pMatrix -> StoreDoseFluenceAscii();
244 #ifdef G4ANALYSIS_USE_ROOT
246 pMatrix -> StoreDoseFluenceRoot();
251 if(let -> doCalculation)
254 let -> StoreLetAscii();
255 #ifdef G4ANALYSIS_USE_ROOT
257 let -> StoreLetRoot();
262 #ifdef G4ANALYSIS_USE_ROOT
263 if (analysis -> IsTheTFile()) analysis -> flush();
271 delete geometryMessenger;
272 delete geometryController;
int main(int argc, char **argv)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
static HadrontherapyAnalysisManager * GetInstance()
Get the pointer to the analysis manager.
void RegisterPhysics(G4VPhysicsConstructor *)
static HadrontherapyLet * GetInstance()
static G4UImanager * GetUIpointer()
static HadrontherapyMatrix * GetInstance()
Controller for geometry selection.
G4GLOB_DLL std::ostream G4cout
void SetGeometry(G4String)
Select a geometry by name.
G4VModularPhysicsList * GetReferencePhysList(const G4String &)
G4bool IsReferencePhysList(const G4String &)
A class for connecting the simulation to an analysis package.
static G4ScoringManager * GetScoringManager()
void SetVerboseLevel(G4int vl)
G4int ApplyCommand(const char *aCommand)