]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDclusterizer.cxx
Update of the VZERO offline trigger: 1. New slewing correction with only 2 parameters...
[u/mrichter/AliRoot.git] / TRD / AliTRDclusterizer.cxx
index ce03cfe6d25a715e72cf9a76db8dc52175b42b90..3f06fa88c265d2d6e46589c11095b471c4e79bf0 100644 (file)
@@ -700,6 +700,8 @@ Bool_t AliTRDclusterizer::Raw2ClustersChamber(AliRawReader *rawReader)
   if(!TestBit(knewDM)){
     delete fDigitsManager;
     fDigitsManager = NULL;
+    delete fRawStream;
+    fRawStream = NULL;
   }
 
   AliInfo(Form("Number of found clusters : %d", fNoOfClusters)); 
@@ -784,7 +786,6 @@ Bool_t AliTRDclusterizer::MakeClusters(Int_t det)
     return kFALSE;
   }
 
-
   fMaxThresh            = fReconstructor->GetRecoParam()->GetClusMaxThresh();
   fSigThresh            = fReconstructor->GetRecoParam()->GetClusSigThresh();
   fMinMaxCutSigma       = fReconstructor->GetRecoParam()->GetMinMaxCutSigma();
@@ -819,7 +820,9 @@ Bool_t AliTRDclusterizer::MakeClusters(Int_t det)
   fTimeTotal = fDigits->GetNtime();
 
   // Check consistency between OCDB and raw data
-  if (fTimeTotal != calibration->GetNumberOfTimeBinsDCS()) {
+  Int_t nTimeOCDB = calibration->GetNumberOfTimeBinsDCS();
+  if ((nTimeOCDB  >         -1) &&
+      (fTimeTotal != nTimeOCDB)) {
     AliError(Form("Number of timebins does not match OCDB value (RAW[%d] OCDB[%d])"
                 ,fTimeTotal,calibration->GetNumberOfTimeBinsDCS()));
   }