Coverit
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Feb 2011 13:15:53 +0000 (13:15 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Feb 2011 13:15:53 +0000 (13:15 +0000)
EVE/EveDet/AliEveEMCALData.cxx

index 580deb0..8036965 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) ;