]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliMagF.cxx
Fix fixed-string length bug
[u/mrichter/AliRoot.git] / STEER / AliMagF.cxx
index 41f3c1b5d02d9d1144493d4a41dae4651bcd9a41..3c188813cff91f231f798ed18ac84b36a7d81625 100644 (file)
@@ -64,6 +64,9 @@ AliMagF::AliMagF(const char *name, const char *title, Int_t integ,
     } else {
       fInteg = integ;
     }
+   
+    if (fInteg == 0) fPrecInteg = 0;
+    
     fType = kUndef;
     //
 }
@@ -127,3 +130,15 @@ AliMagF& AliMagF::operator=(const AliMagF& rhs)
     fReadField = rhs.fReadField;
     return *this;
 }
+
+void AliMagF::SetPrecInteg(Int_t integ)
+{
+    if (fInteg > 0) {
+       fPrecInteg = integ;
+    }
+    else if (integ != 0)
+    {
+       AliWarning("Precision integration flag set to 0 \n");
+       fPrecInteg = 0;
+    }
+}