85 #ifdef G4MULTITHREADED
102 int main(
int argc ,
char ** argv)
105 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine());
113 #ifdef G4MULTITHREADED
146 char* path = getenv(
"PHYSLIST");
147 if (path) { physName =
G4String(path); }
155 G4cout <<
"Going to register G4ParallelWorldPhysics" <<
G4endl;
177 #ifdef G4ANALYSIS_USE_ROOT
195 UImanager -> ApplyCommand(
"/control/execute macro/defaultMacro.mac");
196 ui -> SessionStart();
202 G4String command =
"/control/execute ";
204 UImanager -> ApplyCommand(command+fileName);
211 pMatrix -> TotalEnergyDeposit();
212 pMatrix -> StoreDoseFluenceAscii();
213 #ifdef G4ANALYSIS_USE_ROOT
215 pMatrix -> StoreDoseFluenceRoot();
220 if(let -> doCalculation)
223 let -> StoreLetAscii();
224 #ifdef G4ANALYSIS_USE_ROOT
226 let -> StoreLetRoot();
231 #ifdef G4ANALYSIS_USE_ROOT
232 if (analysis -> IsTheTFile()) analysis -> flush();
240 delete geometryMessenger;
241 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)