Table of Contents
In the HBOOK package, operations on histograms result in the creation of a new histogram, rather than working directly on the target histogram. This is not an approach which fits naturally in the Object Oriented world of C++, where responsibility for object deletion and creation should normally go together.
In HTL, one first creates a copy of the target histogram and then applies the operation on the newly created copy. The responsibility for the creation and deletion of the new histogram are thus delegated to the target application and unnoticed memory leaks potentially avoided.