Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4MagneticField Class Reference

The magnetic field defined via TVirtualMagField. More...

#include <TG4MagneticField.h>

Inheritance diagram for TG4MagneticField:

Public Member Functions

 TG4MagneticField (TVirtualMagField *magField)
 
virtual ~TG4MagneticField ()
 
virtual void GetFieldValue (const G4double point[3], G4double *bfield) const
 
virtual void PrintStatistics () const
 

Protected Attributes

TVirtualMagField * fVirtualMagField
 The associated TGeo magnetic field.
 

Detailed Description

The magnetic field defined via TVirtualMagField.

Author
I. Hrivnacova; IPN, Orsay

Definition at line 28 of file TG4MagneticField.h.

Constructor & Destructor Documentation

◆ TG4MagneticField()

TG4MagneticField::TG4MagneticField ( TVirtualMagField * magField)

Default constructor

Definition at line 21 of file TG4MagneticField.cxx.

◆ ~TG4MagneticField()

TG4MagneticField::~TG4MagneticField ( )
virtual

Destructor

Definition at line 28 of file TG4MagneticField.cxx.

Member Function Documentation

◆ GetFieldValue()

void TG4MagneticField::GetFieldValue ( const G4double point[3],
G4double * bfield ) const
virtual

Return the bfield values in the given point.

Reimplemented in TG4CachedMagneticField.

Definition at line 38 of file TG4MagneticField.cxx.

◆ PrintStatistics()

virtual void TG4MagneticField::PrintStatistics ( ) const
inlinevirtual

Reimplemented in TG4CachedMagneticField.

Definition at line 36 of file TG4MagneticField.h.

Member Data Documentation

◆ fVirtualMagField

TVirtualMagField* TG4MagneticField::fVirtualMagField
protected

The associated TGeo magnetic field.

Definition at line 41 of file TG4MagneticField.h.

Referenced by TG4CachedMagneticField::GetFieldValue(), and GetFieldValue().


The documentation for this class was generated from the following files: