EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
genfit::Field Class Reference

Field Wrapper. More...

#include <fun4all_coresoftware/blob/master/offline/packages/PHGenFitPkg/GenFitExp/Field.h>

+ Inheritance diagram for genfit::Field:
+ Collaboration diagram for genfit::Field:

Public Member Functions

 Field (const PHField *field)
 
 ~Field () override
 
TVector3 get (const TVector3 &pos) const override
 return value at position
 
void get (const double &posX, const double &posY, const double &posZ, double &Bx, double &By, double &Bz) const override
 Get the magneticField [kGauss] at position.
 
const PHFieldget_field () const
 
void set_field (const PHField *field)
 
- Public Member Functions inherited from genfit::AbsBField
 AbsBField ()
 
virtual ~AbsBField ()
 

Private Attributes

const PHFieldfield_
 

Detailed Description

Field Wrapper.

Author
Haiwang Yu (New Mexico State University)

Definition at line 24 of file Field.h.

View newest version in sPHENIX GitHub at line 24 of file Field.h

Constructor & Destructor Documentation

genfit::Field::Field ( const PHField field)

Definition at line 17 of file Field.cc.

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

References field_.

genfit::Field::~Field ( )
inlineoverride

Definition at line 29 of file Field.h.

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

Member Function Documentation

TVector3 genfit::Field::get ( const TVector3 &  pos) const
overridevirtual

return value at position

Implements genfit::AbsBField.

Definition at line 121 of file Field.cc.

View newest version in sPHENIX GitHub at line 121 of file Field.cc

References Acts::IntegrationTest::Bz, x, y, and z.

void genfit::Field::get ( const double &  posX,
const double &  posY,
const double &  posZ,
double &  Bx,
double &  By,
double &  Bz 
) const
overridevirtual

Get the magneticField [kGauss] at position.

Override this in your concrete implementation.

Reimplemented from genfit::AbsBField.

Definition at line 133 of file Field.cc.

View newest version in sPHENIX GitHub at line 133 of file Field.cc

References Acts::UnitConstants::cm, field_, and PHField::GetFieldValue().

+ Here is the call graph for this function:

const PHField* genfit::Field::get_field ( ) const
inline

Definition at line 37 of file Field.h.

View newest version in sPHENIX GitHub at line 37 of file Field.h

References field_.

void genfit::Field::set_field ( const PHField field)
inline

Definition at line 42 of file Field.h.

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

References field_.

Member Data Documentation

const PHField* genfit::Field::field_
private

Definition at line 48 of file Field.h.

View newest version in sPHENIX GitHub at line 48 of file Field.h

Referenced by Field(), get(), get_field(), and set_field().


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