#include "doiPETDetectorConstruction.hh"
#include "doiPETPhysicsList.hh"
#include "doiPETAnalysis.hh"
#include "doiPETActionInitialization.hh"
#include "Randomize.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "G4SystemOfUnits.hh"
#include "G4RunManager.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 61 of file doiPET.cc.
64 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
66 #ifdef G4MULTITHREADED 68 G4MTRunManager* runManager =
new G4MTRunManager;
69 runManager->SetNumberOfThreads(4);
72 G4RunManager* runManager =
new G4RunManager;
75 runManager->SetUserInitialization(
new doiPETDetectorConstruction);
77 runManager->SetUserInitialization(
new doiPETPhysicsList);
80 runManager->SetUserInitialization(
new doiPETActionInitialization());
83 doiPETAnalysis* ptrAnalysis = doiPETAnalysis::GetInstance();
86 G4double act = 1000000 * becquerel;
87 ptrAnalysis->SetActivity(act);
89 G4double halfLife = 109.771 * 60 * s;
90 ptrAnalysis -> SetIsotopeHalfLife(halfLife);
93 ptrAnalysis -> BlurringParameters();
96 ptrAnalysis->Open(
"result");
100 ptrAnalysis -> PMTPosition();
102 ptrAnalysis->ReadReflectorPattern();
105 G4UImanager* UI = G4UImanager::GetUIpointer();
112 G4String command =
"/control/execute ";
114 UI->ApplyCommand(command+fileName);
119 G4VisManager* visManager =
new G4VisExecutive;
120 visManager->Initialize();
122 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
131 ptrAnalysis->Close();
132 ptrAnalysis->Delete();