useful utilities for c++/ROOT