Radioactive waste packages containing water and/or organic substances have the potential to radiolytically generate hydrogen and other combustible gases. Typically, the radiolytic gas generation rate is estimated from the energy deposition rate and the radiolytic gas yield. Estimation of the energy deposition rate must take into account the contributions from all radionuclides. While the contributions from non-gamma emitting radionuclides are relatively easy to estimate, an average geometry factor must be computed to determine the contribution from gamma emitters. Hitherto, no satisfactory method existed for estimating the geometry factors for a cylindrical package. In the present study, a formulation was developed taking into account the effect of photon buildup. A prototype code, called PC-CAGE, was developed to numerically solve the integrals involved. Based on the selected dimensions for a cylinder, the specified waste material, the photon energy of interest and a value for either the absorption or attenuation coefficient, the code outputs values for point and average geometry factors. These can then be used to estimate the internal dose rate to the material in the cylinder and hence to calculate the radiolytic gas generation rate. Besides the ability to estimate the rates of radiolytic gas generation, PC-CAGE can also estimate the dose received by the container material. This is based on values for the point geometry factors at the surface of the cylinder. PC-CAGE was used to calculate geometry factors for a number of cylindrical geometries. Estimates for the absorbed dose rate in container material were also obtained. The results for Ontario Power Generation's 3 m3 resin containers indicate that about 80% of the source gamma energy is deposited internally. In general, the fraction of gamma energy deposited internally depends on the dimensions of the cylinder, the material within it and the photon energy; the fraction deposited increases with increasing dimensions of the cylinder and decreases with increasing photon energy.