Fix for #94804: PID QA crashes on data
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 May 2012 12:53:42 +0000 (12:53 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 May 2012 12:53:42 +0000 (12:53 +0000)
STEER/STEERBase/AliPIDResponse.cxx

index 84d449e3aeb0b4e9665939a85be5b55903fc6b97..c8801ce8635fb8cbe5c68f533113e4cf51590325 100644 (file)
@@ -882,7 +882,7 @@ void AliPIDResponse::SetTOFPidResponseMaster()
     AliInfo(Form("Loading TOF Params from %s/COMMON/PID/data/TOFPIDParams.root", fOADBPath.Data()));
     AliOADBContainer *oadbc = (AliOADBContainer *)oadbf->Get("TOFoadb");
     if (fTOFPIDParams) delete fTOFPIDParams;
-    fTOFPIDParams = dynamic_cast<AliTOFPIDParams *>(oadbc->GetObject(fRun));
+    fTOFPIDParams = dynamic_cast<AliTOFPIDParams *>(oadbc->GetObject(fRun,"TOFparams"));
     oadbf->Close();
     delete oadbc;
   } else {