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

PHG4MagneticField interfaces with Geant4. More...

#include <coresoftware/blob/master/simulation/g4simulation/g4main/PHG4MagneticField.h>

+ Inheritance diagram for PHG4MagneticField:
+ Collaboration diagram for PHG4MagneticField:

Public Member Functions

 PHG4MagneticField (const PHField *field)
 
 ~PHG4MagneticField () override
 
const PHFieldget_field () const
 
void set_field (const PHField *field)
 
void GetFieldValue (const double Point[4], double *Bfield) 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)
 
virtual G4FieldClone () const
 

Protected Attributes

const PHFieldfield_
 

Additional Inherited Members

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

Detailed Description

PHG4MagneticField interfaces with Geant4.

Definition at line 23 of file PHG4MagneticField.h.

View newest version in sPHENIX GitHub at line 23 of file PHG4MagneticField.h

Constructor & Destructor Documentation

PHG4MagneticField::PHG4MagneticField ( const PHField field)

Definition at line 17 of file PHG4MagneticField.cc.

View newest version in sPHENIX GitHub at line 17 of file PHG4MagneticField.cc

References field_.

PHG4MagneticField::~PHG4MagneticField ( )
override

Definition at line 23 of file PHG4MagneticField.cc.

View newest version in sPHENIX GitHub at line 23 of file PHG4MagneticField.cc

Member Function Documentation

const PHField* PHG4MagneticField::get_field ( ) const
inline

Definition at line 29 of file PHG4MagneticField.h.

View newest version in sPHENIX GitHub at line 29 of file PHG4MagneticField.h

References field_.

void PHG4MagneticField::GetFieldValue ( const double  Point[4],
double *  Bfield 
) const
overridevirtual

Implements G4MagneticField.

Definition at line 27 of file PHG4MagneticField.cc.

View newest version in sPHENIX GitHub at line 27 of file PHG4MagneticField.cc

References field_, and PHField::GetFieldValue().

+ Here is the call graph for this function:

void PHG4MagneticField::set_field ( const PHField field)
inline

Definition at line 34 of file PHG4MagneticField.h.

View newest version in sPHENIX GitHub at line 34 of file PHG4MagneticField.h

References field_.

Member Data Documentation

const PHField* PHG4MagneticField::field_
protected

Definition at line 42 of file PHG4MagneticField.h.

View newest version in sPHENIX GitHub at line 42 of file PHG4MagneticField.h

Referenced by get_field(), GetFieldValue(), PHG4MagneticField(), and set_field().


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