Here is a possible outline for this section:
It would probably be best done with more than one page.
--Jeremy M.
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.
If you have executed some of the examples in JAS3, you have already used AIDA in lines like these:
AIDA aida = AIDA.defaultInstance(); ... aida.cloud1D("nTracks").fill(tracks.size()); |
These lines create and fill an unbinned one-dimensional histogram named nTracks with the return value of tracks.size()
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
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.
Trees that are created by the org.lsim examples will have non-descriptive names like |
A double-click on a Cloud or a Histogram will cause JAS3 to plot the contents.
Clouds are automatically displayed with 50 bins over the range of the data. |
If the active page shows source code or the examples, double clicking on an item in the tree will create a new plot page and display the item. |
If you want to display more than one plot on a page, you have to use the context menu.
|
In order to display an item together with an already displayed item, select Overlay on Current Plot
from the context menu
JAS3 supports various graphics formats, for both bitmap and vector graphics.
Bitmap graphics are not scalable. JAS3 saves all Plots in their current size. Please make sure to draw the window to the desired width before saving in a bitmap format. |
The following list gives a brief description of the most often used formats
|
Saving Plots is a trivial task in JAS3:
File->Save As...
Save Plot As...
|
In order to save your whole tree with all Cloud and Histogram objects, right-click on the folder icon , and select Save As...
from the context menu. Please select a filename with the extension .aida
so that you will be able to recognize the file later.
Thanks to the close integration of JAS3 and AIDA, a plethora of manipulations is availabe via menus and dialogs. This tutorial can merely give an overview over the most commonly used ones.
Plot Properties...
from the menu. You will see tabs that represent different regions of the plot.You can change the font of the title or the axis labels. Open the context menu of the label you want to change by right-clicking on the text. The first item in the context menu is either Title Font...
or Axis Font...
depending on where you click.
When overlaying two or more histograms, oftentimes important information is hidden behind the opaque histogram bars. In this case it is convenient to access the context menu with a right click and selecting Fill Histogram Bars
. More sophisticated changes can be made by accessing the Plot Properties...
dialog from the context menu. The Data tab shows all data sets contained in the current plot. Click each data set to access its options. After changing an option, click the Apply button to see the changes.
You can select for each data set whether you want to display it. JAS3 has also the option to plot a secondary Y Axis. You can select which of the two possible axes to associate your data with.
1D Plot Style/2D Plot Style
: This is where you change the color and appearance of each plot. Click apply after your changes to confirm that this is what you wanted|