Geant4 Scoring
Geant4 command line scoring
Since Geant4 VMC version 6.8, it is possible to activate Geant4 command line scoring (see details in the Geant4 Application developers Guide, section Command-based scoring).
The activation should be done via calling
void TG4RunConfiguration::SetUseOfG4Scoring()in the user g4Config.C.
The scoring (mesh, scorers etc.) can be then defined via Geant UI commands, available in the
‘/score’ directory, in g4config.in.
The scoring data will be then automatically saved for each mesh
in a mesh_name.txt file at the end of simulation run.
User defined scoring function
Users can also provide their scoreweight function that takes (pdg, ekin) as arguments,
defined via TG4ScoreWeightCalculator , using a new TG4RunConfiguration class`
setter:
void TG4RunConfiguration::SetScoreWeightCalculator(TG4ScoreWeightCalculator swc)The user function is then wrapped to G4ScoreWeightCalculator function,
that takes (const G4Step*) as argument, and is applied to all Geant4 scorers with activated
score weighting.