Removal of useless dependecies via forward declarations
[u/mrichter/AliRoot.git] / STEER / AliMagF.h
CommitLineData
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 10enum Field_t {kUndef=1, kConst=1, kConMesh=2, kDipoMap=3};
fe4da5cc 11
12class AliMagF : public TNamed {
13
fe4da5cc 14public:
15 AliMagF(){}
16 AliMagF(const char *name, const char *title, const Int_t integ, const Int_t map,
17 const Float_t factor, const Float_t fmax);
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() {}
26
fe4da5cc 27protected:
aee8290b 28 Int_t fMap; // Field Map identifier
29 Int_t fType; // Mag Field type
30 Int_t fInteg; // Integration method as indicated in Geant
31 Float_t fFactor; // Multiplicative factor
32 Float_t fMax; // Max Field as indicated in Geant
fe4da5cc 33
aee8290b 34 ClassDef(AliMagF,1) //Base class for all Alice MagField
fe4da5cc 35};
7a15f6b8 36
aee8290b 37//ZDC part -------------------------------------------------------------------
7a15f6b8 38
aee8290b 39 static const Float_t kG1=20.03;
40 static const Float_t kFDIP=-37.34;
41 static const Float_t kFDIMU=6.;
42 static const Float_t kFCORN=11.72;
7a15f6b8 43//
aee8290b 44// ZBEG Beginning of the inner triplet
45// D1BEG Beginning of separator dipole 1
46// D2BEG Beginning of separator dipole 2
47// CORBEG Corrector dipole beginning (because of dimuon arm)
48//
49 static const Float_t kCORBEG=1920,kCOREND=kCORBEG+190, kCORRA2=4.5*4.5;
50//
51 static const Float_t kZBEG=2300;
52 static const Float_t kZ1BEG=kZBEG+ 0,kZ1END=kZ1BEG+630,kZ1RA2=3.5*3.5;
53 static const Float_t kZ2BEG=kZBEG+ 880,kZ2END=kZ2BEG+550,kZ2RA2=3.5*3.5;
54 static const Float_t kZ3BEG=kZBEG+1530,kZ3END=kZ3BEG+550,kZ3RA2=3.5*3.5;
55 static const Float_t kZ4BEG=kZBEG+2430,kZ4END=kZ4BEG+630,kZ4RA2=3.5*3.5;
56 static const Float_t kD1BEG=5843.5 ,kD1END=kD1BEG+945,kD1RA2=4.5*4.5;
57 static const Float_t kD2BEG=12113.2 ,kD2END=kD2BEG+945,kD2RA2=4.5*.5;
58
59//ZDC part -------------------------------------------------------------------
fe4da5cc 60
61#endif