How to Fix the Z-Axis to Extract Only the Surface Dose?

Hello,

I’m working with a TH2 histogram where the z-axis represents the dose at various depths. When I perform a ProjectionX(), I end up with the cumulative sum of all events along the z-axis. However, I only need the dose measured at the surface—i.e. I want to fix the z-axis to a particular value and avoid summing over it.

Has anyone encountered a similar issue? Would applying a cut on the z-axis before projecting or using ProfileX() be a better approach to isolate the surface dose? Any guidance or suggestions would be greatly appreciated!

What are the x and y axes of the TH2D?

My x-axis ranges from -50 to 50, and the y-axis represents the dose in Gy

What is x? and you also said that z was the dose, but now y is the dose?

I plot a dose profile representing the distance as a function of the dose to assess stability.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.