Using BgsTransportation with the Geant4 Toolkit

Last modified :


Introduction

BgsTransportation is a specialized stepper developed for use in BaBar by David Williams. Unlike the default, Runge-Kutta stepper provided by Geant4, BgsTransportation uses perfect helices to track particles through magnetic fields. As a result, BgsTransportation is faster and more accurate than the default stepper, provided the field does not vary too rapidly.

It has been proposed to make BgsTransportation an official part of the Geant4 toolkit, but substantial changes in the Geant4 navigator must first be made. For the time being, BgsTransportation is being made available as part of the SLAC patch of the Geant4 toolkit and is included with the standard Geant4 libraries.


Building an Executable which uses BgsTransportation

Example A01 provides the ability to run simulations with either the default stepper or BgsTransportation. Instructions for building this example are found here .

Once the example is built, it may be run by executing

../bin/$G4SYSTEM/A01app novis.mac bgstrans

which uses BgsTransportation, or

../bin/$G4SYSTEM/A01app novis.mac

which uses the default stepper.


How BgsTransportation is Invoked

Like the default Geant4 stepper, BgsTransportation is a process which must be instantiated and registered to all particles requiring transportation. This is done in the PhysicsList. The implementation of this option, from the command line to the addition of the process, is outlined here:


Restrictions


Dennis Wright