You are here

Starting and running PROOF from the command line

The client interaction with a PROOF session goes via an instance of the API class TProof . The interaction with the server daemon is internally managed by a dedicated manager class, TProofMgr , which is invoked by TProof when creating a session. 

To create a session from the ROOT prompt just type

root[0] TProof *p = TProof::Open("")

or

root[1] TProof *p = TProof::Open("@:2093")

Here "" represents the name of the master machine on the PROOF enabled cluster; if the user name to be used for identification is different from the local one and/or if the service is run on a port different from the standard one (1093) then the username and/or the port must be specified using an URL syntax as shown in the second example.

The static TProof::Open(...) takes care of creating the correct manager instance for the required cluster; the manager instance is available via TProof::GetManager().

If the user has already a session running on the cluster, by default TProof::Open(...) attaches to the existing session. To force creation of a new session the option N must be used:

root[0] TProof *p = TProof::Open("/?N")