52int main(
int argc,
char** argv)
64 G4cout <<
"+-------------------------------------------------------+" << G4endl;
65 G4cout <<
"| |" << G4endl;
66 G4cout <<
"| This is an example of Shower |" << G4endl;
67 G4cout <<
"| Parameterization with GFLASH |" << G4endl;
68 G4cout <<
"+-------------------------------------------------------+" << G4endl;
70 auto* runManager = G4RunManagerFactory::CreateRunManager();
71 runManager->SetNumberOfThreads(1);
74 G4cout <<
"# GFlash Example: Detector Construction" << G4endl;
77 runManager->SetUserInitialization(detector);
90 fastSimulationPhysics->ActivateFastSimulation(
"e-");
91 fastSimulationPhysics->ActivateFastSimulation(
"e+");
98 physicsList->RegisterPhysics(fastSimulationPhysics);
99 runManager->SetUserInitialization(physicsList);
105 visManager->Initialize();
107 G4UImanager* UImanager = G4UImanager::GetUIpointer();
108 UImanager->ApplyCommand(
"/run/verbose 0");
109 runManager->Initialize();
110 UImanager->ApplyCommand(
"/Step/Verbose 0");
114 UImanager->ApplyCommand(
"/control/execute vis.mac");
121 UImanager->ApplyCommand(
"/control/execute " + s);
129 G4cout <<
"******************************************";
131 G4cout <<
"Total Real Elapsed Time is: " << timer.GetRealElapsed();
133 G4cout <<
"Total System Elapsed Time: " << timer.GetSystemElapsed();
135 G4cout <<
"Total GetUserElapsed Time: " << timer.GetUserElapsed();
137 G4cout <<
"******************************************";