When a beam of radiation is used as a probe in order to study the elemental composition of an object, the factors involved in obtaining maximum detection sensitivity include target homogeneity, beam uniformity and the solid angle subtended between target and detector. Here we have investigated, both theoretically and experimentally, the significance of these factors in an experimental facility for in-vitro prompt gamma-ray neutron activation analysis and an arrangement used in in-vivo activation analysis. The correction factor to the solid angle, to account for non-uniformity, and the optimisation of reaction rate and solid angle are considered.