]>
Commit | Line | Data |
---|---|---|
aee8290b | 1 | #ifndef ALIMAGF_H |
2 | #define ALIMAGF_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
fe4da5cc | 7 | |
8 | #include "TNamed.h" | |
fe4da5cc | 9 | |
aee8290b | 10 | enum Field_t {kUndef=1, kConst=1, kConMesh=2, kDipoMap=3}; |
fe4da5cc | 11 | |
12 | class AliMagF : public TNamed { | |
13 | ||
fe4da5cc | 14 | public: |
e2afb3b6 | 15 | AliMagF(); |
d8408e76 | 16 | AliMagF(const char *name, const char *title, const Int_t integ, |
17 | const Float_t factor = 1., const Float_t fmax = 10.); | |
fe4da5cc | 18 | virtual ~AliMagF() {} |
19 | virtual void Field(Float_t *x, Float_t *b); | |
94de3818 | 20 | virtual Int_t Type() const {return fType;} |
fe4da5cc | 21 | virtual Float_t Max() const {return fMax;} |
22 | virtual Int_t Map() const {return fMap;} | |
23 | virtual Int_t Integ() const {return fInteg;} | |
24 | virtual Float_t Factor() const {return fFactor;} | |
25 | virtual void ReadField() {} | |
9e1a0ddb | 26 | virtual void SetDebug(Int_t level=0) {fDebug=level;} |
694456b6 | 27 | virtual Float_t SolenoidField() const {return 2.;} |
9e1a0ddb | 28 | virtual Int_t GetDebug() const {return fDebug;} |
fe4da5cc | 29 | |
fe4da5cc | 30 | protected: |
aee8290b | 31 | Int_t fMap; // Field Map identifier |
32 | Int_t fType; // Mag Field type | |
33 | Int_t fInteg; // Integration method as indicated in Geant | |
34 | Float_t fFactor; // Multiplicative factor | |
35 | Float_t fMax; // Max Field as indicated in Geant | |
9e1a0ddb | 36 | Int_t fDebug; // Debug flag |
fe4da5cc | 37 | |
aee8290b | 38 | ClassDef(AliMagF,1) //Base class for all Alice MagField |
fe4da5cc | 39 | }; |
7a15f6b8 | 40 | |
fe4da5cc | 41 | #endif |