ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4UniformMagField Class Reference

#include <geant4/tree/geant4-10.6-release/source/geometry/magneticfield/include/G4UniformMagField.hh>

+ Inheritance diagram for G4UniformMagField:
+ Collaboration diagram for G4UniformMagField:

Public Member Functions

 G4UniformMagField (const G4ThreeVector &FieldVector)
 
 G4UniformMagField (G4double vField, G4double vTheta, G4double vPhi)
 
virtual ~G4UniformMagField () override
 
 G4UniformMagField (const G4UniformMagField &p)
 
G4UniformMagFieldoperator= (const G4UniformMagField &p)
 
virtual void GetFieldValue (const G4double yTrack[4], G4double *MagField) const overridefinal
 
void SetFieldValue (const G4ThreeVector &newFieldValue)
 
G4ThreeVector GetConstantFieldValue () const
 
virtual G4FieldClone () const override
 
- 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 G4Field
 G4Field (G4bool gravityOn=false)
 
 G4Field (const G4Field &)
 
virtual ~G4Field ()
 
G4Fieldoperator= (const G4Field &p)
 
G4bool IsGravityActive () const
 
void SetGravityActive (G4bool OnOffFlag)
 

Private Attributes

G4double fFieldComponents [3]
 

Additional Inherited Members

- Static Public Attributes inherited from G4Field
static constexpr G4int MAX_NUMBER_OF_COMPONENTS = 24
 

Detailed Description

Definition at line 41 of file G4UniformMagField.hh.

View newest version in sPHENIX GitHub at line 41 of file G4UniformMagField.hh

Constructor & Destructor Documentation

G4UniformMagField::G4UniformMagField ( const G4ThreeVector FieldVector)

Definition at line 34 of file G4UniformMagField.cc.

View newest version in sPHENIX GitHub at line 34 of file G4UniformMagField.cc

References fFieldComponents, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().

Referenced by Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UniformMagField::G4UniformMagField ( G4double  vField,
G4double  vTheta,
G4double  vPhi 
)

Definition at line 80 of file G4UniformMagField.cc.

View newest version in sPHENIX GitHub at line 80 of file G4UniformMagField.cc

References FatalException, fFieldComponents, G4Exception(), pi, and twopi.

+ Here is the call graph for this function:

G4UniformMagField::~G4UniformMagField ( )
overridevirtual

Definition at line 41 of file G4UniformMagField.cc.

View newest version in sPHENIX GitHub at line 41 of file G4UniformMagField.cc

G4UniformMagField::G4UniformMagField ( const G4UniformMagField p)

Definition at line 45 of file G4UniformMagField.cc.

View newest version in sPHENIX GitHub at line 45 of file G4UniformMagField.cc

References fFieldComponents.

Member Function Documentation

G4Field * G4UniformMagField::Clone ( ) const
overridevirtual

Reimplemented from G4Field.

Definition at line 65 of file G4UniformMagField.cc.

View newest version in sPHENIX GitHub at line 65 of file G4UniformMagField.cc

References fFieldComponents, and G4UniformMagField().

+ Here is the call graph for this function:

G4ThreeVector G4UniformMagField::GetConstantFieldValue ( ) const

Definition at line 123 of file G4UniformMagField.cc.

View newest version in sPHENIX GitHub at line 123 of file G4UniformMagField.cc

References B(), and fFieldComponents.

Referenced by export_G4UniformMagField(), and G4GlobalMagFieldMessenger::GetFieldValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UniformMagField::GetFieldValue ( const G4double  yTrack[4],
G4double MagField 
) const
finaloverridevirtual

Implements G4MagneticField.

Definition at line 115 of file G4UniformMagField.cc.

View newest version in sPHENIX GitHub at line 115 of file G4UniformMagField.cc

References fFieldComponents.

G4UniformMagField & G4UniformMagField::operator= ( const G4UniformMagField p)

Definition at line 54 of file G4UniformMagField.cc.

View newest version in sPHENIX GitHub at line 54 of file G4UniformMagField.cc

References fFieldComponents, and G4MagneticField::operator=().

+ Here is the call graph for this function:

void G4UniformMagField::SetFieldValue ( const G4ThreeVector newFieldValue)

Definition at line 73 of file G4UniformMagField.cc.

View newest version in sPHENIX GitHub at line 73 of file G4UniformMagField.cc

References fFieldComponents, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().

Referenced by export_G4UniformMagField(), G4GlobalMagFieldMessenger::SetField(), ExErrorMagneticField::SetFieldValue(), ExP01MagneticField::SetFieldValue(), and ExN02MagneticField::SetMagFieldValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4double G4UniformMagField::fFieldComponents[3]
private

Definition at line 70 of file G4UniformMagField.hh.

View newest version in sPHENIX GitHub at line 70 of file G4UniformMagField.hh

Referenced by Clone(), G4UniformMagField(), GetConstantFieldValue(), GetFieldValue(), operator=(), and SetFieldValue().


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