Moved old AliMagFCheb to AliMagF, small fixes/optimizations in field classes
[u/mrichter/AliRoot.git] / STEER / AliMagFMapsV1.h
CommitLineData
f9e85e5d 1#ifndef ALIMAGFMAPSV1_H
2#define ALIMAGFMAPSV1_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//
9// Magnetic field composed by 4 maps: the L3 magnet (inside and outside measured region), extended region, and
10// dipole magnet
11// Author: Andreas Morsch <andreas.morsch@cern.ch>
12//
13
14#include "AliMagFMaps.h"
238ad248 15#include "AliMagFCheb.h"
16
f9e85e5d 17
18class AliMagFMapsV1 : public AliMagFMaps
19{
20public:
21 AliMagFMapsV1();
22 AliMagFMapsV1(const char *name, const char *title, Int_t integ,
23 Float_t factor, Float_t fmax, Int_t map = k2kG,
24 Int_t l3 = 1);
238ad248 25 AliMagFMapsV1(const AliMagFMapsV1& maps);
26 AliMagFMapsV1& operator=(const AliMagFMapsV1& maps) {maps.Copy(*this); return *this;}
f9e85e5d 27 virtual ~AliMagFMapsV1();
611fa94a 28 virtual void Field(const float *x, float *b) const;
29 virtual void Field(const double *x, double *b) const;
f9e85e5d 30 virtual Float_t SolenoidField() const;
238ad248 31 AliMagFCheb* GetMeasuredMap() const {return fMeasuredMap;}
32 void SetMeasuredMap(AliMagFCheb* parm) {if (parm) delete parm; fMeasuredMap = parm;}
f9e85e5d 33 protected:
238ad248 34 void Copy(TObject &magf) const;
f9e85e5d 35 AliMagFCheb* fMeasuredMap; //! Measured part of the field map
36 ClassDef(AliMagFMapsV1, 0) // Class for all Alice MagField using three Maps with Constant Mesh + measured L3 region
37};
38
39#endif