From b476b122cd4ad98b2afa6b3c94bc3ced5ceef7ee Mon Sep 17 00:00:00 2001 From: ivana Date: Fri, 9 Mar 2007 17:18:27 +0000 Subject: [PATCH] Check we get everything from OCDB even before starting, and correctly deleting calibration at the end (Laurent) --- MUON/AliMUONReconstructor.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MUON/AliMUONReconstructor.cxx b/MUON/AliMUONReconstructor.cxx index 146c49fe743..6c01d109252 100644 --- a/MUON/AliMUONReconstructor.cxx +++ b/MUON/AliMUONReconstructor.cxx @@ -136,6 +136,13 @@ AliMUONReconstructor::GetCalibrationTask() const fCalibrationData = 0x0; return 0x0; } + // Check that we get all the calibrations we'll need + if ( !fCalibrationData->Pedestals() || + !fCalibrationData->Gains() || + !fCalibrationData->HV() ) + { + AliFatal("Could not access all required calibration data"); + } TTask* calibration = new TTask("MUONCalibrator","MUON Digit calibrator"); TString opt(GetOption()); @@ -440,6 +447,7 @@ void AliMUONReconstructor::Reconstruct(AliRunLoader* runLoader, loader->UnloadDigits(); delete recoCluster; + delete calibration; AliInfo(Form("Execution time for converting RAW data to digits in MUON : R:%.2fs C:%.2fs", rawTimer.RealTime(),rawTimer.CpuTime())); -- 2.39.3