Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

...

For plotting and fitting, org.lcsim provides an implementation of the Abstract Interfaces for Data Analysis AIDA.
AIDA objects is organized in Trees, which can have a directory structure like a file system.
This tutorial will assume that you are working in JAS3 and have either loaded an existing AIDA file or created objects in AIDA with the org.lcsim plugin. For a first introduction how to create AIDA objects, you could execute one of the AIDA examples or one of the org.lcsim examples in JAS3 or follow Explanation of Analysis101

...

AIDA provides two different kinds of histograms: binned and unbinned.
Binned histograms are called IHistogram1D, IHistogram2D, IHistogram3D for one, two and three-dimensional histograms.
Similarly, unbinned histograms are called ICloud1D, ICloud2D, ICloud3D

Getting started

...

Driver. If you have executed some of the org.lcsim examples in JAS3, you have already used AIDA in lines like these:

Code Block
AIDA aida = AIDA.defaultInstance();
...
aida.cloud1D("nTracks").fill(tracks.size());

...

Teminology
Anchor
Terminology
Terminology

Class name of the AIDA object

Description

IHistogram1D, -2D, -3D

One-, two- and three-dimensional binned histograms

  • fixed and variable width binning
  • support for simple arithmetic
  • projections
  • slices

ICloud1D, -2D, -3D

One, two and three-dimensional unbinned histograms

  • scatter plots
  • can be (auto-)converted to histograms

IProfile1D, IProfile2D

One- and two-dimensional profile plots

  • access to bin and overall statistics
  • scaling

IDataPointSet1D, -2D, -3D

Sets of one, two- and three-dimensional data points with errors

  • add, remove, get points
  • scaling of values and errors
  • simple arithmetic
  • simple error propagation

ITuple

Tuple structure for persistence

  • data arranged in folders and sub-folders
  • chaining
  • projections to histograms, clouds and profiles

Viewing and Loading Plots
Anchor
Viewing and Loading Plots
Viewing and Loading Plots

Lets start with viewing AIDA objects. You can either create them with the AIDA examples, the org.lcsim examples or you can load an existing AIDA file with File->Open File... in the menu.
All AIDA objects are arranged in trees. You can have many trees open at the same time; they are represented as Folders, . Trees can contain, e.g. Clouds and/or Histograms , with the name of the object appearing next to it. If a folder is closed, double-clicking will open it and display its contents. Similarly, double-clicking on an open folder will close it, so that the contents are hidden.

...

In order to display an item together with an already displayed item, select Overlay on Current Plot from the context menu

Saving your work
Anchor
Saving your work
Saving your work

Saving your plots as image files
Anchor
Saving your plots as image files
Saving your plots as image files

Tip

If you just want to include the plot in your presentation, you can copy it to the clipboard with Copy Plot... from the context menu. From there you can insert it into your presentation with the Edit->Paste menu entry of your presentation application.

JAS3 supports various graphics formats, for both bitmap and vector graphics.

...

Changing the statistics box
Anchor
Changing the statistics box
Changing the statistics box

You can select what information should be displayed in the statistics box by right-clicking on the statistics box and selecting Statistics Properties.... If you want the statistics box to disappear completely, right-click on the main plot and select Show Statistics. This entry is also used to make the box re-appear.

Tip
titleLabel Box

There is currently no option in JAS3 to make the label box disappear. If, for some reason, you do not want to have it displayed, you can select it and resize it to a size of 0.

Basic Fitting
Anchor
Basic Fitting
Basic Fitting

...

Before re-fitting the function, make sure the indicators of all parameters that you want included in the fit are checked. You can modify the Values of each Parameters, which will then be used as the new starting point for the fit. Click the checkbox labelled Fit to uncheck it, then click it again to start the new fit.

For further information on fitting, please visit Fitting Through The GUI and Fitting Tutorial

Advanced Tutorials
Anchor
Advanced Tutorials
Advanced Tutorials

...