[Clas12_software] ced "Plot Anything"

David Heddle david.heddle at cnu.edu
Fri Jan 8 14:46:41 EST 2016


The new ced (build 0.95.04) can create 1D histograms of *anything* and
scatter plots of *anything* vs. *anything*.

Here *anything* means any column in the set of blessed bank definitions
maintained by *coatjava*.

You can also apply multiple "range cuts".

This is all done in a simple point and click manner as I'll describe below.

First of all you need ced *0.95.04* or higher (available for download as
described in previous messages).

You should see a new menu on the main menu bar, the Define menu

[image: Inline image 1]


Let's define a histogram. Select Define Histogram..." You get a dialog:



[image: Inline image 2]


On the left are all the known banks. When you select a bank the right list
fills with the associated columns. On the far right you can set the number
of bins and the min and max. Or, if you have a fixed number of components
(such as wires) you can enter it in the bottom field (and hit return) and
it will fill out the other fields so you have one exactly bin per component
Id.

So I will select *DC:dgzt *and *wire* and set the number of components to
112


[image: Inline image 3]


After I hit OK It will add the histogram to the Define menu, and I can
bring it up empty. It looks like this:


[image: Inline image 4]


On the left I can add (and remove and disable) cuts-- for now only range
cuts. Suppose for some strange reason I only want to see all the wires with
*docas* less than 10. I create a cut by hitting the "add" button on the
left. I select *DC::dgtz* and *doca* and set the limits:


[image: Inline image 5]


The cut shows up in the table, if I click on it I get a description


[image: Inline image 6]

If I uncheck it the cut is still there but is inactive.

I can add as many cuts as a I want-- they will (for now) only be .AND.-ed
together.

When I am ready I accumulate as usual, resulting in


[image: Inline image 7]


Now for a scatter plot. Choose *Define Scatter Plot..*  Now you choose *two*
variables (you can make very nonsensical selections.) I will make a scatter
plot of *sdoca* vs. *stime* for DC


[image: Inline image 1]


After accumulating I get this scatter plot:


[image: Inline image 2]


which I hope makes sense!


Here we can see cuts working. I'll add two cuts: *stime* from 400 to 600
and *doca* from 0 to 24 giving (after clearing and re-accumulating)


[image: Inline image 3]

TODO:  The big next step is to allow you to save the definitions, so that
you do not have to redefine every time you launch ced.


-- 
David P. Heddle, Ph.D.
Professor of Physics
Christopher Newport University
Newport News, VA 23606

757.594.8434 (CNU)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 45165 bytes
Desc: not available
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 39409 bytes
Desc: not available
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 36756 bytes
Desc: not available
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 27050 bytes
Desc: not available
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 29991 bytes
Desc: not available
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 38597 bytes
Desc: not available
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0015.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 67183 bytes
Desc: not available
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0016.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 23222 bytes
Desc: not available
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0017.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 16940 bytes
Desc: not available
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0018.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 42995 bytes
Desc: not available
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20160108/4a1290d6/attachment-0019.png>


More information about the Clas12_software mailing list