diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/src/CaloGeometry.cxx b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/src/CaloGeometry.cxx index 55df2d4fa2f3fb7a6945ed264a57454cffaac78e..62d5a6bb6c5b4bbd01dd681519d7d3c9a53e5ed1 100644 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/src/CaloGeometry.cxx +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/src/CaloGeometry.cxx @@ -1003,6 +1003,12 @@ void CaloGeometry::LoadFCalGeometryFromFiles(TString filename1,TString filename2 y=it->second.y(); m_FCal_ChannelMap.tileSize(imap, eta_index, phi_index,dx,dy); + + double r=sqrt(x*x+y*y); + + if(r<m_FCal_rmin[imap-1])m_FCal_rmin[imap-1]=r; + if(r>m_FCal_rmax[imap-1])m_FCal_rmax[imap-1]=r; + id=(mask1[imap-1]<<12) + (eta_index << 5) +2*phi_index; if(imap==2) id+= (8<<8); @@ -1031,6 +1037,7 @@ void CaloGeometry::LoadFCalGeometryFromFiles(TString filename1,TString filename2 } + }