ROOT matrix/histogram utility functions