AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMagFDraw Class Reference
Inheritance diagram for AliMagFDraw:

Public Member Functions

 AliMagFDraw ()
 

Static Public Member Functions

static void RegisterField (Int_t index, AliMagF *magf)
 
static Double_t GetBx (Double_t r, Double_t phi, Double_t z, Int_t index=0)
 
static Double_t GetBy (Double_t r, Double_t phi, Double_t z, Int_t index=0)
 
static Double_t GetBz (Double_t r, Double_t phi, Double_t z, Int_t index=0)
 
static Double_t GetBr (Double_t r, Double_t phi, Double_t z, Int_t index=0)
 
static Double_t GetBrfi (Double_t r, Double_t phi, Double_t z, Int_t index=0)
 
static TObjArrayFit (const char *formula, Int_t index=0)
 

Static Public Attributes

static TObjArray fgArray
 

Detailed Description

.L $ALICE_ROOT/TPC/macros/AliMagFDraw.cxx+
draw.RegisterField(0,new AliMagWrapCheb("Maps","Maps", 2, 1., 10., AliMagWrapCheb::k5kG));
draw.RegisterField(1,new AliMagFMaps("Maps","Maps", 2, 1., 10., 2));
TF2 fbz_rz_0pi("fbz_rz_0pi","AliMagFDraw::GetBz(x,0*pi,y)",0,250,-250,250);
fbz_rz_0pi->Draw("surf2");
TF1 fbz_z_90_00pi("fbz_z_90_00pi","AliMagFDraw::GetBz(90,0*pi,x)",-250,250);
TF1 fbz_z_90_05pi("fbz_z_90_05pi","AliMagFDraw::GetBz(90,0.5*pi,x)",-250,250);
TF1 fbz_z_90_10pi("fbz_z_90_10pi","AliMagFDraw::GetBz(90,1.0*pi,x)",-250,250);
TF1 fbz_z_90_15pi("fbz_z_90_15pi","AliMagFDraw::GetBz(90,1.5*pi,x)",-250,250);
fbz_z_90_00pi->SetLineColor(2);
fbz_z_90_05pi->SetLineColor(3);
fbz_z_90_10pi->SetLineColor(4);
fbz_z_90_15pi->SetLineColor(5);
fbz_z_90_00pi->Draw()
fbz_z_90_05pi->Draw("same")
fbz_z_90_15pi->Draw("same")
fbz_z_90_10pi->Draw("same")
TF1 fbr_z_90_00pi("fbz_z_90_00pi","AliMagFDraw::GetBr(90,0*pi,x)",-250,250);
TF1 fbr_z_90_05pi("fbz_z_90_05pi","AliMagFDraw::GetBr(90,0.5*pi,x)",-250,250);
TF1 fbr_z_90_10pi("fbz_z_90_10pi","AliMagFDraw::GetBr(90,1.0*pi,x)",-250,250);
TF1 fbr_z_90_15pi("fbz_z_90_15pi","AliMagFDraw::GetBr(90,1.5*pi,x)",-250,250);
fbr_z_90_00pi->SetLineColor(2);
fbr_z_90_05pi->SetLineColor(3);
fbr_z_90_10pi->SetLineColor(4);
fbr_z_90_15pi->SetLineColor(5);
fbr_z_90_00pi->Draw()
fbr_z_90_05pi->Draw("same")
fbr_z_90_15pi->Draw("same")
fbr_z_90_10pi->Draw("same")
TF2 fbz_xy_0z("fbz_xy_0z","AliMagFDraw::GetBz(sqrt(x^2+y^2),atan2(y,x),0)",-250,250,-250,250);
fbz_xy_0z.SetNpy(100);
fbz_xy_0z.SetNpx(100);
fbz_xy_0z->Draw("colz");
TF2 fbz_xy_250z("fbz_xy_250z","AliMagFDraw::GetBz(sqrt(x^2+y^2),atan2(y,x),250)",-250,250,-250,250);
fbz_xy_250z.SetNpy(100);
fbz_xy_250z.SetNpx(100)
fbz_xy_250z->Draw("colz");
TF2 fbz_xy_m250z("fbz_xy_m250z","AliMagFDraw::GetBz(sqrt(x^2+y^2),atan2(y,x),-250)",-250,250,-250,250);
fbz_xy_m250z.SetNpy(100);
fbz_xy_m250z.SetNpx(100)
fbz_xy_m250z->Draw("colz");

Definition at line 60 of file AliMagFDraw.cxx.

Constructor & Destructor Documentation

AliMagFDraw::AliMagFDraw ( )
inline

Definition at line 63 of file AliMagFDraw.cxx.

Member Function Documentation

TObjArray * AliMagFDraw::Fit ( const char *  formula,
Int_t  index = 0 
)
static

formula=1++x+x^2++cos(y)++cos(y)^2++z++z^2 index=0

Definition at line 161 of file AliMagFDraw.cxx.

Double_t AliMagFDraw::GetBr ( Double_t  r,
Double_t  phi,
Double_t  z,
Int_t  index = 0 
)
static

Definition at line 132 of file AliMagFDraw.cxx.

Referenced by Fit().

Double_t AliMagFDraw::GetBrfi ( Double_t  r,
Double_t  phi,
Double_t  z,
Int_t  index = 0 
)
static

Definition at line 146 of file AliMagFDraw.cxx.

Referenced by Fit().

Double_t AliMagFDraw::GetBx ( Double_t  r,
Double_t  phi,
Double_t  z,
Int_t  index = 0 
)
static

Definition at line 117 of file AliMagFDraw.cxx.

Double_t AliMagFDraw::GetBy ( Double_t  r,
Double_t  phi,
Double_t  z,
Int_t  index = 0 
)
static

Definition at line 104 of file AliMagFDraw.cxx.

Double_t AliMagFDraw::GetBz ( Double_t  r,
Double_t  phi,
Double_t  z,
Int_t  index = 0 
)
static

Definition at line 92 of file AliMagFDraw.cxx.

Referenced by Fit().

void AliMagFDraw::RegisterField ( Int_t  index,
AliMagF *  magf 
)
static

add the filed to the list

Definition at line 86 of file AliMagFDraw.cxx.

Member Data Documentation

TObjArray AliMagFDraw::fgArray
static

Definition at line 74 of file AliMagFDraw.cxx.

Referenced by GetBr(), GetBrfi(), GetBx(), GetBy(), and GetBz().


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