]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliMagFMaps.h
disable doxygen latex output
[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();
6f3038e9 29 virtual void Field(Float_t *x, Float_t *b) const;
84737f5e 30 AliFieldMap* FieldMap(Int_t i) {return fFieldMap[i];}
c2b548d6 31 virtual void ReadField();
84737f5e 32 virtual Float_t SolenoidField() const;
33 virtual void SetL3ConstField(Int_t flag = 0) {fL3Option = flag;}
02b50693 34 virtual void SetL3ConstField(Float_t bsol, Int_t flag = 0)
35 {fL3Option = flag; fSolenoidUser = bsol;}
84737f5e 36
2972d4eb 37 AliMagFMaps & operator=(const AliMagFMaps &magf)
e2afb3b6 38 {magf.Copy(*this); return *this;}
39
84737f5e 40protected:
6c4904c2 41 void Copy(TObject &magf) const;
e2afb3b6 42
c2b548d6 43 AliFieldMap* fFieldMap[3]; // Field maps
44 Float_t fSolenoid; // Solenoid field setting
02b50693 45 Float_t fSolenoidUser; // User set solenoid field setting
c2b548d6 46 Int_t fL3Option; // Option for field inside L3
a0201063 47 ClassDef(AliMagFMaps,4) // Class for all Alice MagField using three Maps with Constant Mesh
84737f5e 48};
49
50#endif