Adding protection in case of emty histogram
authormivanov <marian.ivanov@cern.ch>
Sun, 12 Jan 2014 17:57:02 +0000 (18:57 +0100)
committermivanov <marian.ivanov@cern.ch>
Sun, 12 Jan 2014 17:57:02 +0000 (18:57 +0100)
(Marian)

TPC/Calib/AliTPCPreprocessorOffline.cxx

index 0f44dd0..03469c1 100644 (file)
@@ -1171,6 +1171,7 @@ Bool_t AliTPCPreprocessorOffline::AnalyzeGainDipAngle(Int_t padRegion)  {
   // padRegion -- 0: short, 1: medium, 2: long, 3: absolute calibration of full track
   //
   if (!fGainMult) return kFALSE;
+  if (!(fGainMult->GetHistTopology())) return kFALSE;
   //
   // "dEdxRatioMax","dEdxRatioTot","padType","mult","driftlength"
   TObjArray arrMax;