Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4FieldManager.hh File Reference
#include "G4FieldParameters.hh"
#include "globals.hh"
#include "G4FieldManager.icc"

Go to the source code of this file.

Classes

class  G4FieldManager
 G4FieldManager is a manager (store) for a pointer to the Field subclass that describes the field of a detector (magnetic, electric or other). It also stores a reference to the chord finder. A field manager can be set to a logical volume (or to more than one), in order to vary its field from that of the world volume. In this manner a zero or constant field can override a global field, a more or less exact version can override the external approximation, lower or higher precision for tracking can be specified, a different stepper can be chosen for different volumes, etc... The Chord Finder must be created either by calling CreateChordFinder() for a Magnetic Field or by the user creating a Chord Finder object "manually" and setting the pointer. The current design envisions that one Field manager is valid for each detector region. It is expected that a particular geometrical region has a Field manager. By default a Field Manager is created for the world volume, and will be utilised for all volumes unless it is overridden by a 'local' field manager. Note also that a region with both electric E and magnetic B field will have these treated as one field. Similarly it could be extended to treat other fields as additional components of a single field type. More...