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 */
7 // Wrapper for AliMagFCheb: set of magnetic field data + Tosca parameterization by Chebyshev polynomials
9 // Author: ruben.shahoyan@cern.ch
13 #include "AliMagFCheb.h"
16 class AliMagWrapCheb : public AliMagF
19 enum constants {k2kG, k4kG, k5kG};
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_meas.root");
25 AliMagWrapCheb(const AliMagWrapCheb& maps);
26 AliMagWrapCheb& operator=(const AliMagWrapCheb& maps);
27 virtual ~AliMagWrapCheb();
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;
33 AliMagFCheb* GetMeasuredMap() const {return fMeasuredMap;}
34 void SetMeasuredMap(AliMagFCheb* parm) {if (parm) delete parm; fMeasuredMap = parm;}
35 virtual Float_t SolenoidField() const {return -Factor()*fSolenoid;}
38 AliMagFCheb* fMeasuredMap; // Measured part of the field map
39 Float_t fSolenoid; // Solenoid field setting
41 ClassDef(AliMagWrapCheb, 2) // Class for all Alice MagField wrapper for measured data + Tosca parameterization