How to split and cut string in ROOT

TString offers many functionalities to manipule and edit strings. You can search in the string the position of pythia8 with Index(), remove what is after then search for /and remove what is before…