]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliMagF.cxx
Small changes in order to make compiling easier for new users.
[u/mrichter/AliRoot.git] / STEER / AliMagF.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id$ */
17
18 //
19 // Basic magnetic field class
20 //
21
22 #include "AliMagF.h"
23
24 ClassImp(AliMagF)
25
26 //_______________________________________________________________________
27 AliMagF::AliMagF():
28   fMap(0),
29   fType(0),
30   fInteg(0),
31   fFactor(0),
32   fMax(0),
33   fDebug(0)
34 {
35   //
36   // Default constructor
37   //
38 }
39
40 //_______________________________________________________________________
41 AliMagF::AliMagF(const char *name, const char *title, const Int_t integ, 
42                  const Float_t factor, const Float_t fmax):
43   TNamed(name,title),
44   fMap(0),
45   fType(0),
46   fInteg(0),
47   fFactor(factor),
48   fMax(fmax),
49   fDebug(0)
50 {
51   //
52   // Standard constructor
53   //
54     if(integ<0 || integ > 2) {
55       Warning("SetField",
56               "Invalid magnetic field flag: %5d; Helix tracking chosen instead\n"
57               ,integ);
58       fInteg = 2;
59     } else {
60       fInteg = integ;
61     }
62     fType = kUndef;
63     //
64     fDebug = 0;
65 }
66
67 //_______________________________________________________________________
68 void AliMagF::Field(Float_t*, Float_t *b)
69 {
70   //
71   // Method to return the field in one point -- dummy in this case
72   //
73   Warning("Field","Undefined MagF Field called, returning 0\n");
74   b[0]=b[1]=b[2]=0;
75 }