artdaq_node_server  v1_00_11
 All Classes Namespaces Files Variables
Namespaces | Variables
JSRootCore.js File Reference

Go to the source code of this file.

Namespaces

 JSROOT
 

Variables

function JSROOT version = "3.1a 9/12/2014"
 
JSROOT source_dir
 
JSROOT clone
 
JSROOT function_list = []
 
JSROOT BIT
 
JSROOT EAxisBits
 
JSROOT JSONR_unref
 
JSROOT Math = {}
 
JSROOT Math lgam
 
JSROOT Math Polynomialeval
 
JSROOT Math Polynomial1eval
 
JSROOT Math ndtri
 
JSROOT Math igami
 
JSROOT Math gamma_quantile_c
 
JSROOT Math gamma_quantile
 
JSROOT Math log10
 
JSROOT Math landau_pdf
 
JSROOT Math Landau
 
JSROOT Math gaus
 
JSROOT Math gausn
 
JSROOT Math expo
 
JSROOT Math landau
 
JSROOT Math landaun
 

Detailed Description

Core methods of JavaScript ROOT

Definition in file JSRootCore.js.

Variable Documentation

JSROOT BIT
Initial value:
= function(n) { return 1 << (n); }
JSROOT.TH1StatusBits = {
kNoStats : JSROOT.BIT(9),
kUserContour : JSROOT.BIT(10),
kCanRebin : JSROOT.BIT(11),
kLogX : JSROOT.BIT(15),
kIsZoomed : JSROOT.BIT(16),
kNoTitle : JSROOT.BIT(17),
kIsAverage : JSROOT.BIT(18)
}

Definition at line 46 of file JSRootCore.js.

JSROOT clone
Initial value:
= function(obj) {
return jQuery.extend(true, {}, obj);
}
JSROOT.id_counter = 0

Definition at line 38 of file JSRootCore.js.

JSROOT EAxisBits
Initial value:
= {
kTickPlus : JSROOT.BIT(9),
kTickMinus : JSROOT.BIT(10),
kAxisRange : JSROOT.BIT(11),
kCenterTitle : JSROOT.BIT(12),
kCenterLabels : JSROOT.BIT(14),
kRotateTitle : JSROOT.BIT(15),
kPalette : JSROOT.BIT(16),
kNoExponent : JSROOT.BIT(17),
kLabelsHori : JSROOT.BIT(18),
kLabelsVert : JSROOT.BIT(19),
kLabelsDown : JSROOT.BIT(20),
kLabelsUp : JSROOT.BIT(21),
kIsInteger : JSROOT.BIT(22),
kMoreLogLabels : JSROOT.BIT(23),
kDecimals : JSROOT.BIT(11)
}

Definition at line 59 of file JSRootCore.js.

JSROOT Math expo
Initial value:
= function(f, x, i) {
return Math.exp(f['fParams'][i+0] + f['fParams'][i+1] * x);
}

Definition at line 2020 of file JSRootCore.js.

JSROOT Math gamma_quantile
Initial value:
= function(z, alpha, theta) {
return theta * this.igami( alpha, 1.- z);
}

Definition at line 1940 of file JSRootCore.js.

JSROOT Math gamma_quantile_c
Initial value:
= function(z, alpha, theta) {
return theta * this.igami( alpha, z);
}

Definition at line 1936 of file JSRootCore.js.

JSROOT Math gaus
Initial value:
= function(f, x, i) {
return f['fParams'][i+0] * Math.exp(-0.5 * Math.pow((x-f['fParams'][i+1]) / f['fParams'][i+2], 2));
}

Definition at line 2012 of file JSRootCore.js.

JSROOT Math gausn
Initial value:
= function(f, x, i) {
return JSROOT.Math.gaus(f, x, i)/(Math.sqrt(2 * Math.PI) * f['fParams'][i+2]);
}

Definition at line 2016 of file JSRootCore.js.

JSROOT Math Landau
Initial value:
= function(x, mpv, sigma, norm) {
if (sigma <= 0) return 0;
var den = JSROOT.Math.landau_pdf((x - mpv) / sigma, 1, 0);
if (!norm) return den;
return den/sigma;
}

Definition at line 2005 of file JSRootCore.js.

JSROOT Math landau
Initial value:
= function(f, x, i) {
return JSROOT.Math.Landau(x, f['fParams'][i+1],f['fParams'][i+2], false);
}

Definition at line 2024 of file JSRootCore.js.

JSROOT Math landaun
Initial value:
= function(f, x, i) {
return JSROOT.Math.Landau(x, f['fParams'][i+1],f['fParams'][i+2], true);
}

Definition at line 2028 of file JSRootCore.js.

JSROOT Math log10
Initial value:
= function(n) {
return Math.log(n) / Math.log(10);
}

Definition at line 1944 of file JSRootCore.js.

JSROOT Math Polynomial1eval
Initial value:
= function(x, a, N) {
if (N==0) return a[0];
else {
var pom = x + a[0];
pom = pom *x + a[i];
return pom;
}
}

Definition at line 1710 of file JSRootCore.js.

JSROOT Math Polynomialeval
Initial value:
= function(x, a, N) {
if (N==0) return a[0];
else {
var pom = a[0];
pom = pom *x + a[i];
return pom;
}
}

Definition at line 1696 of file JSRootCore.js.

JSROOT source_dir
Initial value:
= function(){
var scripts = document.getElementsByTagName('script');
for (var n in scripts) {
if (scripts[n]['type'] != 'text/javascript') continue;
var src = scripts[n]['src'];
if ((src == null) || (src.length == 0)) continue;
var pos = src.indexOf("scripts/JSRootCore.js");
if (pos<0) continue;
console.log("Set JSROOT.source_dir to " + src.substr(0, pos));
return src.substr(0, pos);
}
return "";
}()

Definition at line 19 of file JSRootCore.js.