Download Geant4 User`s Guide for Application Developers
Transcript
Examples • • derived from G4VHit draw hit point 9.1.4. Example N03 Basic concepts • • • • Visualize Em processes. Interactivity: build messenger classes. Gun: shoot particle randomly. Tracking: collect energy deposition, total track length Classes main() (source file) • • • • • main() for interactive mode and batch mode via macro file construction and deletion of G4RunManager construction and deletion of (G)UI session and VisManager construction and set of mandatory user classes automatic initialization of geometry and visualization via a macro file ExN03DetectorConstruction (header file) (source file) • • • • • • derived from G4VUserDetectorConstruction definitions of single materials and mixtures CSG solids G4PVPlacement without rotation Interactivity: change detector size, material, magnetic field. (=>messenger class) visualization ExN03PhysicsList (header file) (source file) • • • • derived from G4VUserPhysicsList definition of geantinos, gamma, leptons, light mesons barions and ions Transportation process, 'standard' Em processes, Decay Interactivity: SetCut, process on/off. (=> messenger class) ExN03PrimaryGeneratorAction (header file) (source file) • • • • derived from G4VPrimaryGeneratorAction construction of G4ParticleGun primary event generation via particle gun Interactivity: shoot particle randomly. (=> messenger class) ExN03RunAction (header file) (source file) • • • • derived from G4VUserRunAction draw detector and tracks Interactivity: SetCut, process on/off. Interactivity: change detector size, material, magnetic field. 247