]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliMagF.cxx
New version of the jet finder (Rafael)
[u/mrichter/AliRoot.git] / STEER / AliMagF.cxx
index 345bfd83cf8c2d1c5a16aa54c7321a793441d0cc..6dc2c510431aa82e3375fe67673fc07d8dd1b423 100644 (file)
@@ -21,8 +21,9 @@
 // Author:
 //----------------------------------------------------------------------
 
+#include "AliLog.h"
 #include "AliMagF.h"
-
+Bool_t AliMagF::fgReadField = kTRUE;
 ClassImp(AliMagF)
 
 //_______________________________________________________________________
@@ -30,9 +31,9 @@ AliMagF::AliMagF():
   fMap(0),
   fType(0),
   fInteg(0),
+  fPrecInteg(1),
   fFactor(0),
-  fMax(0),
-  fDebug(0)
+  fMax(0)
 {
   //
   // Default constructor
@@ -46,24 +47,23 @@ AliMagF::AliMagF(const char *name, const char *title, Int_t integ,
   fMap(0),
   fType(0),
   fInteg(0),
+  fPrecInteg(1),
   fFactor(factor),
-  fMax(fmax),
-  fDebug(0)
+  fMax(fmax)
 {
   //
   // Standard constructor
   //
     if(integ<0 || integ > 2) {
-      Warning("SetField",
-              "Invalid magnetic field flag: %5d; Helix tracking chosen instead\n"
-              ,integ);
+      AliWarning(Form(
+              "Invalid magnetic field flag: %5d; Helix tracking chosen instead"
+              ,integ));
       fInteg = 2;
     } else {
       fInteg = integ;
     }
     fType = kUndef;
     //
-    fDebug = 0;
 }
 
 //_______________________________________________________________________
@@ -72,6 +72,6 @@ void AliMagF::Field(Float_t*, Float_t *b) const
   //
   // Method to return the field in one point -- dummy in this case
   //
-  Warning("Field","Undefined MagF Field called, returning 0\n");
+  AliWarning("Undefined MagF Field called, returning 0");
   b[0]=b[1]=b[2]=0;
 }