X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=PMD%2FAliPMDClustering.cxx;h=f9c766413b22785318f5bec30124e1b1ca879b96;hp=25e237ae457b5f382bcf6a1a934e9d83deac1c88;hb=705c51fb52dacbe6abb1346df75517b7b13641c5;hpb=773930f23729f3523a71db52724ab7b0055972bb diff --git a/PMD/AliPMDClustering.cxx b/PMD/AliPMDClustering.cxx index 25e237ae457..f9c766413b2 100644 --- a/PMD/AliPMDClustering.cxx +++ b/PMD/AliPMDClustering.cxx @@ -42,16 +42,17 @@ #include "Riostream.h" #include #include +#include + #include "AliPMDcluster.h" #include "AliPMDClustering.h" -#include +#include "AliLog.h" ClassImp(AliPMDClustering) const Double_t AliPMDClustering::fgkSqroot3by2=0.8660254; // sqrt(3.)/2. AliPMDClustering::AliPMDClustering(): - fDebug(0), fCutoff(0.0) { for(int i = 0; i < kNDIMX; i++) @@ -108,28 +109,22 @@ void AliPMDClustering::DoClust(Int_t idet, Int_t ismn, Double_t celladc[48][96], if (fEdepCell[i1][i2] > cutoff ) nmx1 = nmx1 + 1; } // nmx1 --- number of cells having ener dep >= cutoff - if (fDebug == 1) - { - cout << " nmx1 " << nmx1 << endl; - } + + AliDebug(1,Form("Number of cells having energy >= %f are %d",cutoff,nmx1)); // if (nmx1 == 0 | nmx1 == -1) return; if (nmx1 == 0) nmx1 = 1; ave=ave/nmx1; - if (fDebug == 1) - { - cout <<"kNMX " << kNMX << " nmx1 " << nmx1<< " ave "< 4500) { - Error("RefClust", "Too many superclusters!"); + AliWarning("RefClust: Too many superclusters!"); nsupcl = 4500; break; } ncl[nsupcl]=ncl[nsupcl]+1; } - if (fDebug == 1) - { - cout << " # of cells " <= 5000) { - Error("RefClust", "Too many clusters!"); + AliWarning("RefClust: Too many clusters! more than 5000"); return; } fClno = fClno + 1; @@ -390,7 +381,7 @@ void AliPMDClustering::RefClust(int incr) id = id + 1; icl = icl+1; if (fClno >= 5000) { - Error("RefClust", "Too many clusters!"); + AliWarning("RefClust: Too many clusters! more than 5000"); return; } fClno = fClno+1; @@ -536,7 +527,7 @@ void AliPMDClustering::RefClust(int incr) } for(j=0; j<=ig; j++){ if (fClno >= 5000) { - Error("RefClust", "Too many clusters!"); + AliWarning("RefClust: Too many clusters! more than 5000"); return; } fClno = fClno + 1; @@ -721,7 +712,7 @@ double AliPMDClustering::Ranmar() const cm = 16777213./16777216.; } else{ - cout << " wrong initialization " << endl; + AliWarning("Wrong initialization"); } } else{ @@ -745,7 +736,3 @@ void AliPMDClustering::SetEdepCut(Float_t decut) fCutoff = decut; } // ------------------------------------------------------------------------ // -void AliPMDClustering::SetDebug(Int_t idebug) -{ - fDebug = idebug; -}