Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:37

0001 #include "EpdGeomV1.h"
0002 
0003 #include <calobase/TowerInfoDefs.h>
0004 
0005 float EpdGeomV1::get_r(unsigned int key) const
0006 {
0007   return tile_r[TowerInfoDefs::get_epd_rbin(key)];
0008 }
0009 
0010 float EpdGeomV1::get_z(unsigned int key) const
0011 {
0012   return tile_z[TowerInfoDefs::get_epd_arm(key)];
0013 }
0014 
0015 float EpdGeomV1::get_phi(unsigned int key) const
0016 {
0017 
0018   if(TowerInfoDefs::get_epd_rbin(key) == 0)
0019   {
0020     return tile_phi0[TowerInfoDefs::get_epd_phibin(key)];
0021   }
0022   else
0023   {
0024     return tile_phi[TowerInfoDefs::get_epd_phibin(key)];
0025   }
0026 
0027 }
0028  
0029 void EpdGeomV1::set_z(unsigned int key, float z)
0030 {
0031   tile_z[TowerInfoDefs::get_epd_arm(key)] = z;
0032 }
0033 
0034 void EpdGeomV1::set_r(unsigned int key, float r)
0035 {
0036   tile_r[TowerInfoDefs::get_epd_rbin(key)] = r;
0037 }
0038 
0039 void EpdGeomV1::set_phi(unsigned int key, float f)
0040 {
0041   tile_phi[TowerInfoDefs::get_epd_phibin(key)] = f;
0042 }
0043 
0044 void EpdGeomV1::set_phi0(unsigned int key, float f0)
0045 {
0046   tile_phi0[TowerInfoDefs::get_epd_phibin(key)] = f0;
0047 }