/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/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

typedef HepGeom::Point3D<double> HepPoint3D

Definition at line 23 of file Bfield.cxx.


Function Documentation

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

Definition at line 403 of file Bfield.cxx.

References Bfield::fieldMap(), and Bfield::getBfield().

00403                                                                     {
00404   Bfield *thisMap = Bfield::getBfield(*imap);
00405   // std::cout << " > accessing Bfield class from fortran routine." << std::endl;
00406   if( thisMap != 0 ) {
00407     thisMap->fieldMap(pos,field);
00408     *error = 0;
00409   }
00410   else *error = 1;
00411   return;
00412 }

void init_bfield_ ( int *  imap  ) 

Definition at line 391 of file Bfield.cxx.

References Bfield::getBfield().

00391                              {
00392   // create Bfiled map ID = imap
00393   //  Bfield *thisMap = Bfield::getBfield(*imap);
00394   (void) Bfield::getBfield(*imap);
00395   // It is OK even though 'thisMap' losts its scope at here.
00396   // Because address of field map is not deleted from memory
00397   // due to static linkaged Bfield class.
00398   return;
00399 }


Generated on Tue Nov 29 23:16:53 2016 for BOSS_7.0.2 by  doxygen 1.4.7