Introduce factor for magnetic field
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 28 Mar 2000 12:40:24 +0000 (12:40 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 28 Mar 2000 12:40:24 +0000 (12:40 +0000)
STEER/AliMagF.cxx

index 0bf1d5bf70239cbd9ff10d44e0a877e2254b188b..1dd9ed0880c71f79577c9434adba8fe15ebb9f83 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.3  1999/09/29 09:24:29  fca
+Introduction of the Copyright and cvs Log
+
 */
 
 
@@ -146,6 +149,11 @@ void AliMagFC::Field(Float_t *x, Float_t *b)
        }
       }
     }
+    if(fFactor!=1) {
+      b[0]*=fFactor;
+      b[1]*=fFactor;
+      b[2]*=fFactor;
+    }
   } else {
     printf("Invalid field map for constant field %d\n",fMap);
     exit(1);
@@ -291,6 +299,11 @@ void AliMagFCM::Field(Float_t *x, Float_t *b)
       }
     }
   }
+  if(fFactor!=1) {
+    b[0]*=fFactor;
+    b[1]*=fFactor;
+    b[2]*=fFactor;
+  }
 }
 
 //________________________________________