Bfld Class Reference

#include <Bfld.h>

Inheritance diagram for Bfld:

TestBfield List of all members.

Public Member Functions

 Bfld (int run=0, int subrun=0)
virtual ~Bfld ()
virtual void B (const double *xyz, double *Bxyz) const
void Bcomp (double x, double y, double z, double *Bx, double *By, double *Bz) const

Detailed Description

Definition at line 5 of file Bfld.h.


Constructor & Destructor Documentation

Bfld::Bfld ( int  run = 0,
int  subrun = 0 
)

Definition at line 4 of file Bfld.cxx.

References config_bfield().

00005 {
00006   static bool ifirst = true;
00007   if (ifirst && run==0 && subrun==0) {
00008     config_bfield(12000, 0);
00009     ifirst = false;
00010   }
00011   config_bfield(run, subrun);
00012 }

virtual Bfld::~Bfld (  )  [inline, virtual]

Definition at line 9 of file Bfld.h.

00009 {};


Member Function Documentation

void Bfld::B ( const double *  xyz,
double *  Bxyz 
) const [virtual]

Reimplemented in TestBfield.

Definition at line 16 of file Bfld.cxx.

References b_xyz().

Referenced by Bcomp().

00016 { b_xyz(xyz, Bxyz); }

void Bfld::Bcomp ( double  x,
double  y,
double  z,
double *  Bx,
double *  By,
double *  Bz 
) const

Definition at line 20 of file Bfld.cxx.

References B().

Referenced by Swimmer::GetBField().

00022 {
00023   static double xyz[3], Bxyz[3];
00024   xyz[0] = x; xyz[1] = y; xyz[2] = z;
00025   this->B(xyz, Bxyz);
00026   *Bx = Bxyz[0];
00027   *By = Bxyz[1];
00028   *Bz = Bxyz[2];
00029 }


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 08:03:58 2009 for MIPP(E907) by  doxygen 1.4.7