88 int main(
int argc ,
char ** argv)
94 G4int seed = time(NULL);
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
170 G4String command =
"/control/execute ";
183 UImanager->
ApplyCommand(
"/control/execute defaultMacroWithReferencePhysicsList.mac");
187 UImanager->
ApplyCommand(
"/control/execute defaultMacro.mac");
201 pMatrix -> TotalEnergyDeposit();
202 pMatrix -> StoreDoseFluenceAscii();
203 #ifdef G4ANALYSIS_USE_ROOT
204 pMatrix -> StoreDoseFluenceRoot();
208 #ifdef G4ANALYSIS_USE_ROOT
209 if (analysis -> IsTheTFile()) analysis -> flush();
218 delete geometryMessenger;
219 delete geometryController;
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
int main(int argc, char **argv)
static void setTheSeed(long seed, int lux=3)
static G4UImanager * GetUIpointer()
G4VModularPhysicsList * GetReferencePhysList(const G4String &)
G4bool IsReferencePhysList(const G4String &)
static IORTAnalysisManager * GetInstance()
void SetGeometry(G4String)
static void setTheEngine(HepRandomEngine *theNewEngine)
static IORTMatrix * GetInstance()
static G4ScoringManager * GetScoringManager()
void SetVerboseLevel(G4int vl)
G4int ApplyCommand(const char *aCommand)