-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View ROOT files in your browser, with JavaScript #203
Comments
I've heard of this last November at CHEP, it was really nice! At the time, there were some limitations |
Yes, as @katilp points out, ROOT files in CMSSW format need CMSSW in order to know how to read and write the objects. This perhaps may be more appropriate for the top sample prepared by the CMS group from Hamburg which distilled down CMSSW data into ROOT ntuples. |
I brought this up after looking around the issues and seeing some mention of displaying histograms. I think that in the documentation this would be a good way to avoid yet another layer between what people will see with root and what we show them in the documentation; i.e., the documentation can show exactly what they are supposed to get in their final analysis. |
This was in our plans for Invenio (i.e. it may be useful for other Invenio based sites, not only ODP) but we have not got to doing that yet... |
Now that basic histogramming is there, shall we revive this issue? @tpmccauley @katilp Are Hamborg files something we'd include in the portal? |
All files that CMS has opened (now or earlier) should be available from the portal. |
If we want the files available I can provide an XML file for the collection. |
The tar file at the bottom of the page: |
Do we have some description? @pherterich Can you take care of creating a record for the Hamburg files? |
I'll now add FFT files... |
* Adds data files for Hamburg records and amends installation instructions accordingly. (addresses cernopendata#203) (see PR cernopendata#493) Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
The files are there, so we can start thinking of ROOT file visualisations. CC @jirikuncar |
First step would be releasing “rootjs” as standalone javascript Bower package During my quick look inside the code I have just seen hardcoded variables that might cause problems in http://root.cern.ch/js/scripts/JSRootInterface.js // global variables
// source_dir is the variable defining where to take the scripts and the list tree icons
// To use the local ones (e.g. when checking out the files in a web server), just let it
// empty: var source_dir = "";
var source_dir = "http://root.cern.ch/js/"; |
I believe this is the canonical home: (BTW, see also https://github.com/rootpy for Pythonic bindings and WebOOT efforts) |
I don't see hardcoded stuff at but I may have not looked hard enough. |
The deployed version is probably older. @adavidzh are you planning to release it as a Bower package? |
(I CC-ed above @bellenot and @FonsRademakers who created rootjs) |
The blocker for easy integration is here. Can we separate the javascript library to separate github repo and load dependencies using requirejs? (cc @bellenot or @FonsRademakers) |
Can you @bellenot and @jirikuncar meet for a hacking hour and get this done? I'll be serving the coffee. |
@karies sure. I am available next week. Please write me an email to discuss details. Thanks |
Hi, Few weeks ago I tried to implement workaround for situation when require.js loaded on Open question is - could one use require.js functionality to load all required by JSROOT scripts? In simple case (drawing object from json file or http server) JSROOT loads only three scripts (including JSRootCore.js itself). Like: |
@tiborsimko can I close this or do you want to keep it? |
Just update on JSROOT - now it fully supports require.js for scripts loading. |
@adavidzh pointed me to this: http://root.cern.ch/js/
@katilp, @tiborsimko, @tpmccauley: Do you think it's worth pointing to this from our records that have ROOT files? Could be a separate field. It will allow anyone to visualise the file without needing to download the VM or ROOT, which can be rather advantageous. Alternatively (as a long-term solution, perhaps?), we could potentially work with the developers to integrate a (slimmed-down?) version of this on the ODP, like the event display.
Just thinking out loud here. Feel free to chime in, @adavidzh.
The text was updated successfully, but these errors were encountered: