]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveDet/AliEveEMCALData.cxx
fix for Savannah bug #81846
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveEMCALData.cxx
index fe9151c7929199d947b6a5d217bc681ffbd1e9dc..80369658fc9c675ad3d3e8b8e17cfc988537f736 100644 (file)
@@ -391,7 +391,7 @@ void AliEveEMCALData::LoadHitsFromEMCALLoader(AliEMCALLoader* const emcl)
                                        fSM[iSupMod]->RegisterHit(id,iSupMod,amp,x,y,z);
                                }//hit exists
                        }//hit loop
-                       if(hits)hits->Clear();
+                       hits->Clear();
                }// track loop
        }//treeH exists
 }
@@ -641,8 +641,6 @@ void AliEveEMCALData::LoadRecPointsFromESD()
   Int_t nclus = caloClusters->GetEntries();
   cout << "nclus: " << nclus << endl; 
   
-  if(!caloClusters) return;
-
   for (Int_t iclus =  0; iclus <  nclus; iclus++) 
     {
       AliESDCaloCluster *clus = (AliESDCaloCluster *) caloClusters->At(iclus) ; 
@@ -652,7 +650,7 @@ void AliEveEMCALData::LoadRecPointsFromESD()
       // adc
       //      Int_t   eneInt = (Int_t)energy*500+0.5;
       Double_t eneInt = energy/0.0153; // To be modified with correct OCDB conversion
-      Double_t disp   = clus->GetClusterDisp() ;
+      Double_t disp   = clus->GetDispersion() ;
       
       clus->GetPosition(pos) ; // Global position
       TVector3 vpos(pos[0],pos[1],pos[2]) ;