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

#include <ExN02MagneticField.hh>

Inheritance diagram for ExN02MagneticField:
Collaboration diagram for ExN02MagneticField:

Public Member Functions

 ExN02MagneticField (G4ThreeVector)
 
 ExN02MagneticField ()
 
 ~ExN02MagneticField ()
 
void SetMagFieldValue (G4double fieldValue)
 
void SetMagFieldValue (G4ThreeVector fieldVector)
 
G4ThreeVector GetConstantFieldValue ()
 
- 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

Definition at line 49 of file ExN02MagneticField.hh.

Constructor & Destructor Documentation

ExN02MagneticField::ExN02MagneticField ( G4ThreeVector  fieldVector)

Definition at line 52 of file ExN02MagneticField.cc.

53  : G4UniformMagField(fieldVector)
54 {
57 }
G4FieldManager * GetGlobalFieldManager()
G4bool SetDetectorField(G4Field *detectorField)
G4UniformMagField(const G4ThreeVector &FieldVector)
void CreateChordFinder(G4MagneticField *detectorMagField)

Here is the call graph for this function:

ExN02MagneticField::ExN02MagneticField ( )

Definition at line 43 of file ExN02MagneticField.cc.

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

Here is the call graph for this function:

ExN02MagneticField::~ExN02MagneticField ( )

Definition at line 61 of file ExN02MagneticField.cc.

62 {
63 }

Member Function Documentation

G4ThreeVector ExN02MagneticField::GetConstantFieldValue ( )
G4FieldManager * ExN02MagneticField::GetGlobalFieldManager ( )
protected

Definition at line 97 of file ExN02MagneticField.cc.

98 {
100 }
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const

Here is the call graph for this function:

Here is the caller graph for this function:

void ExN02MagneticField::SetMagFieldValue ( G4double  fieldValue)

Definition at line 69 of file ExN02MagneticField.cc.

70 {
71  SetMagFieldValue(G4ThreeVector(fieldValue,0,0));
72 }
CLHEP::Hep3Vector G4ThreeVector
void SetMagFieldValue(G4double fieldValue)

Here is the caller graph for this function:

void ExN02MagneticField::SetMagFieldValue ( G4ThreeVector  fieldVector)

Definition at line 78 of file ExN02MagneticField.cc.

79 {
80  // Find the Field Manager for the global field
82 
83  if(fieldVector!=G4ThreeVector(0.,0.,0.))
84  {
85  SetFieldValue(fieldVector);
86  fieldMgr->SetDetectorField(this);
87  } else {
88  // If the new field's value is Zero, then it is best to
89  // insure that it is not used for propagation.
90  G4MagneticField* magField = 0;
91  fieldMgr->SetDetectorField(magField);
92  }
93 }
G4FieldManager * GetGlobalFieldManager()
void SetFieldValue(const G4ThreeVector &newFieldValue)
CLHEP::Hep3Vector G4ThreeVector
G4bool SetDetectorField(G4Field *detectorField)

Here is the call graph for this function:


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