AliRoot Core  3dc7879 (3dc7879)
AliMagFDraw Class Reference
Inheritance diagram for AliMagFDraw:

Public Member Functions

 AliMagFDraw ()
 
- Public Member Functions inherited from AliMagF
 AliMagF ()
 
 AliMagF (const char *name, const char *title, Double_t factorSol=1., Double_t factorDip=1., BMap_t maptype=k5kG, BeamType_t btype=kBeamTypepp, Double_t benergy=-1, float a2z=1.0, Int_t integ=2, Double_t fmax=15, const char *path="$(ALICE_ROOT)/data/maps/mfchebKGI_sym.root")
 
 AliMagF (const char *name, const char *title, Double_t factorSol, Double_t factorDip, BMap_t maptype, BeamType_t btype, Double_t benergy, Int_t integ, Double_t fmax, const char *path="$(ALICE_ROOT)/data/maps/mfchebKGI_sym.root")
 
 AliMagF (const AliMagF &src)
 
AliMagFoperator= (const AliMagF &src)
 
virtual ~AliMagF ()
 
virtual void Field (const Double_t *x, Double_t *b)
 
void GetTPCInt (const Double_t *xyz, Double_t *b) const
 
void GetTPCRatInt (const Double_t *xyz, Double_t *b) const
 
void GetTPCIntCyl (const Double_t *rphiz, Double_t *b) const
 
void GetTPCRatIntCyl (const Double_t *rphiz, Double_t *b) const
 
Double_t GetBz (const Double_t *xyz) const
 
void AllowFastField (Bool_t v=kTRUE)
 
AliMagFastGetFastField () const
 
AliMagWrapChebGetMeasuredMap () const
 
void SetFactorSol (Float_t fc=1.)
 
void SetFactorDip (Float_t fc=1.)
 
Double_t GetFactorSol () const
 
Double_t GetFactorDip () const
 
Double_t Factor () const
 
Double_t GetCurrentSol () const
 
Double_t GetCurrentDip () const
 
Bool_t IsUniform () const
 
void MachineField (const Double_t *x, Double_t *b) const
 
BMap_t GetMapType () const
 
BeamType_t GetBeamType () const
 
const char * GetBeamTypeText () const
 
Double_t GetBeamEnergy () const
 
Double_t Max () const
 
Int_t Integ () const
 
Int_t PrecInteg () const
 
Double_t SolenoidField () const
 
Char_t * GetDataFileName () const
 
Char_t * GetParamName () const
 
void SetDataFileName (const Char_t *nm)
 
void SetParamName (const Char_t *nm)
 
virtual void Print (Option_t *opt) const
 
Bool_t LoadParameterization ()
 

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 Member Functions inherited from AliMagF
static Int_t GetPolarityConvention ()
 
static AliMagFCreateFieldMap (Float_t l3Current=-30000., Float_t diCurrent=-6000., Int_t convention=0, Bool_t uniform=kFALSE, Float_t beamenergy=7000, const Char_t *btype="pp", int az0=0, int az1=0, const Char_t *path="$(ALICE_ROOT)/data/maps/mfchebKGI_sym.root", Bool_t returnNullOnInvalidCurrent=kFALSE)
 
static void SetFastFieldDefault (Bool_t v)
 
static Bool_t GetFastFieldDefault ()
 

Static Public Attributes

static TObjArray fgArray
 

Additional Inherited Members

- Public Types inherited from AliMagF
enum  BMap_t { k2kG, k5kG, k5kGUniform }
 
enum  BeamType_t {
  kNoBeamField, kBeamTypepp, kBeamTypeAA, kBeamTypepA,
  kBeamTypeAp
}
 
enum  PolarityConvention_t { kConvLHC, kConvDCS2008, kConvMap2005 }
 
enum  { kOverrideGRP =BIT(14) }
 
- Protected Member Functions inherited from AliMagF
void InitMachineField (BeamType_t btype, Double_t benergy, float a2z=1.0)
 
void SetBeamType (BeamType_t type)
 
void SetBeamEnergy (Float_t energy)
 
- Protected Attributes inherited from AliMagF
AliMagWrapChebfMeasuredMap
 
AliMagFastfFastField
 Measured part of the field map. More...
 
BMap_t fMapType
 optional fast param More...
 
Double_t fSolenoid
 
BeamType_t fBeamType
 
Double_t fBeamEnergy
 
Int_t fInteg
 
Int_t fPrecInteg
 
Double_t fFactorSol
 
Double_t fFactorDip
 
Double_t fMax
 
Bool_t fDipoleOFF
 
Double_t fQuadGradient
 
Double_t fDipoleField
 
Double_t fCCorrField
 
Double_t fACorr1Field
 
Double_t fACorr2Field
 
TNamed fParNames
 
- Static Protected Attributes inherited from AliMagF
static const Double_t fgkSol2DipZ = -700.
 
static const UShort_t fgkPolarityConvention = AliMagF::kConvLHC
 
static Bool_t fgAllowFastField = kFALSE
 

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.

Referenced by AliMagFDraw().

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 AliMagFDraw(), and 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 AliMagFDraw(), and 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.

Referenced by AliMagFDraw().

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.

Referenced by AliMagFDraw().

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 AliMagFDraw(), and Fit().

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

add the filed to the list

Definition at line 86 of file AliMagFDraw.cxx.

Referenced by AliMagFDraw().

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: