which work perfectly if I want to check my sensitives volumes geometry but I’d like to set the range of the Y axis (Position.Z) so I can visualise the different height where I put my detectors. I tried to retrieve the 2D histogram like that TH2F h2 = (TH2F)gPad->GetPrimitive(“htemp”); (to then use SetUserRange) but it appears it is empty.
Too be clear I want 3 figures for my 3 different detector heigh with the same Y axis range.
I have tried, it does not allow me to set the range. With your proposition I have a figures ranged between 1004 and 1014 mm (let’s call it configuration 1, 10 mm is the height of may detectors) which is not exactly what I want. I’d like to draw something between 1000 mm and 1100 mm so I can see that my detectors volumes are low and if I set the center of my detector to 1050 (let’s call it configuration 2) I will clearly see that with configuration 2 my detectors are placed upper than with configuration 1.
this bias the shape of my detectors which appears to look like columns (bc the Y axis range is equal to the heigh of the detectors) while it look like a puck in reality.