BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
KalFitAlg/KalFitAlg-00-07-55-p03/src/coil/Bfield.cxx File Reference
#include "KalFitAlg/coil/Bfield.h"
#include "CLHEP/Matrix/Vector.h"
#include "CLHEP/Matrix/Matrix.h"
#include "CLHEP/Matrix/SymMatrix.h"
#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Geometry/Point3D.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

Function Documentation

◆ get_bfield_()

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

Definition at line 403 of file KalFitAlg/KalFitAlg-00-07-55-p03/src/coil/Bfield.cxx.

403 {
404 Bfield *thisMap = Bfield::getBfield(*imap);
405 // std::cout << " > accessing Bfield class from fortran routine." << std::endl;
406 if( thisMap != 0 ) {
407 thisMap->fieldMap(pos,field);
408 *error = 0;
409 }
410 else *error = 1;
411 return;
412}
const Hep3Vector & fieldMap(double x, double y, double z) const
returns B field
static Bfield * getBfield(int)
returns Bfield object.
@ error
Definition: Core.h:24

◆ init_bfield_()

void init_bfield_ ( int *  imap)

Definition at line 391 of file KalFitAlg/KalFitAlg-00-07-55-p03/src/coil/Bfield.cxx.

391 {
392 // create Bfiled map ID = imap
393 // Bfield *thisMap = Bfield::getBfield(*imap);
394 (void) Bfield::getBfield(*imap);
395 // It is OK even though 'thisMap' losts its scope at here.
396 // Because address of field map is not deleted from memory
397 // due to static linkaged Bfield class.
398 return;
399}