BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Bfield.cxx File Reference
#include "KalFitAlg/coil/Bfield.h"
#include "CLHEP/Geometry/Point3D.h"
#include "CLHEP/Matrix/Matrix.h"
#include "CLHEP/Matrix/SymMatrix.h"
#include "CLHEP/Matrix/Vector.h"
#include "CLHEP/Vector/ThreeVector.h"

Go to the source code of this file.

Typedefs

typedef HepGeom::Point3D< double > HepPoint3D

Functions

void init_bfield_ (int *imap)
void get_bfield_ (int *imap, double *pos, double *field, int *error)

Typedef Documentation

◆ HepPoint3D

typedef HepGeom::Point3D<double> HepPoint3D

Definition at line 21 of file KalFitAlg/src/coil/Bfield.cxx.

Function Documentation

◆ get_bfield_()

void get_bfield_ ( int * imap,
double * pos,
double * field,
int * error )

Definition at line 423 of file KalFitAlg/src/coil/Bfield.cxx.

423 {
424 Bfield* thisMap = Bfield::getBfield( *imap );
425 // std::cout << " > accessing Bfield class from fortran routine." << std::endl;
426 if ( thisMap != 0 )
427 {
428 thisMap->fieldMap( pos, field );
429 *error = 0;
430 }
431 else *error = 1;
432 return;
433}
static Bfield * getBfield(int)
returns Bfield object.
const Hep3Vector & fieldMap(double x, double y, double z) const
returns B field

◆ init_bfield_()

void init_bfield_ ( int * imap)

Definition at line 412 of file KalFitAlg/src/coil/Bfield.cxx.

412 {
413 // create Bfiled map ID = imap
414 // Bfield *thisMap = Bfield::getBfield(*imap);
415 (void)Bfield::getBfield( *imap );
416 // It is OK even though 'thisMap' losts its scope at here.
417 // Because address of field map is not deleted from memory
418 // due to static linkaged Bfield class.
419 return;
420}