The main purpose of that list is to control the order for final cleanup (it contains the relevant TXProofMgr pointer instead of TProof).
TProofMgr contains a list of TProofDesc and from there you can get to the TProof object. There are several steps because it was only supposed to be used internally.
If you have only one session you can use ‘gProof’, which always points to the last open session.
If you use a version >= 5.30 you should be able to get to open pointer using TProof::Open(“pod://”), i.e. w/o having to specify the full PoD string.
But, in general, remembering the initial URL is the safest way to navigate through sessions.
As Gerri has mentioned it already, in order to connect to a PoD/PROOF cluster it is better to use
TProof::Open("pod://") works for ROOT version >= 5.30.
You can also use
or even
std::string url(gSystem->GetFromPipe("pod-info -c -b"));
if( url.empty() )
{
// PoD server is not running
// print out an error message...
return 1;
}
TProof::Open( url.c_str() );