If it’s ROOT 5, then see: Multidimensional Array
and try something like this (note: you may need to precompile your source code using ACLiC): [code]#include “TH1.h”
typedef TH1D* (*My3DTH1DArray)[4][1][8];
void setaxis(My3DTH1DArray h) {
// …
}
void test() {
TH1D* hist[4][1][8];
// …
setaxis(&hist);
}[/code]
I guess a better idea would be to move to ROOT 6 (you should not need any tricks then).