12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples• derived from G4VHit• draw hit point9.1.4. Example N03Basic concepts• Visualize Em processes.• Interactivity: build messenger classes.• Gun: shoot particle randomly.• Tracking: collect energy deposition, total track lengthClassesmain() (source file)• main() <strong>for</strong> 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 fileExN03DetectorConstruction(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)• visualizationExN03PhysicsList(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.275

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!