#include <TRandom.h>
#include <Riostream.h>
+using std::endl;
+using std::cout;
/// \cond CLASSIMP
ClassImp(AliMUONClusterSplitterMLEM)
/// \endcond
delta /= pad->Charge();
chi2 += delta;
} // for (Int_t j=0;
- if (iflag == 0) qAver = qTot / npads;
+ if (iflag == 0 && npads) qAver = qTot / npads;
+ if (!npads)
+ {
+ AliError(Form("Got npads=0. Please check"));
+ }
f = chi2 / qAver;
}