From 7298445fb34eb8b133540f7a3f9c4e22021cdcca Mon Sep 17 00:00:00 2001 From: cblume Date: Thu, 4 Apr 2013 12:20:25 +0000 Subject: [PATCH] Remove the OCDB call for run(0) in case of missing number of time bins. Now the SimParam values is used instead --- TRD/AliTRDdigitizer.cxx | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/TRD/AliTRDdigitizer.cxx b/TRD/AliTRDdigitizer.cxx index 931e34b6d60..07413d5c161 100644 --- a/TRD/AliTRDdigitizer.cxx +++ b/TRD/AliTRDdigitizer.cxx @@ -625,24 +625,25 @@ Bool_t AliTRDdigitizer::MakeDigits() } else { // Get the OCDB values - Int_t NTB=calibration->GetNumberOfTimeBinsDCS(); - if (NTB < 0) { // Currently -1 gets returned for "undefined" and "mixed", + Int_t nTB = calibration->GetNumberOfTimeBinsDCS(); + if (nTB < 0) { // Currently -1 gets returned for "undefined" and "mixed", // one might go back to -1 undefined and -2 mixed? AliError("No useful DCS information available for this run! Using standard values."); - // We fall back to the standard OCDB object, - // cache the current run number.. - Long64_t run = calibration->GetRun(); - calibration->SetRun(0); - NTB=calibration->GetNumberOfTimeBinsDCS(); - // ..to set it again - calibration->SetRun(run); - // If there's no standard OCDB object, we can still fail - if(NTB < 0){ - AliFatal("No standard object found in the OCDB!"); - } + // // We fall back to the standard OCDB object, + // // cache the current run number.. + // Long64_t run = calibration->GetRun(); + // calibration->SetRun(0); + // nTB = calibration->GetNumberOfTimeBinsDCS(); + // // ..to set it again + // calibration->SetRun(run); + // // If there's no standard OCDB object, we can still fail + // if (nTB < 0) { + // AliFatal("No standard object found in the OCDB!"); + // } + nTB = AliTRDSimParam::Instance()->GetNTimeBins(); } // Save the values for the raw data headers - fDigitsManager->GetDigitsParam()->SetNTimeBinsAll(NTB); + fDigitsManager->GetDigitsParam()->SetNTimeBinsAll(nTB); } // Save the values for the raw data headers -- 2.43.0