OneOverRBField Class Reference

Inheritance diagram for OneOverRBField:
BField BField

List of all members.

Public Member Functions

 OneOverRBField ()
 ~OneOverRBField ()
TVector3 GetBField (TVector3 &xyz)
 OneOverRBField ()
 ~OneOverRBField ()
TVector3 GetBField (TVector3 &xyz)

Detailed Description

Definition at line 41 of file TestSwimmer.cxx.


Constructor & Destructor Documentation

OneOverRBField::OneOverRBField (  )  [inline]

Definition at line 44 of file TestSwimmer.cxx.

00044 { }

OneOverRBField::~OneOverRBField (  )  [inline]

Definition at line 45 of file TestSwimmer.cxx.

00045 { }

OneOverRBField::OneOverRBField (  )  [inline]

Definition at line 40 of file TestSwimParticle.cxx.

References BField::fCache, and BField::fHandler.

00041   { 
00042     BField::fHandler = 0;
00043     BField::fCache = 0;
00044   }

OneOverRBField::~OneOverRBField (  )  [inline]

Definition at line 45 of file TestSwimParticle.cxx.

00045 { }


Member Function Documentation

TVector3 OneOverRBField::GetBField ( TVector3 &  xyz  )  [inline]

Definition at line 46 of file TestSwimParticle.cxx.

References Munits::cm, Munits::meter, and Munits::tesla.

00046                                     {
00047     double r = sqrt(xyz.X()*xyz.X()+xyz.Y()*xyz.Y());
00048     if (r>10.0*Munits::cm) {
00049       // 1/r field which is 1.5 tesla at 2 meters (~MINOS field)
00050       double bx =  (1.5*Munits::tesla)*(2.0*Munits::meter/r)*(xyz.Y()/r);
00051       double by = -(1.5*Munits::tesla)*(2.0*Munits::meter/r)*(xyz.X()/r);
00052       return TVector3(bx,by,0.0);
00053     }
00054     else {
00055       return TVector3(0.0,0.0,0.0);
00056     }
00057   }

TVector3 OneOverRBField::GetBField ( TVector3 &  xyz  )  [inline]

Definition at line 46 of file TestSwimmer.cxx.

References Munits::cm, Munits::meter, and Munits::tesla.

00046                                     {
00047     double r = sqrt(xyz.X()*xyz.X()+xyz.Y()*xyz.Y());
00048     if (r>10.0*Munits::cm) {
00049       // 1/r field which is 1.5 tesla at 2 meters (~MINOS field)
00050       double bx =  (1.5*Munits::tesla)*(2.0*Munits::meter/r)*(xyz.Y()/r);
00051       double by = -(1.5*Munits::tesla)*(2.0*Munits::meter/r)*(xyz.X()/r);
00052       return TVector3(bx,by,0.0);
00053     }
00054     else {
00055       return TVector3(0.0,0.0,0.0);
00056     }
00057   }


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

Generated on 15 Jul 2018 for loon by  doxygen 1.6.1