]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSClusterizerv1.cxx
New classes: AliPHOSRecParticle, AliPHOSParticleGuesser, AliPHOSAnalyze
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizerv1.cxx
index 057127704288ad631a7370614239720225791983..b1c4838c43802d22c1a0a8372e23aa16662a02b3 100644 (file)
@@ -157,7 +157,7 @@ void AliPHOSClusterizerv1::MakeClusters(const DigitsList * dl, RecPointsList * e
   TIter nextdigit(&TempoDigitsList) ; 
   AliPHOSDigit * digit ; 
   Bool_t NotRemoved = kTRUE ;
-  cout << "Cluster1" << endl;
+
   while ( (digit = (AliPHOSDigit *)nextdigit()) ) { // scan over the list of digits
     AliPHOSRecPoint * clu ; 
    
@@ -168,9 +168,7 @@ void AliPHOSClusterizerv1::MakeClusters(const DigitsList * dl, RecPointsList * e
   
       Int_t iDigitInCluster = 0 ; 
 
-      if  ( IsInEmc(digit) ) { 
-        emcl->Print("");
-       cout << "Cluster2 EMC" << endl;  
+      if  ( IsInEmc(digit) ) {   
         new ((*emcl)[fNumberOfEmcClusters]) AliPHOSEmcRecPoint(fW0, fLocMaxCut) ; // start a new EMC RecPoint
        clu = (AliPHOSEmcRecPoint *) (*emcl)[fNumberOfEmcClusters] ; 
        fNumberOfEmcClusters++ ; 
@@ -182,11 +180,10 @@ void AliPHOSClusterizerv1::MakeClusters(const DigitsList * dl, RecPointsList * e
       }
 
       else { 
-       cout << "Cluster2 PPSD" << endl;
        new ((*ppsdl)[fNumberOfPpsdClusters]) AliPHOSPpsdRecPoint() ; // start a new PPSD cluster
        clu =  (AliPHOSPpsdRecPoint *) ppsdl->At(fNumberOfPpsdClusters)  ;  
        fNumberOfPpsdClusters++ ; 
-       clu->AddDigit(*digit, 0.) ;     
+       clu->AddDigit(*digit, Calibrate(digit->GetAmp()) ) ;    
        ClusterDigitsList[iDigitInCluster] = (int* ) digit ;    
        iDigitInCluster++ ; 
        TempoDigitsList.Remove(digit) ;