93 int main(
int argc ,
char ** argv)
123 char* path = getenv(
"PHYSLIST");
124 if (path) { physName =
G4String(path); }
139 runManager -> SetUserAction(pPrimaryGenerator);
143 runManager -> SetUserAction(pRunAction);
146 runManager -> SetUserAction(pEventAction);
149 runManager -> SetUserAction(steppingAction);
156 #ifdef G4ANALYSIS_USE_ROOT
169 G4String command =
"/control/execute ";
182 UImanager->
ApplyCommand(
"/control/execute defaultMacroWithReferencePhysicsList.mac");
186 UImanager->
ApplyCommand(
"/control/execute defaultMacro.mac");
199 pMatrix -> TotalEnergyDeposit();
200 pMatrix -> StoreDoseFluenceAscii();
201 #ifdef G4ANALYSIS_USE_ROOT
202 pMatrix -> StoreDoseFluenceRoot();
206 #ifdef G4ANALYSIS_USE_ROOT
207 if (analysis -> IsTheTFile()) analysis -> flush();
216 delete geometryMessenger;
217 delete geometryController;