51int main(
int argc,
char** argv)
63 G4cout <<
"+-------------------------------------------------------+" << G4endl;
64 G4cout <<
"| |" << G4endl;
65 G4cout <<
"| This is an example of Shower |" << G4endl;
66 G4cout <<
"| Parameterization with GFLASH |" << G4endl;
67 G4cout <<
"+-------------------------------------------------------+" << G4endl;
69 auto* runManager = G4RunManagerFactory::CreateRunManager();
70 runManager->SetNumberOfThreads(1);
73 G4cout <<
"# GFlash Example: Detector Construction" << G4endl;
76 runManager->SetUserInitialization(detector);
89 fastSimulationPhysics->ActivateFastSimulation(
"e-",
"parallelWorld");
90 fastSimulationPhysics->ActivateFastSimulation(
"e+",
"parallelWorld");
96 physicsList->RegisterPhysics(fastSimulationPhysics);
97 runManager->SetUserInitialization(physicsList);
103 visManager->Initialize();
105 G4UImanager* UImanager = G4UImanager::GetUIpointer();
106 UImanager->ApplyCommand(
"/run/verbose 0");
107 runManager->Initialize();
108 UImanager->ApplyCommand(
"/Step/Verbose 0");
112 UImanager->ApplyCommand(
"/control/execute vis.mac");
119 UImanager->ApplyCommand(
"/control/execute " + s);
127 G4cout <<
"******************************************";
129 G4cout <<
"Total Real Elapsed Time is: " << timer.GetRealElapsed();
131 G4cout <<
"Total System Elapsed Time: " << timer.GetSystemElapsed();
133 G4cout <<
"Total GetUserElapsed Time: " << timer.GetUserElapsed();
135 G4cout <<
"******************************************";