Mean and RMS

How can I calculate and study the Mean and RMS of a data using root? What command should I use in root macro to include it in the programming?

https://root.cern.ch/doc/master/classTH1.html#a16123ff9280997e05b7e6655155d9a06