A direct mathematical method to calculate the efficiencies of a parallelepiped detector for an arbitrarily positioned point source