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 ;
}
}
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;