Introduce possibility to chose magnetic field version 3: AliMagFDM + field02.dat
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Jun 2000 20:05:11 +0000 (20:05 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Jun 2000 20:05:11 +0000 (20:05 +0000)
STEER/AliRun.cxx

index 74a173031886293548a06c42a757cfdda3b66945..12f3f696a328554a2bf983014c8a91b940febb24 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.36  2000/06/08 14:03:58  hristov
+Only one initializer for a default argument
+
 Revision 1.35  2000/06/07 10:13:14  hristov
 Delete only existent objects.
 
@@ -399,9 +402,12 @@ void AliRun::SetField(Int_t type, Int_t version, Float_t scale,
   if(fField) delete fField;
   if(version==1) {
     fField = new AliMagFC("Map1"," ",type,version,scale,maxField);
-  } else if(version<=3) {
+  } else if(version<=2) {
     fField = new AliMagFCM("Map2-3",filename,type,version,scale,maxField);
     fField->ReadField();
+  } else if(version==3) {
+    fField = new AliMagFDM("Map4",filename,type,version,scale,maxField);
+    fField->ReadField();
   } else {
     Warning("SetField","Invalid map %d\n",version);
   }