View
12
Download
0
Category
Preview:
Citation preview
Generation of a Primary event
Giada Petringa (LNS-INFN)
The 2nd Geant4 School in China Shandong University
Qingdao
1
User Classes 2
At initialization At execution
G4VUserDetectorConstruction
G4VUserActionInitialization
G4UserSteppingAction
G4VUserPhysicsList G4UserRunAction
G4UserTrackingAction
G4UserStackingAction
G4UserEventAction
G4VUserPrimaryGeneratorAction
Global: only one instance exists in memory, shared by all threads.
Thread-local: an instance of each action class exists for each thread.
2
The Primary is a mandatory action class 3
G4VUserPrimaryGeneratorAction 4
…its concrete implementation 5
…its concrete implementation 6
G4VPrimaryGenerator 7
G4HEPEvInterface 8
G4ParticleGun() 9
G4ParticleGun() 10
G4GeneralParticleSource() 11
G4GeneralParticleSource() 12
G4GeneralParticleSource() 13
ParticleGun Vs GPS 14
Examples 15
example/extended/…..
GPS /eventgenerator/exgps
HEPEvInterface/runAndEvent/RE02/srcRE01PrimaryGeneratorAction.cc
Next task 16
Exercise 2b.1: Instantiate the GeneralParticleSource
Exercise 2b.2: Changing GPS parameter from macro commands
Exercise 2b.3: Creating a complicated GPS source with macro commands
Next task 17
Exercise 2a.2: Change parameters of the particle gun
Exercise 2a.1: Instantiate and customize the Particle Gun
18
…It’s all!
Recommended