]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALGeometry.cxx
PWGPP-69 - initialize additional dEdx information diring tracking itteration 0 -...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALGeometry.cxx
index 0986978b9e5c2497b14671b927f91a09a68836c3..18c5c80d8af4a8a62c2a101258831e63cfed3845 100644 (file)
@@ -285,16 +285,22 @@ AliEMCALGeometry & AliEMCALGeometry::operator = (const AliEMCALGeometry  & /*rva
 AliEMCALGeometry::~AliEMCALGeometry(void)
 {
   // dtor
-  if (this==fgGeom) {
+  if (this==fgGeom)
+  {
     AliError("Do not call delete on me");
     return;
   }
-  if (fEMCGeometry){ 
-    for(Int_t smod = 0 ; smod < fEMCGeometry->GetNumberOfSuperModules(); smod++){
+  
+  if (fEMCGeometry)
+  {
+    for(Int_t smod = 0 ; smod < fEMCGeometry->GetNumberOfSuperModules(); smod++)
+    {
       if(fkSModuleMatrix[smod])
         delete fkSModuleMatrix[smod] ;
-        fkSModuleMatrix[smod]=0 ;
+      
+      fkSModuleMatrix[smod]=0 ;
     }
+    
     delete fEMCGeometry; // fEMCGeometry = 0 ;
   }
 }
@@ -575,7 +581,7 @@ Bool_t AliEMCALGeometry::GetAbsCellIdFromEtaPhi(Double_t eta, Double_t phi, Int_
   if(SuperModuleNumberFromEtaPhi(eta, phi, nSupMod)) {
     // phi index first
     phi    = TVector2::Phi_0_2pi(phi);
-    phiLoc = phi - fPhiCentersOfSM[nSupMod/2];
+    phiLoc = phi - fPhiCentersOfSMSec[nSupMod/2];
     nphi   = fPhiCentersOfCells.GetSize();
     if (     GetSMType(nSupMod) == kEMCAL_Half ) nphi  /= 2;
     else if( GetSMType(nSupMod) == kEMCAL_3rd )  nphi  /= 3;