88 int main(
int argc ,
char ** argv)
91 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine());
94 G4int seed = time(NULL);
95 CLHEP::HepRandom::setTheSeed(seed);
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);
168 G4String command =
"/control/execute ";
181 UImanager->
ApplyCommand(
"/control/execute defaultMacroWithReferencePhysicsList.mac");
185 UImanager->
ApplyCommand(
"/control/execute defaultMacro.mac");
199 pMatrix -> TotalEnergyDeposit();
200 pMatrix -> StoreDoseFluenceAscii();
201 pMatrix -> StoreDoseFluenceRoot();
212 delete geometryMessenger;
213 delete geometryController;
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
A class for connecting the simulation to an analysis package.
static G4UImanager * GetUIpointer()
G4VModularPhysicsList * GetReferencePhysList(const G4String &)
G4bool IsReferencePhysList(const G4String &)
static IORTAnalysisManager * GetInstance()
Get the pointer to the analysis manager.
void SetGeometry(G4String)
Select a geometry by name.
int main(int argc, char **argv)
Controller for geometry selection.
static IORTMatrix * GetInstance()
static G4ScoringManager * GetScoringManager()
void SetVerboseLevel(G4int vl)
G4int ApplyCommand(const char *aCommand)