19 if (gClassTable->GetID(
"TTable") < 0) gSystem->Load(
"libStar");
20 gSystem->Load(
"St_base");
21 gSystem->Load(
"StChain");
22 gSystem->Load(
"St_Tables");
23 gSystem->Load(
"StUtilities");
24 gSystem->Load(
"StarMagField");
25 gSystem->Load(
"StMagF");
26 gSystem->Load(
"StDetectorDbMaker.so");
27 gSystem->Load(
"StTpcDb");
28 gSystem->Load(
"StDbUtilities");
29 gSystem->Load(
"StDbLib");
30 gSystem->Load(
"StDbBroker");
31 gSystem->Load(
"St_db_Maker");
32 gSystem->Load(
"StarClassLibrary");
33 gSystem->Load(
"StEvent");
34 gSystem->Load(
"StFtpcLaserMaker");
35 gSystem->Load(
"libftpc_Tables");
36 gSystem->Load(
"StFtpcClusterMaker");
37 gSystem->Load(
"StFtpcTrackMaker");
44 Float_t pt[3] =
new Float_t;
45 Float_t B[3] =
new Float_t;
77 cout<<
"2D B-field :"<<endl;
78 magf->BField(&pt[],&B[]);
81 printf(
" xyz = %7.2f %7.2f %7.2f Bxyz= %7.4f %7.4f %7.4f \n", pt[0],pt[1],pt[2],B[0],B[1],B[2]);
87 for (
int k=0;k<31;k++)
90 magf->BrBzField(r,z,Br,Bz);
100 for (
int i=0;i<3;i++)
106 cout<<
"3D B-field :"<<endl;
107 magf->B3DField(&pt[],&B[]);
111 printf(
" xyz = %7.2f %7.2f %7.2f Bxyz= %7.4f %7.4f %7.4f \n", pt[0],pt[1],pt[2],B[0],B[1],B[2]);