The JAS Tuple Explorer is a tool for creating plots from tabular data (or N-tuples). We will be using it to analyze the output of our calorimeter job. We assume that you have downloaded and successfully installed it.
Start up JTE. We will be analyzing the text file we wrote out from the calorimeter analysis job, so we select "File-> Open Data Source-> Flat File"

The default output filename from our analysis is SingleParticleLayerFits.txt, so use "Browse" to navigate to the directory where this file is stored and select it. Set the column delimiter to "Whitespace" and check the "First line contains column headers" box, since we have written the variable names to the first line of our file.

Clicking on "Finish" loads the data in our file and brings up a folder named "SingleParticleLayerFits". Double-clicking on this folder will open it and list our variables.

To plot the variables we need to open a plot window. This we do using "File->New Page".

Simply dragging the variable name onto our plot window will result in a histogram being filled and displayed. Here we demonstrate the calorimeter type "caltype", and see that we have HAD and EM calorimeter types.

We will want to make plots of variables (e.g. layer) based on the type of calorimeter that we are dealing with so we need to introduce a cut which will allow us to select on this variable. To do so, click on "Tuple-> Add Cut...".

Select "General Cut" and fill in as shown below. We will explore the other types of cuts at some later time.

The cut now appears in our list of variables. Double-clicking on it allows us to modify it, if necessary.

To see how to use this cut, let us make a profile plot of the gaussian fit amplitude as a function of the calorimeter layer. Select the two input variables by clicking on "amplitude" and then Ctrl-clicking on "layer". Then select "Tuple->Profile Plot"

and the following plot will be displayed:

Note that the layer variable is that of the HAD calorimeter, since the cut which we defined earlier is automatically applied. To view the same plot for the EM calorimeter we need to modify the cut. To do so, right-click on the body of the plot, bringing up the following menu:

Selecting "Cuts..." brings up the following menu, allowing modifications to be made.

We will simply invert the cut by selecting "Inverted", resulting in the following plot of amplitude versus layer in the EM calorimeter.

One can also view the default set of cuts by selecting "Tuple->Show Default Cut Set"
Note that all the histogram functionality (e.g. rebinning, fitting) familiar from within JAS is available here as well.
Let's stop here, save our work (select "File->Save" and fill in the path to where you wish to store your results) and resume later.
Important note: The JAS Tuple Explorer is at a very early stage of development, in particular a lot of work remains to be done on fixing bugs and improving performance and reliability and in making the GUI easy to use (at the moment menus are placed in semi-random places and some actions are not at all intuitive). The main purpose in releasing this version now is to get feedback on the proposed feature set.