30 #include "G4RunManager.hh" 31 #include "G4UImanager.hh" 33 #include "FTFP_BERT.hh" 37 #include "MCTruthTrackingAction.hh" 38 #include "MCTruthEventAction.hh" 40 #include "MCTruthManager.hh" 45 G4RunManager* runManager =
new G4RunManager;
49 runManager->SetUserInitialization(
new FTFP_BERT);
55 runManager->SetUserAction(
new MCTruthTrackingAction);
56 runManager->SetUserAction(
new MCTruthEventAction);
59 runManager->Initialize();
62 G4UImanager* UI = G4UImanager::GetUIpointer();
63 UI->ApplyCommand(
"/run/verbose 1");
64 UI->ApplyCommand(
"/event/verbose 1");
65 UI->ApplyCommand(
"/tracking/verbose 1");
68 MCTruthConfig* config =
new MCTruthConfig;
69 config->SetMinE(1000.0);
70 config->AddParticleType(11);
71 MCTruthManager::GetInstance()->SetConfig(config);
74 int numberOfEvent = 1;
75 runManager->BeamOn(numberOfEvent);