I want to determine the fraction of an area of a ring intersecting with a rectangle. The ring can have different radia.
My first attempt was to build a TGeoCompositeShape from intersection of a box and a tube, but this doesn’t suit my needs, since what I actually need is just a number, which gives me the fraction of the area of the ring contained in my rectangle.
I also tried to check if random points inside the ring are contained in the rectangle. This works, but it is very slow.
Could you please advice me, which is the most suitable method to use in this case?
Thank you in advance,