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