Discussion:
[ROOT] remotely root file view
xsatya
2007-10-02 19:26:09 UTC
Permalink
Dear Rooters,

Can any one suggest me how can I view root files over www. Mean to say
is it possible to view root file over net remotely without opening root
session
and TBrowser? My root file contains only histograms and graphs.

Is there any tool or sample code/ macro?

I am using latest version of root. (5.17.02)
operating system SLC 5.0

Thank you.
satya
--
---------------
Research Student,
High Energy Physics, India.
Rene Brun
2007-10-02 19:59:46 UTC
Permalink
You can open a web file by giving its URL, eg
root > TFile *f = TFile::Open("http://root.cern.ch/files/pippa.root");
root > f->ls();

Rene Brun
Post by xsatya
Dear Rooters,
Can any one suggest me how can I view root files over www. Mean to say
is it possible to view root file over net remotely without opening
root session
and TBrowser? My root file contains only histograms and graphs.
Is there any tool or sample code/ macro?
I am using latest version of root. (5.17.02)
operating system SLC 5.0
Thank you.
satya
--
---------------
Research Student,
High Energy Physics, India.
xsatya
2007-10-03 04:43:40 UTC
Permalink
Hello Rene,
Post by Rene Brun
Post by Rene Brun
root > TFile *f = TFile::Open("http://root.cern.ch/files
/pippa.root");
I know this technique. And this is inside root session.

But my question is "without opening ROOT session". can we see the plots
and histogram which are saved in a root file. Is it possible in the internet
to
view contains in remotely where root is not installed? (May be by installing
some plugins in the remote PC). Is it possible?

Regards
satya
Post by Rene Brun
You can open a web file by giving its URL, eg
root > TFile *f = TFile::Open("http://root.cern.ch/files/pippa.root");
root > f->ls();
Rene Brun
Post by Rene Brun
Dear Rooters,
Can any one suggest me how can I view root files over www. Mean to say
is it possible to view root file over net remotely without opening
root session
and TBrowser? My root file contains only histograms and graphs.
Is there any tool or sample code/ macro?
I am using latest version of root. (5.17.02)
operating system SLC 5.0
Thank you.
satya
--
---------------
Research Student,
High Energy Physics, India.
--
---------------
Research Student,
High Energy Physics, India.
Valeri Onuchin
2007-10-03 06:54:41 UTC
Permalink
Hi,
do you need to see just a content of remote ROOT file?
You can create a cgi script invoking root remotely creating a
plot/histogram image which will be sent to the web browser ..
or you can help me to give a new life to the carrot -
apache module which had this capability: i.e. browsing
ROOT files/trees on remote web server, querying trees and getting results.

Regards. Valeriy




-----Original Message-----
From: owner-***@root.cern.ch on behalf of xsatya
Sent: Wed 10/3/2007 6:43 AM
To: Rene Brun; roottalk (Mailing list discussing all aspects of the ROOT system); roottalk
Subject: Re: [ROOT] remotely root file view

Hello Rene,
Post by Rene Brun
Post by Rene Brun
root > TFile *f = TFile::Open("http://root.cern.ch/files
/pippa.root");
I know this technique. And this is inside root session.

But my question is "without opening ROOT session". can we see the plots
and histogram which are saved in a root file. Is it possible in the internet
to
view contains in remotely where root is not installed? (May be by installing
some plugins in the remote PC). Is it possible?

Regards
satya
Post by Rene Brun
You can open a web file by giving its URL, eg
root > TFile *f = TFile::Open("http://root.cern.ch/files/pippa.root");
root > f->ls();
Rene Brun
Post by Rene Brun
Dear Rooters,
Can any one suggest me how can I view root files over www. Mean to say
is it possible to view root file over net remotely without opening
root session
and TBrowser? My root file contains only histograms and graphs.
Is there any tool or sample code/ macro?
I am using latest version of root. (5.17.02)
operating system SLC 5.0
Thank you.
satya
--
---------------
Research Student,
High Energy Physics, India.
--
---------------
Research Student,
High Energy Physics, India.
Rene Brun
2007-10-03 07:10:01 UTC
Permalink
Valeriy,

The solution that I proposed does not require to run ROOT on the remote
machine.
You just need a standard httpd (eg Apache) web server.
Of course on the client side, you need something that understands the
ROOT file.
the current version 5.17 includes the functionality to remote login from
a client ROOT session,
and execute scripts on the remote machine, eg
root > some commands on the local machine
root > .R lxplus
root.lxplus > TFile f("lxplus_file.root"); //open the remote file on
lxplus
root.lxplus > histo.Draw(); // histo will be drawn on the client machine
root.lxplus > .R (leaving lxplus)
root > other local commands
root > .R lxplus (reconnect again to the lxplus remote session, etc

The version 5.17 includes also the new class TGhtml that allows browsing
web pages, opening
remote ROOt files, executing remote macros. This class is being
integrated in the new version
of TBrowser that will be part of the December release.

Rene Brun
Post by Valeri Onuchin
Hi,
do you need to see just a content of remote ROOT file?
You can create a cgi script invoking root remotely creating a
plot/histogram image which will be sent to the web browser ..
or you can help me to give a new life to the carrot -
apache module which had this capability: i.e. browsing
ROOT files/trees on remote web server, querying trees and getting results.
Regards. Valeriy
-----Original Message-----
Sent: Wed 10/3/2007 6:43 AM
To: Rene Brun; roottalk (Mailing list discussing all aspects of the ROOT system); roottalk
Subject: Re: [ROOT] remotely root file view
Hello Rene,
Post by Rene Brun
Post by Rene Brun
root > TFile *f = TFile::Open("http://root.cern.ch/files
/pippa.root");
I know this technique. And this is inside root session.
But my question is "without opening ROOT session". can we see the plots
and histogram which are saved in a root file. Is it possible in the internet
to
view contains in remotely where root is not installed? (May be by installing
some plugins in the remote PC). Is it possible?
Regards
satya
Post by Rene Brun
You can open a web file by giving its URL, eg
root > TFile *f = TFile::Open("http://root.cern.ch/files/pippa.root");
root > f->ls();
Rene Brun
Post by Rene Brun
Dear Rooters,
Can any one suggest me how can I view root files over www. Mean to say
is it possible to view root file over net remotely without opening
root session
and TBrowser? My root file contains only histograms and graphs.
Is there any tool or sample code/ macro?
I am using latest version of root. (5.17.02)
operating system SLC 5.0
Thank you.
satya
--
---------------
Research Student,
High Energy Physics, India.
Valeri Onuchin
2007-10-03 07:23:32 UTC
Permalink
Hi Rene,
I'm aware about all internal developments :)
I see it's possible to display/list a content of ROOT file
(names, types, titles of objects) without having any
ROOT invocations on any side (client, server).

Regards. Valeriy



-----Original Message-----
From: Rene Brun
Sent: Wed 10/3/2007 9:10 AM
To: Valeri Onuchin
Cc: ***@gmail.com; Rene Brun; roottalk (Mailing list discussing all aspects of the ROOT system); roottalk
Subject: Re: [ROOT] remotely root file view

Valeriy,

The solution that I proposed does not require to run ROOT on the remote
machine.
You just need a standard httpd (eg Apache) web server.
Of course on the client side, you need something that understands the
ROOT file.
the current version 5.17 includes the functionality to remote login from
a client ROOT session,
and execute scripts on the remote machine, eg
root > some commands on the local machine
root > .R lxplus
root.lxplus > TFile f("lxplus_file.root"); //open the remote file on
lxplus
root.lxplus > histo.Draw(); // histo will be drawn on the client machine
root.lxplus > .R (leaving lxplus)
root > other local commands
root > .R lxplus (reconnect again to the lxplus remote session, etc

The version 5.17 includes also the new class TGhtml that allows browsing
web pages, opening
remote ROOt files, executing remote macros. This class is being
integrated in the new version
of TBrowser that will be part of the December release.

Rene Brun
Post by Valeri Onuchin
Hi,
do you need to see just a content of remote ROOT file?
You can create a cgi script invoking root remotely creating a
plot/histogram image which will be sent to the web browser ..
or you can help me to give a new life to the carrot -
apache module which had this capability: i.e. browsing
ROOT files/trees on remote web server, querying trees and getting results.
Regards. Valeriy
-----Original Message-----
Sent: Wed 10/3/2007 6:43 AM
To: Rene Brun; roottalk (Mailing list discussing all aspects of the ROOT system); roottalk
Subject: Re: [ROOT] remotely root file view
Hello Rene,
Post by Rene Brun
Post by Rene Brun
root > TFile *f = TFile::Open("http://root.cern.ch/files
/pippa.root");
I know this technique. And this is inside root session.
But my question is "without opening ROOT session". can we see the plots
and histogram which are saved in a root file. Is it possible in the internet
to
view contains in remotely where root is not installed? (May be by installing
some plugins in the remote PC). Is it possible?
Regards
satya
Post by Rene Brun
You can open a web file by giving its URL, eg
root > TFile *f = TFile::Open("http://root.cern.ch/files/pippa.root");
root > f->ls();
Rene Brun
Post by Rene Brun
Dear Rooters,
Can any one suggest me how can I view root files over www. Mean to say
is it possible to view root file over net remotely without opening
root session
and TBrowser? My root file contains only histograms and graphs.
Is there any tool or sample code/ macro?
I am using latest version of root. (5.17.02)
operating system SLC 5.0
Thank you.
satya
--
---------------
Research Student,
High Energy Physics, India.
Fine, Valeri
2007-10-03 18:16:23 UTC
Permalink
Hello Satya,

I think the formally it is simple to reply your
May be by installing some plugins in the remote PC). Is it possible?
Yes, it is possible. The plug-in in question is called "root.exe".
As soon as you install ROOT as Web browser plug-in to treat the files with "C" and "root" extensions, you can use the URL-link pointing to some ROOT macro/ ROOT file to start the "plug-in". (Please, pay your attention you may customize the local "ROOT Web plugin" behavior by tailoring "system.rootrc" file)

The only problem, that plug-in will NOT open its graphical window within the Web browser frame. The later can be fixed if crucial.

Is it the kind of things you keep in mind?

If your question is kind of "how to read ROOT file with no ROOT?" then this matter was discussed many times (search Web) in past and the bottom line was "one does need ROOT" always.


Best Regards
                         Valeri Fine
---------------
Brookhaven National Laboratory
Upton, NY 11973, USA
Phone: +1 631 344 7806
Fax:     +1 631 344 4206
E-mail: ***@bnl.gov
-----Original Message-----
From: owner-***@root.cern.ch [mailto:owner-***@root.cern.ch] On Behalf Of xsatya
Sent: Wednesday, October 03, 2007 12:44 AM
To: Rene Brun; ***@cern.ch; roottalk
Subject: Re: [ROOT] remotely root file view

Hello Rene,
Post by Rene Brun
root > TFile *f = TFile::Open("http://root.cern.ch/files
/pippa.root");
 I know this technique. And this is inside root session.

But my question is "without opening ROOT session". can we see the plots
and histogram which are saved in a root file. Is it possible in the internet to
view contains in remotely where root is not installed? (May be by installing
some plugins in the remote PC). Is it possible?

Regards
satya
On 10/3/07, Rene Brun <***@cern.ch > wrote:
You can open a web file by giving its URL, eg
   root > TFile *f = TFile::Open(" http://root.cern.ch/files/pippa.root");
   root > f->ls();

Rene Brun
Dear Rooters,
   Can any one suggest me how can I view root files over www. Mean to say
   is it possible to view root file over net remotely without opening
root session
   and TBrowser? My root file contains only histograms and graphs.
   Is there any tool or sample code/ macro?
   I am using latest version of root. (5.17.02)
   operating system SLC 5.0
   Thank you.
   satya
--
---------------
Research Student,
High Energy Physics, India.
--
---------------
Research Student,
High Energy Physics, India.
Continue reading on narkive:
Loading...