36 #include "G4UImanager.hh" 38 #ifdef G4MULTITHREADED 39 #include "G4MTRunManager.hh" 41 #include "G4RunManager.hh" 45 #include "ExGflashDetectorConstruction.hh" 46 #include "ExGflashActionInitialization.hh" 48 #include "FTFP_BERT.hh" 49 #include "G4FastSimulationPhysics.hh" 51 #include "G4VisExecutive.hh" 52 #include "G4UIExecutive.hh" 56 int main(
int argc,
char** argv)
59 G4UIExecutive* ui =
nullptr;
61 ui =
new G4UIExecutive(argc, argv);
68 G4cout<<
"+-------------------------------------------------------+"<<G4endl;
69 G4cout<<
"| |"<<G4endl;
70 G4cout<<
"| This is an example of Shower |"<<G4endl;
71 G4cout<<
"| Parameterization with GFLASH |"<<G4endl;
72 G4cout<<
"+-------------------------------------------------------+"<<G4endl;
76 #ifdef G4MULTITHREADED 77 G4MTRunManager * runManager =
new G4MTRunManager;
79 G4RunManager * runManager =
new G4RunManager;
83 ExGflashDetectorConstruction* detector =
new ExGflashDetectorConstruction;
84 runManager->SetUserInitialization(detector);
87 G4VModularPhysicsList* physicsList =
new FTFP_BERT();
90 G4FastSimulationPhysics* fastSimulationPhysics =
new G4FastSimulationPhysics();
97 fastSimulationPhysics->ActivateFastSimulation(
"e-");
98 fastSimulationPhysics->ActivateFastSimulation(
"e+");
104 physicsList->RegisterPhysics( fastSimulationPhysics );
105 runManager->SetUserInitialization(physicsList);
108 runManager->SetUserInitialization(
new ExGflashActionInitialization(detector));
110 G4VisManager* visManager =
new G4VisExecutive;
111 visManager->Initialize();
113 G4UImanager* UImanager = G4UImanager::GetUIpointer();
114 UImanager->ApplyCommand(
"/run/verbose 0");
115 runManager->Initialize();
116 UImanager->ApplyCommand(
"/Step/Verbose 0");
120 UImanager->ApplyCommand(
"/control/execute vis.mac");
127 UImanager->ApplyCommand(
"/control/execute "+s);
135 G4cout <<
"******************************************";
137 G4cout <<
"Total Real Elapsed Time is: "<< timer.GetRealElapsed();
139 G4cout <<
"Total System Elapsed Time: " << timer.GetSystemElapsed();
141 G4cout <<
"Total GetUserElapsed Time: " << timer.GetUserElapsed();
143 G4cout <<
"******************************************";
int main(int argc, char **argv)