TH2Poly in TH3


Is it possible to embed a TH2Poly in a TH3F? Namely, I would like to draw a trace in 3D and its projection on one face of the 3D box. For the projection, I would like to use a padding that corresponds to the detector pixellization, that I usually do with TH2Poly.

Best regards


I am not sure what would you like to have, probably something like a TH3Poly ?
It is clear we cannot project a TH3 in a TH3Poly because the bins are not compatible. You can always implement yourself a customised projection of a TH3 in a TH2Poly by looping on the bins and using GetBinCenter and GetBinContent.