javaROOT . . . . . . . Features Introduction . . . . - - PowerPoint PPT Presentation

javaroot
SMART_READER_LITE
LIVE PREVIEW

javaROOT . . . . . . . Features Introduction . . . . - - PowerPoint PPT Presentation

. . M. Lynch, M. Stanitzki, J. Strube July 2009 STFC Rutherford Appleton Laboratory J. Strube M. Stanitzki M. Lynch A Java Interface to ROOT javaROOT . . . . . . . Features Introduction . . . . javaROOT . Introduction M.


slide-1
SLIDE 1

. . . . . .

Introduction Features

. . . . . . .

javaROOT

A Java Interface to ROOT

  • M. Lynch
  • M. Stanitzki
  • J. Strube

Rutherford Appleton Laboratory STFC

July 2009

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-2
SLIDE 2

. . . . . .

Introduction Features

. Outline

. ..

1

Introduction javaROOT . ..

2

Features Histograms Trees Example

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-3
SLIDE 3

. . . . . .

Introduction Features javaROOT

. javaROOT

Allows creation of (not reading/modification of existing) ROOT files in Java. Provides access to some of the most commonly used features. (Further processing can then be carried out in dedicated ROOT scripts.) Runs on both Linux and Windows.

“Lets you get the data into ROOT.”

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-4
SLIDE 4

. . . . . .

Introduction Features javaROOT

. javaROOT

Allows creation of (not reading/modification of existing) ROOT files in Java. Provides access to some of the most commonly used features. (Further processing can then be carried out in dedicated ROOT scripts.) Runs on both Linux and Windows.

“Lets you get the data into ROOT.”

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-5
SLIDE 5

. . . . . .

Introduction Features javaROOT

. javaROOT

Allows creation of (not reading/modification of existing) ROOT files in Java. Provides access to some of the most commonly used features. (Further processing can then be carried out in dedicated ROOT scripts.) Runs on both Linux and Windows.

“Lets you get the data into ROOT.”

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-6
SLIDE 6

. . . . . .

Introduction Features javaROOT

. javaROOT

Allows creation of (not reading/modification of existing) ROOT files in Java. Provides access to some of the most commonly used features. (Further processing can then be carried out in dedicated ROOT scripts.) Runs on both Linux and Windows.

“Lets you get the data into ROOT.”

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-7
SLIDE 7

. . . . . .

Introduction Features javaROOT

. javaROOT

Allows creation of (not reading/modification of existing) ROOT files in Java. Provides access to some of the most commonly used features. (Further processing can then be carried out in dedicated ROOT scripts.) Runs on both Linux and Windows.

“Lets you get the data into ROOT.”

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-8
SLIDE 8

. . . . . .

Introduction Features javaROOT

. javaROOT

Allows creation of (not reading/modification of existing) ROOT files in Java. Provides access to some of the most commonly used features. (Further processing can then be carried out in dedicated ROOT scripts.) Runs on both Linux and Windows.

“Lets you get the data into ROOT.”

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-9
SLIDE 9

. . . . . .

Introduction Features Histograms Trees Example

. Histograms

Fill TH1Fs, TH1Ds, TH2Fs, TH2Ds and TProfiles. Syntax very close to corresponding ROOT calls, e.g.:

RootSession sess = new RootSession( "FromJava. root", "RECREATE", "Test", 1 ); sess.newTH1F( "demoA", "Title1", 100, 0, 1 ); sess.fillTH1F( "demoA", 0.9 ); sess.delete();

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-10
SLIDE 10

. . . . . .

Introduction Features Histograms Trees Example

. Histograms

Fill TH1Fs, TH1Ds, TH2Fs, TH2Ds and TProfiles. Syntax very close to corresponding ROOT calls, e.g.:

RootSession sess = new RootSession( "FromJava. root", "RECREATE", "Test", 1 ); sess.newTH1F( "demoA", "Title1", 100, 0, 1 ); sess.fillTH1F( "demoA", 0.9 ); sess.delete();

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-11
SLIDE 11

. . . . . .

Introduction Features Histograms Trees Example

. Histograms

Fill TH1Fs, TH1Ds, TH2Fs, TH2Ds and TProfiles. Syntax very close to corresponding ROOT calls, e.g.:

RootSession sess = new RootSession( "FromJava. root", "RECREATE", "Test", 1 ); sess.newTH1F( "demoA", "Title1", 100, 0, 1 ); sess.fillTH1F( "demoA", 0.9 ); sess.delete();

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-12
SLIDE 12

. . . . . .

Introduction Features Histograms Trees Example

. Histograms

Fill TH1Fs, TH1Ds, TH2Fs, TH2Ds and TProfiles. Syntax very close to corresponding ROOT calls, e.g.:

RootSession sess = new RootSession( "FromJava. root", "RECREATE", "Test", 1 ); sess.newTH1F( "demoA", "Title1", 100, 0, 1 ); sess.fillTH1F( "demoA", 0.9 ); sess.delete();

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-13
SLIDE 13

. . . . . .

Introduction Features Histograms Trees Example

. Trees

Fill TTrees. Basic structure—only simple branches. Only supports branches of floats, ints, doubles and bools. (Additional types could be added manually.)

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-14
SLIDE 14

. . . . . .

Introduction Features Histograms Trees Example

. Trees

Fill TTrees. Basic structure—only simple branches. Only supports branches of floats, ints, doubles and bools. (Additional types could be added manually.)

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-15
SLIDE 15

. . . . . .

Introduction Features Histograms Trees Example

. Trees

Fill TTrees. Basic structure—only simple branches. Only supports branches of floats, ints, doubles and bools. (Additional types could be added manually.)

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-16
SLIDE 16

. . . . . .

Introduction Features Histograms Trees Example

. Trees

Fill TTrees. Basic structure—only simple branches. Only supports branches of floats, ints, doubles and bools. (Additional types could be added manually.)

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-17
SLIDE 17

. . . . . .

Introduction Features Histograms Trees Example

. Trees

sess.newTTree( "demoT", "TestTree", 99 ); sess.branchTTreeFloat( "demoT", "fX" ); sess.branchTTreeFloat( "demoT", "fY" ); sess.branchTTreeFloat( "demoT", "fZ" ); 5 sess.setupTTree( "demoT" ); sess.fillBranchFloat( "demoT", "fZ", (float) r. nextGaussian() ); sess.fillBranchFloat( "demoT", "fX", (float) r. nextGaussian() ); sess.fillBranchFloat( "demoT", "fY", (float) r. nextGaussian() ); sess.fillTTree( "demoT" ); 10 sess.delete();

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-18
SLIDE 18

. . . . . .

Introduction Features Histograms Trees Example

. Example

(a) ROOT (b) JAS3

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT

slide-19
SLIDE 19

. . . . . .

Introduction Features

Available to download from

https://heplnm061.pp.rl.ac.uk/repos/javaROOT/trunk

  • M. Lynch, M. Stanitzki, J. Strube

javaROOT