50int main(
int argc,
char** argv)
62 G4cout <<
"+-------------------------------------------------------+" << G4endl;
63 G4cout <<
"| |" << G4endl;
64 G4cout <<
"| This is an example of Shower |" << G4endl;
65 G4cout <<
"| Parameterization with GFLASH |" << G4endl;
66 G4cout <<
"+-------------------------------------------------------+" << G4endl;
68 auto* runManager = G4RunManagerFactory::CreateRunManager();
69 runManager->SetNumberOfThreads(1);
72 G4cout <<
"# GFlash Example: Detector Construction" << G4endl;
86 fastSimulationPhysics->ActivateFastSimulation(
"e-");
87 fastSimulationPhysics->ActivateFastSimulation(
"e+");
93 physicsList->RegisterPhysics(fastSimulationPhysics);
94 runManager->SetUserInitialization(physicsList);
100 visManager->Initialize();
102 G4UImanager* UImanager = G4UImanager::GetUIpointer();
103 UImanager->ApplyCommand(
"/run/verbose 0");
104 runManager->Initialize();
105 UImanager->ApplyCommand(
"/Step/Verbose 0");
109 UImanager->ApplyCommand(
"/control/execute vis.mac");
116 UImanager->ApplyCommand(
"/control/execute " + s);
124 G4cout <<
"******************************************";
126 G4cout <<
"Total Real Elapsed Time is: " << timer.GetRealElapsed();
128 G4cout <<
"Total System Elapsed Time: " << timer.GetSystemElapsed();
130 G4cout <<
"Total GetUserElapsed Time: " << timer.GetUserElapsed();
132 G4cout <<
"******************************************";