AliRoot Core  3dc7879 (3dc7879)
AliMagF Class Reference

#include <AliMagF.h>

Inheritance diagram for AliMagF:

Public Types

enum  BMap_t { k2kG, k5kG, k5kGUniform }
 
enum  BeamType_t {
  kNoBeamField, kBeamTypepp, kBeamTypeAA, kBeamTypepA,
  kBeamTypeAp
}
 
enum  PolarityConvention_t { kConvLHC, kConvDCS2008, kConvMap2005 }
 
enum  { kOverrideGRP =BIT(14) }
 

Public Member Functions

 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 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 ()
 

Protected Member Functions

void InitMachineField (BeamType_t btype, Double_t benergy, float a2z=1.0)
 
void SetBeamType (BeamType_t type)
 
void SetBeamEnergy (Float_t energy)
 

Protected Attributes

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

static const Double_t fgkSol2DipZ = -700.
 
static const UShort_t fgkPolarityConvention = AliMagF::kConvLHC
 
static Bool_t fgAllowFastField = kFALSE
 

Detailed Description

Definition at line 20 of file AliMagF.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kOverrideGRP 

Definition at line 26 of file AliMagF.h.

Enumerator
kNoBeamField 
kBeamTypepp 
kBeamTypeAA 
kBeamTypepA 
kBeamTypeAp 

Definition at line 24 of file AliMagF.h.

Enumerator
k2kG 
k5kG 
k5kGUniform 

Definition at line 23 of file AliMagF.h.

Enumerator
kConvLHC 
kConvDCS2008 
kConvMap2005 

Definition at line 25 of file AliMagF.h.

Constructor & Destructor Documentation

AliMagF::AliMagF ( )

Definition at line 69 of file AliMagF.cxx.

Referenced by CreateFieldMap().

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" 
)

Definition at line 97 of file AliMagF.cxx.

AliMagF::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" 
)

Definition at line 160 of file AliMagF.cxx.

AliMagF::AliMagF ( const AliMagF src)

Definition at line 223 of file AliMagF.cxx.

AliMagF::~AliMagF ( )
virtual

Definition at line 249 of file AliMagF.cxx.

Member Function Documentation

void AliMagF::AllowFastField ( Bool_t  v = kTRUE)

Definition at line 690 of file AliMagF.cxx.

Referenced by AliMagF().

AliMagF * AliMagF::CreateFieldMap ( 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
Double_t AliMagF::Factor ( ) const
inline

Definition at line 54 of file AliMagF.h.

Double_t AliMagF::GetBeamEnergy ( ) const
inline

Definition at line 63 of file AliMagF.h.

BeamType_t AliMagF::GetBeamType ( ) const
inline

Definition at line 61 of file AliMagF.h.

const char * AliMagF::GetBeamTypeText ( ) const

Definition at line 654 of file AliMagF.cxx.

Referenced by GetBeamType(), and Print().

Double_t AliMagF::GetBz ( const Double_t *  xyz) const

Definition at line 296 of file AliMagF.cxx.

Referenced by AliMagF(), AliTrackerBase::GetBz(), and AliVTrack::GetBz().

Double_t AliMagF::GetCurrentDip ( ) const
inline

Definition at line 56 of file AliMagF.h.

Referenced by AliReconstruction::ProcessEvent().

Double_t AliMagF::GetCurrentSol ( ) const
inline

Definition at line 55 of file AliMagF.h.

Referenced by AliReconstruction::ProcessEvent().

Char_t* AliMagF::GetDataFileName ( ) const
inline

Definition at line 69 of file AliMagF.h.

Referenced by LoadParameterization(), and Print().

Double_t AliMagF::GetFactorDip ( ) const
Double_t AliMagF::GetFactorSol ( ) const
AliMagFast* AliMagF::GetFastField ( ) const
inline

Definition at line 46 of file AliMagF.h.

static Bool_t AliMagF::GetFastFieldDefault ( )
inlinestatic

Definition at line 84 of file AliMagF.h.

Referenced by AliMagF().

BMap_t AliMagF::GetMapType ( ) const
inline

Definition at line 60 of file AliMagF.h.

AliMagWrapCheb* AliMagF::GetMeasuredMap ( ) const
inline

Definition at line 47 of file AliMagF.h.

Char_t* AliMagF::GetParamName ( ) const
inline

Definition at line 70 of file AliMagF.h.

Referenced by LoadParameterization(), and Print().

static Int_t AliMagF::GetPolarityConvention ( )
inlinestatic

Definition at line 76 of file AliMagF.h.

Referenced by CreateFieldMap().

void AliMagF::GetTPCInt ( const Double_t *  xyz,
Double_t *  b 
) const

Definition at line 459 of file AliMagF.cxx.

void AliMagF::GetTPCIntCyl ( const Double_t *  rphiz,
Double_t *  b 
) const

Definition at line 481 of file AliMagF.cxx.

void AliMagF::GetTPCRatInt ( const Double_t *  xyz,
Double_t *  b 
) const
void AliMagF::GetTPCRatIntCyl ( const Double_t *  rphiz,
Double_t *  b 
) const

Definition at line 493 of file AliMagF.cxx.

void AliMagF::InitMachineField ( BeamType_t  btype,
Double_t  benergy,
float  a2z = 1.0 
)
protected

Definition at line 339 of file AliMagF.cxx.

Referenced by AliMagF(), and GetFastFieldDefault().

Int_t AliMagF::Integ ( ) const
inline

Definition at line 65 of file AliMagF.h.

Bool_t AliMagF::LoadParameterization ( )

Definition at line 256 of file AliMagF.cxx.

Referenced by AliMagF(), SetParamName(), and AliReconstruction::SlaveBegin().

void AliMagF::MachineField ( const Double_t *  x,
Double_t *  b 
) const

Definition at line 367 of file AliMagF.cxx.

Referenced by Field(), and IsUniform().

Double_t AliMagF::Max ( ) const
inline

Definition at line 64 of file AliMagF.h.

AliMagF & AliMagF::operator= ( const AliMagF src)

Definition at line 312 of file AliMagF.cxx.

Int_t AliMagF::PrecInteg ( ) const
inline

Definition at line 66 of file AliMagF.h.

void AliMagF::Print ( Option_t *  opt) const
virtual

Definition at line 673 of file AliMagF.cxx.

Referenced by AliMagF(), AliTPCExBBShape::Print(), and SetParamName().

void AliMagF::SetBeamEnergy ( Float_t  energy)
inlineprotected

Definition at line 90 of file AliMagF.h.

void AliMagF::SetBeamType ( BeamType_t  type)
inlineprotected

Definition at line 89 of file AliMagF.h.

void AliMagF::SetDataFileName ( const Char_t *  nm)
inline

Definition at line 71 of file AliMagF.h.

Referenced by AliMagF().

void AliMagF::SetFactorDip ( Float_t  fc = 1.)

Definition at line 517 of file AliMagF.cxx.

Referenced by AliMagF(), and GetMeasuredMap().

void AliMagF::SetFactorSol ( Float_t  fc = 1.)

Definition at line 505 of file AliMagF.cxx.

Referenced by AliMagF(), and GetMeasuredMap().

static void AliMagF::SetFastFieldDefault ( Bool_t  v)
inlinestatic

Definition at line 83 of file AliMagF.h.

void AliMagF::SetParamName ( const Char_t *  nm)
inline

Definition at line 72 of file AliMagF.h.

Referenced by AliMagF().

Member Data Documentation

Double_t AliMagF::fACorr1Field
protected

Definition at line 110 of file AliMagF.h.

Referenced by InitMachineField(), and MachineField().

Double_t AliMagF::fACorr2Field
protected

Definition at line 111 of file AliMagF.h.

Referenced by InitMachineField(), and MachineField().

Double_t AliMagF::fBeamEnergy
protected

Definition at line 98 of file AliMagF.h.

Referenced by AliMagF(), GetBeamEnergy(), operator=(), Print(), and SetBeamEnergy().

BeamType_t AliMagF::fBeamType
protected

Definition at line 97 of file AliMagF.h.

Referenced by AliMagF(), GetBeamType(), GetBeamTypeText(), operator=(), and SetBeamType().

Double_t AliMagF::fCCorrField
protected

Definition at line 109 of file AliMagF.h.

Referenced by InitMachineField(), and MachineField().

Double_t AliMagF::fDipoleField
protected

Definition at line 108 of file AliMagF.h.

Referenced by InitMachineField(), MachineField(), and Print().

Bool_t AliMagF::fDipoleOFF
protected

Definition at line 105 of file AliMagF.h.

Referenced by AliMagF(), Field(), GetBz(), operator=(), and Print().

Double_t AliMagF::fFactorDip
protected

Definition at line 103 of file AliMagF.h.

Referenced by Field(), GetBz(), GetFactorDip(), MachineField(), operator=(), and SetFactorDip().

Double_t AliMagF::fFactorSol
protected
AliMagFast* AliMagF::fFastField
protected

Measured part of the field map.

Definition at line 94 of file AliMagF.h.

Referenced by AliMagF(), AllowFastField(), Field(), GetBz(), GetFastField(), operator=(), SetFactorSol(), and ~AliMagF().

Bool_t AliMagF::fgAllowFastField = kFALSE
staticprotected

Definition at line 117 of file AliMagF.h.

Referenced by GetFastFieldDefault(), and SetFastFieldDefault().

const UShort_t AliMagF::fgkPolarityConvention = AliMagF::kConvLHC
staticprotected
const Double_t AliMagF::fgkSol2DipZ = -700.
staticprotected

Definition at line 115 of file AliMagF.h.

Referenced by Field(), and GetBz().

Int_t AliMagF::fInteg
protected

Definition at line 100 of file AliMagF.h.

Referenced by AliMagF(), Integ(), and operator=().

BMap_t AliMagF::fMapType
protected

optional fast param

Definition at line 95 of file AliMagF.h.

Referenced by AliMagF(), AllowFastField(), GetCurrentSol(), GetMapType(), IsUniform(), and Print().

Double_t AliMagF::fMax
protected

Definition at line 104 of file AliMagF.h.

Referenced by Max(), and operator=().

TNamed AliMagF::fParNames
protected

Definition at line 113 of file AliMagF.h.

Referenced by GetDataFileName(), GetParamName(), operator=(), SetDataFileName(), and SetParamName().

Int_t AliMagF::fPrecInteg
protected

Definition at line 101 of file AliMagF.h.

Referenced by AliMagF(), operator=(), and PrecInteg().

Double_t AliMagF::fQuadGradient
protected

Definition at line 107 of file AliMagF.h.

Referenced by InitMachineField(), MachineField(), and Print().

Double_t AliMagF::fSolenoid
protected

Definition at line 96 of file AliMagF.h.

Referenced by AliMagF(), operator=(), and SolenoidField().


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