• Stars
    star
    187
  • Rank 206,464 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

JavaScript ROOT

JavaScript ROOT

JavaScript ROOT provides interactive ROOT-like graphics in the web browsers and in node.js. Data can be read and displayed from ROOT binary and JSON files. JSROOT implements user interface for THttpServer class.

Examples

Color draw for TH2 2-dimensional TTree::Draw with cut options Several variants of THStack drawing Drawing of TGeo model superimposed with tracks and hits

In web browser

...
   <body>
      <div id="drawing" style="width:800px; height:600px"></div>
   </body>
   <script type='module'>
      import { openFile, draw } from 'https://root.cern/js/latest/modules/main.mjs';
      let file = await openFile('https://root.cern/js/files/hsimple.root');
      let obj = await file.readObject('hpxpy;1');
      draw('drawing', obj, 'colz');
   </script>
...

In node.js

import { openFile, makeSVG } from 'jsroot';
import { writeFileSync } from 'fs';
let file = await openFile('https://root.cern/js/files/hsimple.root');
let obj = await file.readObject('hpxpy;1');
let svg = await makeSVG({ object: obj, option: 'lego2,pal50', width: 1200, height: 800 });
writeFileSync('lego2.svg', svg);

More examples

Supported classes/options

API examples

Install

npm install jsroot

Documentation

Tutorial

THttpServer

Changelog

Reference API

Links

https://root.cern/js/

https://jsroot.gsi.de

More Repositories

1

cling

The cling C++ interpreter
C++
3,472
star
2

root

The official repository for ROOT: analyzing, storing and visualizing big data, scientifically
C++
2,676
star
3

training

ROOT training material and tutorials
Jupyter Notebook
127
star
4

veccore

C++ Library for Portable SIMD Vectorization
C++
79
star
5

roottest

The ROOT test suite
C++
39
star
6

NotebookPrimer

The interactive ROOT Primer based on Jupyter notebooks
Jupyter Notebook
33
star
7

root-docker

Docker recipes for ROOT
Dockerfile
31
star
8

web

root.cern
Python
29
star
9

software-carpentry

ROOT material for Software Carpentries
Jupyter Notebook
23
star
10

student-course

ROOT course for students
Jupyter Notebook
22
star
11

rootbench

Collection of benchmarks and performance monitoring applications
C++
20
star
12

jenkins-pipelines

Pipelines for building ROOT on pipeline jobs in Jenkins
Groovy
13
star
13

docker-examples

Examples for using the ROOT Docker container.
C
12
star
14

vecmath

SIMD Vectorization Math Library, built on top of veccore
CMake
9
star
15

root-evolution

JavaScript
6
star
16

rootspi

Infrastructure scripts: Jenkins, documentation, etc.
Python
5
star
17

analysis-grand-challenge

The Analysis Grand Challenge benchmarks with ROOT
Python
5
star
18

gcc-problem-matcher-improved

Creates annotations for compiler warnings and errors in GitHub Workflows
JavaScript
3
star
19

root-ci-images

Images for the ROOT continuous integration system
Dockerfile
3
star
20

opendata-benchmarks

Example repository showing benchmarks with open data
C++
3
star
21

summer-student-course

Exercises for the ROOT Summer Student course at CERN
Jupyter Notebook
2
star
22

doxyvers

Version selection for Doxygen documentation
JavaScript
1
star
23

annotation-failure-action

GitHub action that extends the usage of workflow annotations
JavaScript
1
star