Please indicate exactly which mathematical operation you would like to do.
The division is done at the bin level, i.e. you divide the bin content(x,y,z) of the 3D histogram
This might already help me. By saying ‘dividing an axis by a histogram’ I mean that I want to take all the y bins of the 3D histogram and divide them by all the x bins of the 1D histogram, using the ->Divide function.
Maybe a little bit more detail: The y axis of the TH3D describes the energy of a particle, which needs to be normalized by the flux, which is described by the x axis of the TH1D.
Still I am confused. There are no y bins in a 3D histograms. A bin is having an x, y and z component. You might want to project (i.e. summing) for a given x all the corresponding bins or perform an average (Profile).
Also you seem to want to normalize coordinates ( y values). Instead in an histogram you normalize only bin contents (the 4th component in a 3d histogram).
I would suggest you describe with mathematical formulae what would you like to do