X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONClusterFinderPeakCOG.cxx;h=83cbe8fc6146dadb550436a097c197351c574544;hb=6265ad5557e30302fab3e1a3e35bf51bda1ac0e2;hp=9202e16cb7c37c0aa6e2fc3b6bbf38422f1bef63;hpb=8c14ac2e521c9e25a534b6872c4a5646ec61bc0b;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONClusterFinderPeakCOG.cxx b/MUON/AliMUONClusterFinderPeakCOG.cxx index 9202e16cb7c..83cbe8fc614 100644 --- a/MUON/AliMUONClusterFinderPeakCOG.cxx +++ b/MUON/AliMUONClusterFinderPeakCOG.cxx @@ -45,6 +45,8 @@ //#include #include +using std::endl; +using std::cout; /// \cond CLASSIMP ClassImp(AliMUONClusterFinderPeakCOG) /// \endcond @@ -98,7 +100,7 @@ AliMUONClusterFinderPeakCOG::~AliMUONClusterFinderPeakCOG() //_____________________________________________________________________________ Bool_t -AliMUONClusterFinderPeakCOG::Prepare(Int_t detElemId, TClonesArray* pads[2], +AliMUONClusterFinderPeakCOG::Prepare(Int_t detElemId, TObjArray* pads[2], const AliMpArea& area, const AliMpVSegmentation* seg[2]) { @@ -693,6 +695,9 @@ Int_t AliMUONClusterFinderPeakCOG::FindLocalMaxima(TObjArray *pixArray, Int_t *l Double_t xylim[4] = {999, 999, 999, 999}; Int_t nPix = pixArray->GetEntriesFast(); + + if ( nPix <= 0 ) return 0; + AliMUONPad *pixPtr = 0; for (Int_t ipix = 0; ipix < nPix; ++ipix) { pixPtr = (AliMUONPad*) pixArray->UncheckedAt(ipix);