SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Comp. Search
Who's who?
Meetings
FAQ Homepage
Archive
Environment
Administration
New User Info.
Web Info/Tools
Monitoring
Training
Tools & Utils
Programming
C++ Standard
SRT, AFS, CVS
QA and QC
Remedy
Histogramming
Operations
PromptReco
Simulation Production
Online SW
Dataflow
Detector Control
Evt Processing
Run Control
Calibration
Databases
Offline
Workbook
Coding Standards
Simulation
Reconstruction
Prompt Reco.
BaBar Grid
Data Distribution
Beta & BetaTools
Kanga & Root
Analysis Tools
RooFit Toolkit
Data Management
Data Quality
Event display
Event Browser
Code releases
Databases
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)

Probably the easiest way to start with HTML/XML is to look at already existing files in the XxxMonTools packages, or:

  • Start JAS3 and connect to the Dhp Server
  • Navigate JAS3 Tree (left panel) to the histogram that you want and double-click on it
  • Select "Plot Properties..." item from the popup menu on the plot and modify the plot to look the way you want it
  • Select "Save Plot As..." item from the popup menu on the plot and choose "XML Plot File (.plotml)" format
  • Edit created file with some text editor and
    • Replace whole tag <bins1d .....  </bins1d> with  tag <class name="org.freehep.jas.extension.aida.AIDATreeDataSourceProvider"  param="path"/> where "path" is exact path to the hisogram
    • Change "width" and "height" values in the <bounds> tag at the end of the file
  •  

    Also you might want to have a look at the JAS2 Babar-Jas-XML How-To which provides detailed instructions for using XML with jas2 to specify histogram formatting on HTML pages. Small differences in HTML and XML code between JAS2 and JAS3 are summarized here.

    For the full list of XML tags and attributes, please have a look at the plotML.dtd document or download it.

    Note: In general, tags, parameter names, and values are NOT case-sensitive. Exceptions are: value of "classID" attribute, value of "xmlURL" parameter, and name and value of the "class" XML tag - you need to give exact class names and exact path to the plot data.

     

    • Example of HTML code:

    <html>
        <head>
            <title>How to include live plots in JAS3 HTML Pages</title>
        </head>
        <body>
            <h1 align="center">HTML/XML Example</h1>
            <center>
                <p><h3>Histogram 1D</h3></p>

                <object classid="hep.babar.JasExtensions.Jas3XMLPlot">
                    <param name="xmlURL" value="myfile.xml">
                </object>

            </center>
        </body>
    </html>

     

    • Examples of myfile.xml :

    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE plotML SYSTEM "plotML.dtd">
    <plotML>
        <plot>
            <title>
                <border type="None"/>
                <label text="Title 1D">
                    <font style="BOLD" points="14" face="SansSerif"/>
                </label>
            </title>
            <dataArea>
                <border type="None"/>
                <colorScheme backgroundColor="(51,255,255)"/>
                <data1d axis="y0">
                    <class name="org.freehep.jas.extension.aida.AIDATreeDataSourceProvider"
                      param="Histograms/Histogram 1D"/>
                </data1d>
                <axis location="x0" logarithmic="false" showOverflows="false" allowSuppressedZero="true" type="double">
                    <font face="Dialog" points="12" style="PLAIN"/>
                </axis>
                <axis location="y0" logarithmic="false" showOverflows="false" allowSuppressedZero="true" type="double">
                    <font face="Dialog" points="12" style="PLAIN"/>
                </axis>
            </dataArea>
            <bounds width="600" height="400"/>
            <colorScheme backgroundColor="(255,204,51)"/>
        </plot>
    </plotML>
     


    Maintained by Victor Serbo, serbo@slac.stanford.edu
    Last Modified May 26, 2006