]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
configuration handling for solenoid B field (Gaute)
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Feb 2008 14:47:32 +0000 (14:47 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Feb 2008 14:47:32 +0000 (14:47 +0000)
HLT/TPCLib/AliHLTTPCSliceTrackerComponent.cxx

index db58b09d668df57103d45458f6b03d5ed15130ea..0fd53ef116d0e9fac2099d758b2481171f205fc1 100644 (file)
@@ -812,6 +812,25 @@ int AliHLTTPCSliceTrackerComponent::Reconfigure(const char* cdbEntry, const char
       HLTError("can not fetch object \"%s\" from CDB", path);
     }
   }
+
+  const char* pathBField="TPC/Config/BField";
+
+  if (pathBField) {
+    HLTInfo("reconfigure B-Field from entry %s, chain id %s", path,(chainId!=NULL && chainId[0]!=0)?chainId:"<none>");
+    AliCDBEntry *pEntry = AliCDBManager::Instance()->Get(pathBField/*,GetRunNo()*/);
+    if (pEntry) {
+      TObjString* pString=dynamic_cast<TObjString*>(pEntry->GetObject());
+      if (pString) {
+       HLTInfo("received configuration object string: \'%s\'", pString->GetString().Data());
+       iResult=Configure(pString->GetString().Data());
+      } else {
+       HLTError("configuration object \"%s\" has wrong type, required TObjString", path);
+      }
+    } else {
+      HLTError("can not fetch object \"%s\" from CDB", path);
+    }
+  }
+  
   return iResult;
 }