Main program of the parameterisations/gflash/gflasha example.
More...
#include "G4Types.hh"
#include "G4ios.hh"
#include "G4Timer.hh"
#include "G4UImanager.hh"
#include "G4RunManager.hh"
#include "ExGflashDetectorConstruction.hh"
#include "ExGflashActionInitialization.hh"
#include "FTFP_BERT.hh"
#include "G4FastSimulationPhysics.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the parameterisations/gflash/gflasha example.
Definition in file ExGflasha.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 56 of file ExGflasha.cc.
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 <<
"******************************************";