31 #include "G4RunManager.hh" 32 #include "G4UImanager.hh" 34 #include "FTFP_BERT.hh" 38 #include "MCTruthTrackingAction.hh" 39 #include "MCTruthEventAction.hh" 41 #include "MCTruthManager.hh" 46 G4RunManager* runManager =
new G4RunManager;
50 runManager->SetUserInitialization(
new FTFP_BERT);
56 runManager->SetUserAction(
new MCTruthTrackingAction);
57 runManager->SetUserAction(
new MCTruthEventAction);
60 runManager->Initialize();
63 G4UImanager* UI = G4UImanager::GetUIpointer();
64 UI->ApplyCommand(
"/run/verbose 1");
65 UI->ApplyCommand(
"/event/verbose 1");
66 UI->ApplyCommand(
"/tracking/verbose 1");
69 MCTruthConfig* config =
new MCTruthConfig;
70 config->SetMinE(1000.0);
71 config->AddParticleType(11);
72 MCTruthManager::GetInstance()->SetConfig(config);
75 int numberOfEvent = 1;
76 runManager->BeamOn(numberOfEvent);