Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
edep-sim
src
EDepSimCreateRunManager.cc
Go to the documentation of this file.
1
#include "
EDepSimUserDetectorConstruction.hh
"
2
#include "
EDepSimUserPrimaryGeneratorAction.hh
"
3
#include "
EDepSimUserRunAction.hh
"
4
#include "
EDepSimUserEventAction.hh
"
5
#include "
EDepSimUserStackingAction.hh
"
6
#include "
EDepSimUserTrackingAction.hh
"
7
#include "
EDepSimDetectorMessenger.hh
"
8
9
#include "
EDepSimCreateRunManager.hh
"
10
11
// The default physics list.
12
#include "
EDepSimPhysicsList.hh
"
13
14
G4RunManager*
EDepSim::CreateRunManager
(G4String physicsList) {
15
// Set the mandatory initialization classes
16
17
// Construct the default run manager
18
G4RunManager* runManager =
new
G4RunManager;
19
20
// Construct the detector construction class.
21
EDepSim::UserDetectorConstruction
* theDetector
22
=
new
EDepSim::UserDetectorConstruction
;
23
runManager->SetUserInitialization(theDetector);
24
25
// Add the physics list first. This is a G4 requirement!
26
runManager->SetUserInitialization(
new
EDepSim::PhysicsList
(physicsList));
27
28
// Set the other mandatory user action class
29
runManager->SetUserAction(
new
EDepSim::UserPrimaryGeneratorAction
);
30
runManager->SetUserAction(
new
EDepSim::UserRunAction
);
31
runManager->SetUserAction(
new
EDepSim::UserEventAction
);
32
runManager->SetUserAction(
new
EDepSim::UserStackingAction
);
33
runManager->SetUserAction(
new
EDepSim::UserTrackingAction
);
34
35
return
runManager;
36
}
EDepSimPhysicsList.hh
EDepSimUserRunAction.hh
EDepSim::UserPrimaryGeneratorAction
Definition:
EDepSimUserPrimaryGeneratorAction.hh:17
EDepSimUserStackingAction.hh
EDepSimUserTrackingAction.hh
EDepSimDetectorMessenger.hh
EDepSim::UserTrackingAction
Definition:
EDepSimUserTrackingAction.hh:11
EDepSim::UserDetectorConstruction
Definition:
EDepSimUserDetectorConstruction.hh:24
EDepSim::UserStackingAction
Definition:
EDepSimUserStackingAction.hh:10
EDepSim::PhysicsList
Definition:
EDepSimPhysicsList.hh:16
EDepSim::UserRunAction
Definition:
EDepSimUserRunAction.hh:16
EDepSimCreateRunManager.hh
EDepSim::CreateRunManager
G4RunManager * CreateRunManager(G4String physicsList)
Definition:
EDepSimCreateRunManager.cc:14
EDepSimUserPrimaryGeneratorAction.hh
EDepSimUserEventAction.hh
EDepSimUserDetectorConstruction.hh
EDepSim::UserEventAction
Definition:
EDepSimUserEventAction.hh:12
Generated by
1.8.11