Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExErrorMagneticField Class Reference

#include <ExErrorMagneticField.hh>

Inheritance diagram for ExErrorMagneticField:
Collaboration diagram for ExErrorMagneticField:

Public Member Functions

 ExErrorMagneticField (G4ThreeVector)
 
 ExErrorMagneticField ()
 
 ~ExErrorMagneticField ()
 
void SetFieldValue (G4double fieldValue)
 
void SetFieldValue (G4ThreeVector fieldVector)
 
- Public Member Functions inherited from G4UniformMagField
 G4UniformMagField (const G4ThreeVector &FieldVector)
 
 G4UniformMagField (G4double vField, G4double vTheta, G4double vPhi)
 
virtual ~G4UniformMagField ()
 
 G4UniformMagField (const G4UniformMagField &p)
 
G4UniformMagFieldoperator= (const G4UniformMagField &p)
 
virtual void GetFieldValue (const G4double yTrack[4], G4double *MagField) const
 
void SetFieldValue (const G4ThreeVector &newFieldValue)
 
G4ThreeVector GetConstantFieldValue () const
 
virtual G4FieldClone () const
 
- Public Member Functions inherited from G4MagneticField
 G4MagneticField ()
 
virtual ~G4MagneticField ()
 
 G4MagneticField (const G4MagneticField &r)
 
G4MagneticFieldoperator= (const G4MagneticField &p)
 
G4bool DoesFieldChangeEnergy () const
 
- Public Member Functions inherited from G4ElectroMagneticField
 G4ElectroMagneticField ()
 
virtual ~G4ElectroMagneticField ()
 
 G4ElectroMagneticField (const G4ElectroMagneticField &r)
 
G4ElectroMagneticFieldoperator= (const G4ElectroMagneticField &p)
 
- Public Member Functions inherited from G4Field
 G4Field (G4bool gravityOn=false)
 
 G4Field (const G4Field &)
 
virtual ~G4Field ()
 
G4Fieldoperator= (const G4Field &p)
 
G4bool IsGravityActive () const
 
void SetGravityActive (G4bool OnOffFlag)
 

Protected Member Functions

G4FieldManagerGetGlobalFieldManager ()
 

Detailed Description

Magnetic field class

A uniform 1 kilogauss field along the Z axis

History: Created: May 2007

Author
P. Arce

Definition at line 48 of file ExErrorMagneticField.hh.

Constructor & Destructor Documentation

ExErrorMagneticField::ExErrorMagneticField ( G4ThreeVector  fieldVector)

Definition at line 45 of file ExErrorMagneticField.cc.

46  : G4UniformMagField(fieldVector)
47 {
50 }
G4bool SetDetectorField(G4Field *detectorField)
G4UniformMagField(const G4ThreeVector &FieldVector)
G4FieldManager * GetGlobalFieldManager()
void CreateChordFinder(G4MagneticField *detectorMagField)

Here is the call graph for this function:

ExErrorMagneticField::ExErrorMagneticField ( )

Definition at line 37 of file ExErrorMagneticField.cc.

39 {
42 }
CLHEP::Hep3Vector G4ThreeVector
G4bool SetDetectorField(G4Field *detectorField)
G4UniformMagField(const G4ThreeVector &FieldVector)
G4FieldManager * GetGlobalFieldManager()
void CreateChordFinder(G4MagneticField *detectorMagField)

Here is the call graph for this function:

ExErrorMagneticField::~ExErrorMagneticField ( )

Definition at line 78 of file ExErrorMagneticField.cc.

79 {
80 }

Member Function Documentation

G4FieldManager * ExErrorMagneticField::GetGlobalFieldManager ( )
protected

Definition at line 83 of file ExErrorMagneticField.cc.

84 {
86 }
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const

Here is the call graph for this function:

Here is the caller graph for this function:

void ExErrorMagneticField::SetFieldValue ( G4double  fieldValue)

Definition at line 53 of file ExErrorMagneticField.cc.

54 {
56 
57 }
void SetFieldValue(const G4ThreeVector &newFieldValue)
CLHEP::Hep3Vector G4ThreeVector

Here is the call graph for this function:

Here is the caller graph for this function:

void ExErrorMagneticField::SetFieldValue ( G4ThreeVector  fieldVector)

Definition at line 60 of file ExErrorMagneticField.cc.

61 {
62  // Find the Field Manager for the global field
64 
65  if(fieldVector!=G4ThreeVector(0.,0.,0.))
66  {
68  fieldMgr->SetDetectorField(this);
69  } else {
70  // If the new field's value is Zero, then it is best to
71  // insure that it is not used for propagation.
72  G4MagneticField* magField = NULL;
73  fieldMgr->SetDetectorField(magField);
74  }
75 }
void SetFieldValue(const G4ThreeVector &newFieldValue)
CLHEP::Hep3Vector G4ThreeVector
G4bool SetDetectorField(G4Field *detectorField)
G4FieldManager * GetGlobalFieldManager()

Here is the call graph for this function:


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