Sphericity and aplanarity


Is there a relatively straightforward way of calculating the sphericity and the aplanarity of an event using Root?

Thank you very much in advance.

I don’t think we have a direct function for this in ROOT, but I am sure you can find implementations for this on Web using ROOT or you can try asking this to ChatGPT



Thank you for your reply.
For anyone interested, I ended up using this, which worked fine: GitHub - davidsheffield/EventShape: Class to calculate event shape variables in ROOT