]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliMagFCheb.h
Removing the hard-wired particle masses (B. Hippolyte)
[u/mrichter/AliRoot.git] / STEER / AliMagFCheb.h
1 #ifndef ALIMAGFCHEB_H
2 #define ALIMAGFCHEB_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //
7 // Interface between the AliMagWrapCheb and AliMagF: set of magnetic field data + Tosca 
8 // parameterization by Chebyshev polynomials
9 // 
10 // Author: ruben.shahoyan@cern.ch
11 //
12
13 #include "AliMagFC.h"
14 class AliMagWrapCheb;
15
16
17 class AliMagFCheb : public AliMagFC
18 {
19 public:
20   enum constants {k2kG, k4kG, k5kG};
21   AliMagFCheb();
22   AliMagFCheb(const char *name, const char *title, Int_t integ,
23               Float_t factor=1, Float_t fmax=15, Int_t map = k2kG,
24               Bool_t dipoleON = kTRUE,
25               const char* path="$(ALICE_ROOT)/data/maps/mfchebKGI_sym.root");
26   AliMagFCheb(const AliMagFCheb& maps);             
27   AliMagFCheb& operator=(const AliMagFCheb& maps);
28   virtual ~AliMagFCheb();
29   //
30   virtual void Field(const Float_t *x, Float_t *b)              const;
31   virtual void Field(const Double_t *x, Double_t *b)            const;
32   virtual void GetTPCInt(const Float_t *xyz, Float_t *b)        const;
33   virtual void GetTPCIntCyl(const Float_t *rphiz, Float_t *b)   const;
34   //
35   AliMagWrapCheb* GetMeasuredMap()                              const {return fMeasuredMap;}
36   void SetMeasuredMap(AliMagWrapCheb* parm);
37   virtual Float_t SolenoidField()                               const {return -Factor()*fSolenoid;}
38   //
39  protected:
40   AliMagWrapCheb* fMeasuredMap;     // Measured part of the field map
41   Float_t         fSolenoid;        // Solenoid field setting
42   //   
43   ClassDef(AliMagFCheb, 2)       // Class for all Alice MagField wrapper for measured data + Tosca parameterization
44 };
45
46
47 #endif