]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliMagFMaps.h
Removing the hard-wired particle masses (B. Hippolyte)
[u/mrichter/AliRoot.git] / STEER / AliMagFMaps.h
CommitLineData
84737f5e 1#ifndef ALIMAGFMAPS_H
2#define ALIMAGFMAPS_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//
0742d588 9// Magnetic field composed by 3 maps: the L3 magnet, extended region, and
10// dipole magnet
84737f5e 11// Author: Andreas Morsch <andreas.morsch@cern.ch>
12//
13
57754f18 14#include "AliMagFC.h"
84737f5e 15class AliFieldMap;
16
57754f18 17class AliMagFMaps : public AliMagFC
84737f5e 18{
19 //Alice Magnetic Field with constant mesh
20
21public:
02b50693 22 enum constants {k2kG, k4kG, k5kG};
e2afb3b6 23 AliMagFMaps();
d0f1ee3b 24 AliMagFMaps(const char *name, const char *title, Int_t integ,
25 Float_t factor, Float_t fmax, Int_t map = k2kG,
26 Int_t l3 = 1);
84737f5e 27 AliMagFMaps(const AliMagFMaps &mag);
28 virtual ~AliMagFMaps();
611fa94a 29 virtual void Field(const float *x, float *b) const;
30 virtual void Field(const double *x, double *b) const;
84737f5e 31 AliFieldMap* FieldMap(Int_t i) {return fFieldMap[i];}
c2b548d6 32 virtual void ReadField();
84737f5e 33 virtual Float_t SolenoidField() const;
34 virtual void SetL3ConstField(Int_t flag = 0) {fL3Option = flag;}
02b50693 35 virtual void SetL3ConstField(Float_t bsol, Int_t flag = 0)
36 {fL3Option = flag; fSolenoidUser = bsol;}
84737f5e 37
2972d4eb 38 AliMagFMaps & operator=(const AliMagFMaps &magf)
e2afb3b6 39 {magf.Copy(*this); return *this;}
40
84737f5e 41protected:
6c4904c2 42 void Copy(TObject &magf) const;
e2afb3b6 43
c2b548d6 44 AliFieldMap* fFieldMap[3]; // Field maps
45 Float_t fSolenoid; // Solenoid field setting
02b50693 46 Float_t fSolenoidUser; // User set solenoid field setting
c2b548d6 47 Int_t fL3Option; // Option for field inside L3
a0201063 48 ClassDef(AliMagFMaps,4) // Class for all Alice MagField using three Maps with Constant Mesh
84737f5e 49};
50
51#endif