...
- usage of the static AIDA defaultInstance
- defining each type (e.g. bin sizes for histograms, etc.)
- filling each type
- creating plots from a sample Driver (use Analysis101 or some other template)
- changing axis range min/max
- changing to log scale
- modifying fields that show in statistics box
...
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:
Code Block |
---|
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()
Teminology
Anchor | ||||
---|---|---|---|---|
|
...
Creating histograms in org.lcsim
Anchor | ||||
---|---|---|---|---|
|
If you have executed some of the examples in JAS3, you have already used AIDA in lines like these:
Code Block |
---|
AIDA aida = AIDA.defaultInstance();
...
aida.cloud1D("nTracks").fill(tracks.size());
|
We will now go through the necessary steps to create and fill an AIDA histogram with data from an event. If you don't know how to read data from an event, please follow the
Viewing and Loading Plots
Anchor | ||||
---|---|---|---|---|
|
...
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, line width and other display properties of each plot. Click apply after your changes to confirm that this is what you wanted.
Basic Fitting
Anchor | ||||
---|---|---|---|---|
|
...