]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
bugfix: moving call to AliTPCcalibDB::SetExBField to DoInit() It was not executed...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 8 Nov 2009 15:03:56 +0000 (15:03 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 8 Nov 2009 15:03:56 +0000 (15:03 +0000)
HLT/TPCLib/AliHLTTPCClusterFinderComponent.cxx

index e72abcd742427672c7d47cfc6ebe856349df0ad9..a44fa7883054f3a678bd39592202ad12df2f3b8d 100644 (file)
@@ -215,6 +215,7 @@ int AliHLTTPCClusterFinderComponent::DoInit( int argc, const char** argv )
     HLTError("magnetic field not initialized, please set up TGeoGlobalMagField and AliMagF");
     return -ENODEV;
   }
+  calib->SetExBField(GetBz());
 
   fClusterFinder = new AliHLTTPCClusterFinder();
 
@@ -535,14 +536,6 @@ int AliHLTTPCClusterFinderComponent::ScanConfigurationArgument(int argc, const c
     return 2;
   }
 
-  AliTPCcalibDB*  calib=AliTPCcalibDB::Instance();
-  if(!calib){
-    HLTError("CalibDB not availible");
-  } else {
-    calib->SetExBField(GetBz());
-    HLTInfo("SolenoidBz is set to %f in the calibDB", GetBz());
-  }
-
   if (argument.CompareTo("-update-calibdb")==0 || argument.CompareTo("-update-transform")==0 ){
     if(fClusterFinder->UpdateCalibDB()){
       HLTDebug("CalibDB and offline transform successfully updated.");