# Sphericity and aplanarity

**URL:** <https://root-forum.cern.ch/t/sphericity-and-aplanarity/54300>\
**Category:** Newbie\
**Created:** [March 31, 2023, 1:42am UTC](https://root-forum.cern.ch/t/sphericity-and-aplanarity/54300 "2023-03-31T01:42:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ampudia](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ampudia/32/32149_2.png) [@ampudia](https://root-forum.cern.ch/u/ampudia)\
**Post date:** [March 31, 2023, 1:42am UTC](https://root-forum.cern.ch/t/sphericity-and-aplanarity/54300/1 "2023-03-31T01:42:45Z")

</div>

Hello!

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

Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [March 31, 2023, 2:11pm UTC](https://root-forum.cern.ch/t/sphericity-and-aplanarity/54300/2 "2023-03-31T14:11:53Z")

</div>

Hi,  
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

Best,

Lorenzo

---

<div class="post-metadata">

**Author:** ![ampudia](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ampudia/32/32149_2.png) [@ampudia](https://root-forum.cern.ch/u/ampudia)\
**Post date:** [April 14, 2023, 1:14am UTC](https://root-forum.cern.ch/t/sphericity-and-aplanarity/54300/3 "2023-04-14T01:14:41Z")

</div>

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](https://github.com/davidsheffield/EventShape)
