97 int main(
int argc ,
char ** argv)
100 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine());
127 char* path = getenv(
"PHYSLIST");
128 if (path) { physName =
G4String(path); }
136 G4cout <<
"Going to register G4ParallelWorldPhysics" <<
G4endl;
151 runManager -> SetUserAction(pPrimaryGenerator);
155 runManager -> SetUserAction(pRunAction);
158 runManager -> SetUserAction(pEventAction);
161 runManager -> SetUserAction(steppingAction);
168 #ifdef G4ANALYSIS_USE_ROOT
181 G4String command =
"/control/execute ";
194 UImanager->
ApplyCommand(
"/control/execute defaultMacroWithReferencePhysicsList.mac");
198 UImanager->
ApplyCommand(
"/control/execute defaultMacro.mac");
211 pMatrix -> TotalEnergyDeposit();
212 pMatrix -> StoreDoseFluenceAscii();
213 #ifdef G4ANALYSIS_USE_ROOT
214 pMatrix -> StoreDoseFluenceRoot();
219 if(let -> doCalculation)
222 let -> StoreLetAscii();
223 #ifdef G4ANALYSIS_USE_ROOT
224 let -> StoreLetRoot();
229 #ifdef G4ANALYSIS_USE_ROOT
230 if (analysis -> IsTheTFile()) analysis -> flush();
239 delete geometryMessenger;
240 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)