Charging analysis¶
Module type name (to be used for the module commands): charging
Description¶
The charging analysis module computes the total charge balance passing through user defined boundaries. If a particle is passing through the surface in the direction specified by the user, the charge of the particle is added, otherwise it is subtracted.
Script example:
/gras/analysis/charging/addModule chargingDetector
/gras/analysis/charging/chargingDetector/addVolumeInterface Hall Detector
Available Units¶
The module accepts as units all the G4 units under the “Electric charge” category. Additional GRAS units that can be used are:
e
Specific Module commands¶
The Module doesn’t have any specific commands.
Output¶
Scalars (only in CSV file)¶
DEPOSITED CHARGE
Total charge deposited per event through all the specified volume interfaces
Always active
Precision Calculations This variable is registered for precision calculations if activated
Histograms (in CSV and ROOT files)¶
Controlled by the bookHisto
command (default is active).
DEPOSITED CHARGE SPECTRUM
Name (for the
setHistoByName
command): <moduleName>_chargingSpectrum of the charge deposition per event through all the specified volume interfaces
Always active
Tuples (only in ROOT file)¶
Controlled by the bookTuples
(default is active).
<moduleName> Event total charging
Name: <moduleName>_tuple_charging
Charge deposition information by event
Columns:
event: event ID
primarypdg: pdg of primary particle
primaryz: atomic number of primary particle
primarya: atomic mass of the primary particle
charge: charge deposition of event
weight: weight of event
primarykine: kinetic energy of primary particle
primarytheta: theta of primary particle
primaryphi: phi of primary particle
Always active
GRAS/trunk/r2242