Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > ab972abb34adf97ebe2e94ab6b5a0050 > files > 88

HippoDraw-1.21.1-14.fc15.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Documenation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="lib/hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.7.3 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<h1>Getting Started with HippoDraw without Python </h1>  </div>
</div>
<div class="contents">
<div class="textblock"><p>After starting the <b>HippoDraw</b> application, either as a stand a lone application or as Python extension module two windows should appear.</p>
<p>The left hand window is the canvas window upon which plots will be drawn. The right hand, smaller window is called the <b>Inspector</b>. One uses the <b>Inspector</b> create and modify plots in the canvas window.</p>
<p>An <a class="el" href="ntuple_root.html">data source</a> file can be imported using the file menu. See <a class="el" href="files_root.html">Data source file formats</a> for description of the file formats available.</p>
<p>To read a ROOT file, for example, click on the <b>File</b> menu at the upper left of the canvas window and select <b> Import ROOT ntuple</b>. as shown below</p>
<div align="center">
<img src="menu_file.png" alt="menu_file.png"/>
<p><strong>The file menu</strong></p></div>
 <p>A file browser should appear. A short cut to using the mouse to find the file is to type at least part of the path to the file and hitting <b>enter</b> as show below.</p>
<div align="center">
<img src="file_browser.png" alt="file_browser.png"/>
<p><strong>The file browser.</strong></p></div>
 <p>Then double click on the folder icons the remainder of the path until one finds the file as shown below.</p>
<div align="center">
<img src="file_browser1.png" alt="file_browser1.png"/>
<p><strong>The file browser with the file.</strong></p></div>
 <p>Then one can double click on the file name or click the <b>Open</b> button.</p>
<p>The following might appear in your shell window where you stared the application.</p>
<div class="fragment"><pre class="fragment">
&gt;&gt;&gt; Warning: environment variable ROOTSYS is not set. Standard include files ignored
Error: cannot open file "bool.h"  FILE: LINE:0
</pre></div><p>Well its true, you don't have to set shell environment <em>ROOTSYS</em> when reading ROOT files with <b>HippoDraw</b>. If seeing this message annoys you, set your <em>ROOTSYS</em> environment variable to anything and it will go away.</p>
<p>At this point, the Inspector will be showing you in its <b>NTuple</b> <b>name</b> box the name of the file and the name of the ROOT TTree that is ready to use.</p>
<p>To create a histogram, choose the variable you want to histogram from the <b>X:</b> combo box, then click on the <b>New</b> <b>plot</b> button.</p>
<p>At this point, the lower box of the Inspector shows status of currently selected plot as shown below</p>
<div align="center">
<img src="insp_data.png" alt="insp_data.png"/>
<p><strong>The Inspector showing selected plot.</strong></p></div>
 <p>You can modify it from there. For example, try putting the mouse cursor over the <b>X:</b> combo box and without clicking use the scroll wheel on the mouse. The histogram should change to the next variable in the ROOT file. Of course you can click on the combo box as well.</p>
<p>After changing the Y axis to a log scale in this example, the canvas window should appear like shown below.</p>
<div align="center">
<img src="hist_root.png" alt="hist_root.png"/>
<p><strong>The canvas window with a plot.</strong></p></div>
 <h2><a class="anchor" id="starting_links"></a>
Further reading</h2>
<p>For details on the Inspector, see <a class="el" href="inspector_root.html">Inspector Users Guide</a>.</p>
<p>For details on using the canvas window, see <a class="el" href="canvas_root.html">Canvas Window Users Guide</a>.</p>
<p>For use of <b>HippoDraw</b> from Python, see <a class="el" href="python_interact.html">Python extension module tutorial</a>. </p>
</div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>