]> git.uio.no Git - u/mrichter/AliRoot.git/blame - Flugg/examples/fluggEx/MagSphereNotRep/src/ExN04Field.cc
Removing files for the new Flugg structure
[u/mrichter/AliRoot.git] / Flugg / examples / fluggEx / MagSphereNotRep / src / ExN04Field.cc
CommitLineData
21281598 1// $Id$
2// Flugg tag $Name$
3
4#include "ExN04Field.hh"
5
6ExN04Field::ExN04Field()
7{
8 Bz = 3.0*tesla;
9 rmax_sq = sqr(50.*cm);
10 zmax = 100.*cm;
11}
12
13ExN04Field::~ExN04Field()
14{;}
15
16void ExN04Field::GetFieldValue(const double Point[3],double *Bfield) const
17{
18 Bfield[0] = 0.;
19 Bfield[1] = 0.;
20 if(abs(Point[2])<zmax && (sqr(Point[0])+sqr(Point[1]))<rmax_sq)
21 { Bfield[2] = Bz; }
22 else
23 { Bfield[2] = 0.; }
24}
25