spi_obs_hist main purpose is the generation of the event spectra that may be used for imaging, spectral or timing analysis, but in the same time it also derives GTIs and the Dead time for each pointing and pseudo detector.
More details can be found in the spi_obs_hist User Manual, which can be downloaded from the following page
http://www.isdc.unige.ch/integral/instrument/spi/doc