File indexing completed on 2025-12-17 09:20:03
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 if (TowerInfoDefs::get_epd_rbin(key) == 0)
0018 {
0019 return tile_phi0[TowerInfoDefs::get_epd_phibin(key)];
0020 }
0021
0022 return tile_phi[TowerInfoDefs::get_epd_phibin(key)];
0023 }
0024
0025 void EpdGeomV1::set_z(unsigned int key, float z)
0026 {
0027 tile_z[TowerInfoDefs::get_epd_arm(key)] = z;
0028 }
0029
0030 void EpdGeomV1::set_r(unsigned int key, float r)
0031 {
0032 tile_r[TowerInfoDefs::get_epd_rbin(key)] = r;
0033 }
0034
0035 void EpdGeomV1::set_phi(unsigned int key, float f)
0036 {
0037 tile_phi[TowerInfoDefs::get_epd_phibin(key)] = f;
0038 }
0039
0040 void EpdGeomV1::set_phi0(unsigned int key, float f0)
0041 {
0042 tile_phi0[TowerInfoDefs::get_epd_phibin(key)] = f0;
0043 }