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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Detector Definition and Responsein the cell. The expression <strong>for</strong> cell flux is given by the sum of (W*L)/V, where W is a particle weight, andis multiplied by the track length at each step.G4PSPassageCellFluxPassage cell flux is a volume based scorer similar to G4PSCellFlux. The only difference is that tracks whichpass through a cell are taken into account. It means generated or stopped tracks inside the volume are excludedfrom the calculation.Other scorersG4PSMinKinEAtGenerationThis scorer records the minimum kinetic energy of secondary particles at their production point in the volumein an event. This primitive scorer does not integrate the quantity, but records the minimum quantity.G4PSNofSecondaryThis class scores the number of secondary particles generated in the volume. The weight of the secondarytrack is taken into account.G4PSNofStepThis class scores the number of steps in the cell. A particle weight is not applied.G4PSCellChargeThis class scored the total charge of particles which has stoped in the volume.4.4.7. G4VSDFilter and its derived classesG4VSDFilter is an abstract class that represents a track filter to be associated with G4VSensitiveDetector orG4VPrimitiveScorer. It defines a virtual methodG4bool Accept(const G4Step*)that should return true if this particular step should be scored by the G4VSensitiveDetector or G4VPrimitiveScorer.While the user can implement his/her own filter class, <strong>Geant4</strong> version 8.0 provides the following concrete filterclasses:G4SDChargedFilterAll charged particles are accepted.G4SDNeutralFilterAll neutral particles are accepted.G4SDParticleFilterParticle species which are registered to this filter object by Add("particle_name") are accepted. More thanone species can be registered.G4SDKineticEnergyFilterA track with kinetic energy greater than or equal to EKmin and smaller than EKmin is accepted. EKmin andEKmax should be defined as arguments of the constructor. The default values of EKmin and EKmax are zeroand DBL_MAX.G4SDParticleWithEnergyFilterCombination of G4SDParticleFilter and G4SDParticleWithEnergyFilter.The use of the G4SDParticleFilter class is demonstrated in Example 4.15, where filters which accept gamma,electron, positron and electron/positron are defined.4.4.8. Scoring <strong>for</strong> Event BiasingScoring <strong>for</strong> Event Biasing (described in Section 3.7) is a very specific use case whereby particle weights and fluxesthrough importance cells are required. The goals of the scoring technique are to:134

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

Saved successfully!

Ooh no, something went wrong!