]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliMagF.cxx
ROOTSYS initialised correctly
[u/mrichter/AliRoot.git] / STEER / AliMagF.cxx
index 6e2a523172de1b8700960731f0730b7795f9b26c..8927ae66b8ac327b314b9956603357dfe12149fd 100644 (file)
 
 /*
 $Log$
+Revision 1.8  2000/12/18 10:44:01  morsch
+Possibility to set field map by passing pointer to objet of type AliMagF via
+SetField().
+Example:
+gAlice->SetField(new AliMagFCM("Map2", "$(ALICE_ROOT)/data/field01.dat",2,1.,10.));
+
+Revision 1.7  2000/10/02 21:28:14  fca
+Removal of useless dependecies via forward declarations
+
 Revision 1.6  2000/07/11 18:24:59  fca
 Coding convention corrections + few minor bug fixes
 
@@ -42,17 +51,25 @@ ClassImp(AliMagF)
 
 //________________________________________
 AliMagF::AliMagF(const char *name, const char *title, const Int_t integ, 
-                const Int_t map, const Float_t factor, const Float_t fmax)
+                const Float_t factor, const Float_t fmax)
   : TNamed(name,title)
 {
   //
   // Standard constructor
   //
-  fMap = map;
-  fType = kUndef;
-  fInteg = integ;
-  fFactor = factor;
-  fMax = fmax;
+    if(integ<0 || integ > 2) {
+       Warning("SetField",
+               "Invalid magnetic field flag: %5d; Helix tracking chosen instead\n"
+               ,integ);
+       fInteg = 2;
+    } else {
+       fInteg = integ;
+    }
+    fType = kUndef;
+    fFactor = factor;
+    fMax = fmax;
+    //
+    fDebug = 0;
 }
 
 //________________________________________