Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 1937

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_bbb601e95d88b45de88eccde06bf6018.html">root</a>
  </div>
</div>
<div class="contents">
<h1>RootBranch.cxx</h1><a href="RootBranch_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="RootBranch_8h.html" title="hippodraw::RootBranch class interface.">RootBranch.h</a>&quot;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;<a class="code" href="Range_8h.html" title="hippodraw::Range class interface">axes/Range.h</a>&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="keyword">using</span> std::string;
<a name="l00019"></a>00019 <span class="keyword">using</span> std::vector;
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="keyword">using namespace </span>hippodraw;
<a name="l00022"></a>00022 
<a name="l00026"></a>00026 RootBranch::
<a name="l00027"></a><a class="code" href="classhippodraw_1_1RootBranch.html#aea32415e05d383127033c0b5fec908d0">00027</a> RootBranch ( <a class="code" href="classTBranch.html" title="The ROOT TBranch class.">TBranch</a> * branch )
<a name="l00028"></a>00028   : m_branch ( branch ),
<a name="l00029"></a>00029     m_vector_double_data ( 0 ),
<a name="l00030"></a>00030     m_vector_float_data ( 0 ),
<a name="l00031"></a>00031     m_vector_int_data ( 0 ),
<a name="l00032"></a>00032     m_vector_uint_data ( 0 ),
<a name="l00033"></a>00033     m_vector_ulong64_data ( 0 ),
<a name="l00034"></a>00034     m_releventIndex ( -1 ),
<a name="l00035"></a>00035     m_branch_set ( false ),
<a name="l00036"></a>00036     m_useable ( true )
<a name="l00037"></a>00037 {
<a name="l00038"></a>00038   TObjArray * leaves = branch -&gt; GetListOfLeaves ();
<a name="l00039"></a>00039   <a class="code" href="classhippodraw_1_1RootBranch.html#afadfc0061eb2908af8246e577b1ee879" title="The number of TLeaf objects on this TBranch.">m_number_leaves</a> = leaves -&gt; GetEntries ();
<a name="l00040"></a>00040 
<a name="l00041"></a>00041   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#afadfc0061eb2908af8246e577b1ee879" title="The number of TLeaf objects on this TBranch.">m_number_leaves</a> == 1 )
<a name="l00042"></a>00042     {
<a name="l00043"></a>00043       TObject * <span class="keywordtype">object</span> = leaves -&gt; At ( 0 );
<a name="l00044"></a>00044       <a class="code" href="classhippodraw_1_1RootBranch.html#a6fd6187526ec064c8b33ed1aa44a79eb" title="The ROOT TLeaf which described the data in this branch.">m_leaf</a> = dynamic_cast &lt; <a class="code" href="classTLeaf.html" title="The ROOT TLeaf class.">TLeaf</a> * &gt; ( object );
<a name="l00045"></a>00045       assert ( <a class="code" href="classhippodraw_1_1RootBranch.html#a6fd6187526ec064c8b33ed1aa44a79eb" title="The ROOT TLeaf which described the data in this branch.">m_leaf</a> != 0 );
<a name="l00046"></a>00046       <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="namespacenum__util.html#af7e893a8c6a5f6a426480fc85cda4fa1">type</a> = <a class="code" href="classhippodraw_1_1RootBranch.html#a6fd6187526ec064c8b33ed1aa44a79eb" title="The ROOT TLeaf which described the data in this branch.">m_leaf</a> -&gt; GetTypeName ();
<a name="l00047"></a>00047 
<a name="l00048"></a>00048       <span class="keywordflow">if</span> ( type == <span class="stringliteral">&quot;Double_t&quot;</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> = <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7afb7825ebed9ad96348ee8588d84db633" title="double type.">RootData::Double</a>;
<a name="l00049"></a>00049       <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( type == <span class="stringliteral">&quot;Float_t&quot;</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> = <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ad67b0ee7230dcecb610254e4e5e589cd" title="float type.">RootData::Float</a>;
<a name="l00050"></a>00050       <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( type == <span class="stringliteral">&quot;Int_t&quot;</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> = <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a637b69dea56f804278aa50e975337e01" title="int type.">RootData::Int</a>;
<a name="l00051"></a>00051       <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( type == <span class="stringliteral">&quot;Short_t&quot;</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> = <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7af5a4874501b800b316e5817874430c98" title="signed 16 bit integer.">RootData::Short</a>;
<a name="l00052"></a>00052       <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( type == <span class="stringliteral">&quot;UShort_t&quot;</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> = <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ac43fe1561fc9b1fe7b68f3dbe423cd64" title="unsigned 16 bit integer.">RootData::UShort</a>;
<a name="l00053"></a>00053       <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( type == <span class="stringliteral">&quot;UInt_t&quot;</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> = <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a8a99cd949aaf36b4e7f09f0bc2afb066" title="unsigned int type.">RootData::UInt</a>;
<a name="l00054"></a>00054       <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( type == <span class="stringliteral">&quot;Long64_t&quot;</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> = <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a78942d7e663c05878852f063a8bdc08e" title="signed 64 bit long.">RootData::Long64</a>;
<a name="l00055"></a>00055       <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( type == <span class="stringliteral">&quot;ULong64_t&quot;</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> = <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a61d70c31564ff70b961f55224cd42874" title="unsigned 64 bit long.">RootData::ULong64</a>;
<a name="l00056"></a>00056       <span class="keywordflow">else</span> {
<a name="l00057"></a>00057         <a class="code" href="classhippodraw_1_1RootBranch.html#a0a0c9c620de246d6d6deb10d93bfb885" title="Set to false if the branch is not usable.">m_useable</a> = <span class="keyword">false</span>;
<a name="l00058"></a>00058       }
<a name="l00059"></a>00059       <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> = <a class="code" href="classhippodraw_1_1RootBranch.html#a6fd6187526ec064c8b33ed1aa44a79eb" title="The ROOT TLeaf which described the data in this branch.">m_leaf</a> -&gt; GetLen();
<a name="l00060"></a>00060     }
<a name="l00061"></a>00061   <span class="keywordflow">try</span> {
<a name="l00062"></a>00062     <a class="code" href="classhippodraw_1_1RootBranch.html#a239f50a5089b797a39c00200bf462796" title="From the root title, which is of format &amp;quot;name[x][y][z]&amp;quot;, gets the sizes...">initShape</a> ( <a class="code" href="classhippodraw_1_1RootBranch.html#a6fd6187526ec064c8b33ed1aa44a79eb" title="The ROOT TLeaf which described the data in this branch.">m_leaf</a> -&gt; GetTitle() );
<a name="l00063"></a>00063   }
<a name="l00064"></a>00064   <span class="keywordflow">catch</span> ( ... ) {
<a name="l00065"></a>00065     <a class="code" href="classhippodraw_1_1RootBranch.html#a0a0c9c620de246d6d6deb10d93bfb885" title="Set to false if the branch is not usable.">m_useable</a> = <span class="keyword">false</span>;
<a name="l00066"></a>00066   }
<a name="l00067"></a>00067 }
<a name="l00068"></a>00068 
<a name="l00069"></a>00069 <a class="code" href="classhippodraw_1_1RootBranch.html#ade570d4f174405e3cbfb1c42f594544c" title="The default constructor.">RootBranch::</a>
<a name="l00070"></a><a class="code" href="classhippodraw_1_1RootBranch.html#ade570d4f174405e3cbfb1c42f594544c">00070</a> <a class="code" href="classhippodraw_1_1RootBranch.html#ade570d4f174405e3cbfb1c42f594544c" title="The default constructor.">RootBranch</a> ()
<a name="l00071"></a>00071   : m_branch ( 0 ),
<a name="l00072"></a>00072     m_releventIndex ( -1 ),
<a name="l00073"></a>00073     m_branch_set ( false )
<a name="l00074"></a>00074 {
<a name="l00075"></a>00075 }
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <a class="code" href="classhippodraw_1_1RootBranch.html#ab381b81b59f8fc3c508d5929c7ec77b6" title="The destructor.">RootBranch::</a>
<a name="l00078"></a><a class="code" href="classhippodraw_1_1RootBranch.html#ab381b81b59f8fc3c508d5929c7ec77b6">00078</a> <a class="code" href="classhippodraw_1_1RootBranch.html#ab381b81b59f8fc3c508d5929c7ec77b6" title="The destructor.">~RootBranch</a>()
<a name="l00079"></a>00079 {
<a name="l00080"></a>00080 }
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>
<a name="l00083"></a>00083 <a class="code" href="classhippodraw_1_1RootBranch.html#a90ca964ebcc1b02bbcde225edd49e812" title="Returns the size of the slice for the next to last dimension.">RootBranch::</a>
<a name="l00084"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a90ca964ebcc1b02bbcde225edd49e812">00084</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a90ca964ebcc1b02bbcde225edd49e812" title="Returns the size of the slice for the next to last dimension.">size</a> ()<span class="keyword"> const</span>
<a name="l00085"></a>00085 <span class="keyword"></span>{
<a name="l00086"></a>00086   assert ( <span class="keyword">false</span> ); <span class="comment">// branch doesn&#39;t know its size yet</span>
<a name="l00087"></a>00087 
<a name="l00088"></a>00088   <span class="keywordflow">return</span> 0;
<a name="l00089"></a>00089 }
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="keywordtype">bool</span>
<a name="l00093"></a>00093 <a class="code" href="classhippodraw_1_1RootBranch.html#ac6e61de369e994009e36f344f99c15ad" title="Returns true, if RootBranch is empty, i.e.">RootBranch::</a>
<a name="l00094"></a><a class="code" href="classhippodraw_1_1RootBranch.html#ac6e61de369e994009e36f344f99c15ad">00094</a> <a class="code" href="classhippodraw_1_1RootBranch.html#ac6e61de369e994009e36f344f99c15ad" title="Returns true, if RootBranch is empty, i.e.">empty</a> ()<span class="keyword"> const</span>
<a name="l00095"></a>00095 <span class="keyword"></span>{
<a name="l00096"></a>00096   <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00097"></a>00097 }
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="keywordtype">bool</span>
<a name="l00100"></a>00100 <a class="code" href="classhippodraw_1_1RootBranch.html#a7cd67e73d5824181a161a2a70099686f">RootBranch::</a>
<a name="l00101"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a7cd67e73d5824181a161a2a70099686f">00101</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a7cd67e73d5824181a161a2a70099686f">isFilled</a> ( )<span class="keyword"> const</span>
<a name="l00102"></a>00102 <span class="keyword"></span>{
<a name="l00103"></a>00103   <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00104"></a>00104 }
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="keywordtype">bool</span>
<a name="l00107"></a>00107 <a class="code" href="classhippodraw_1_1RootBranch.html#a581595888ce5861859339801b1afd171" title="Returns true if data sitting in the rows of this branch is and array.">RootBranch::</a>
<a name="l00108"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a581595888ce5861859339801b1afd171">00108</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a581595888ce5861859339801b1afd171" title="Returns true if data sitting in the rows of this branch is and array.">isMultiDimensional</a>()<span class="keyword"> const</span>
<a name="l00109"></a>00109 <span class="keyword"></span>{
<a name="l00110"></a>00110   <span class="keywordflow">return</span> ! ( <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> == 1 );
<a name="l00111"></a>00111 }
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 <span class="keywordtype">int</span>
<a name="l00115"></a>00115 <a class="code" href="classhippodraw_1_1RootBranch.html#a9e2d31b53fbd4b8df9e6e0616a6ecdc5" title="Number of elements in this branch.">RootBranch::</a>
<a name="l00116"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a9e2d31b53fbd4b8df9e6e0616a6ecdc5">00116</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a9e2d31b53fbd4b8df9e6e0616a6ecdc5" title="Number of elements in this branch.">numberOfElements</a>()<span class="keyword"> const</span>
<a name="l00117"></a>00117 <span class="keyword"></span>{
<a name="l00118"></a>00118   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a>;
<a name="l00119"></a>00119 }
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 <a class="code" href="classTBranch.html" title="The ROOT TBranch class.">TBranch</a> *
<a name="l00122"></a>00122 <a class="code" href="classhippodraw_1_1RootBranch.html#a7d4cf32cbe68e4c8865011d40309f2a2" title="Returns the TBranch which was used to initialize this branch.">RootBranch::</a>
<a name="l00123"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a7d4cf32cbe68e4c8865011d40309f2a2">00123</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a7d4cf32cbe68e4c8865011d40309f2a2" title="Returns the TBranch which was used to initialize this branch.">getTBranch</a>()
<a name="l00124"></a>00124 {
<a name="l00125"></a>00125   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a>;
<a name="l00126"></a>00126 }
<a name="l00127"></a>00127   
<a name="l00128"></a>00128 <span class="keywordtype">void</span>
<a name="l00129"></a>00129 <a class="code" href="classhippodraw_1_1RootBranch.html#a239f50a5089b797a39c00200bf462796" title="From the root title, which is of format &amp;quot;name[x][y][z]&amp;quot;, gets the sizes...">RootBranch::</a>
<a name="l00130"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a239f50a5089b797a39c00200bf462796">00130</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a239f50a5089b797a39c00200bf462796" title="From the root title, which is of format &amp;quot;name[x][y][z]&amp;quot;, gets the sizes...">initShape</a> ( <span class="keyword">const</span> <span class="keywordtype">char</span>* title )
<a name="l00131"></a>00131 {
<a name="l00132"></a>00132   <a class="code" href="classhippodraw_1_1RootBranch.html#a62f2e0611bf09f8e6e3a225ce3717635" title="In case the data quantity we are dealing with is a vector/matrix store its dimensions...">m_shape</a>.clear ();
<a name="l00133"></a>00133 
<a name="l00134"></a>00134   <span class="keywordtype">string</span> s( title );
<a name="l00135"></a>00135   
<a name="l00136"></a>00136   <span class="comment">//Creating the list of dropped delimiters. </span>
<a name="l00137"></a>00137   boost::char_separator&lt; char &gt; sep( <span class="stringliteral">&quot;][&quot;</span> );  
<a name="l00138"></a>00138 
<a name="l00139"></a>00139   <span class="comment">// A tokenizer with above dropped delimiters.</span>
<a name="l00140"></a>00140   <span class="keyword">typedef</span> boost::tokenizer&lt; boost::char_separator&lt; char &gt; &gt;  tokenizer;
<a name="l00141"></a>00141   tokenizer tok( s, sep );
<a name="l00142"></a>00142   
<a name="l00143"></a>00143   <span class="comment">// Start extracting the dimension sizes.</span>
<a name="l00144"></a>00144   <span class="keywordflow">for</span>( tokenizer::iterator tok_iter = tok.begin();
<a name="l00145"></a>00145        tok_iter != tok.end();
<a name="l00146"></a>00146        ++tok_iter )
<a name="l00147"></a>00147     <span class="keywordflow">if</span>( tok_iter != tok.begin() ) {
<a name="l00148"></a>00148       <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> value = boost::lexical_cast&lt; <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &gt;( *tok_iter );
<a name="l00149"></a>00149       <a class="code" href="classhippodraw_1_1RootBranch.html#a62f2e0611bf09f8e6e3a225ce3717635" title="In case the data quantity we are dealing with is a vector/matrix store its dimensions...">m_shape</a>.push_back( value );
<a name="l00150"></a>00150     }
<a name="l00151"></a>00151 }
<a name="l00152"></a>00152 
<a name="l00157"></a>00157 <span class="keywordtype">void</span>
<a name="l00158"></a>00158 <a class="code" href="classhippodraw_1_1RootBranch.html#a951d3843b62fa6750fa59a7431b39960" title="Sets the address where the ROOT TBranch will put its data.">RootBranch::</a>
<a name="l00159"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a951d3843b62fa6750fa59a7431b39960">00159</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a951d3843b62fa6750fa59a7431b39960" title="Sets the address where the ROOT TBranch will put its data.">setBranchAddress</a> ()<span class="keyword"> const</span>
<a name="l00160"></a>00160 <span class="keyword"></span>{
<a name="l00161"></a>00161   <span class="keywordflow">if</span>( <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> == 1 )
<a name="l00162"></a>00162     {
<a name="l00163"></a>00163       <span class="keywordflow">switch</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> )
<a name="l00164"></a>00164         {
<a name="l00165"></a>00165         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7afb7825ebed9ad96348ee8588d84db633" title="double type.">RootData::Double</a>:
<a name="l00166"></a>00166           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( &amp; <a class="code" href="classhippodraw_1_1RootBranch.html#a3ca08cc9c842a77ffc2e99aae177c288" title="The address of the following variable is given to ROOT TTree as the branch address...">m_double_data</a> );
<a name="l00167"></a>00167           <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> = &amp; <a class="code" href="classhippodraw_1_1RootBranch.html#a3ca08cc9c842a77ffc2e99aae177c288" title="The address of the following variable is given to ROOT TTree as the branch address...">m_double_data</a>;
<a name="l00168"></a>00168           <span class="keywordflow">break</span>;
<a name="l00169"></a>00169         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ad67b0ee7230dcecb610254e4e5e589cd" title="float type.">RootData::Float</a>:
<a name="l00170"></a>00170           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( &amp; <a class="code" href="classhippodraw_1_1RootBranch.html#a9f454076282c6ca25bbecd577f968fc9" title="The address of the following variable is given to ROOT TTree as the branch address...">m_float_data</a> );
<a name="l00171"></a>00171           <a class="code" href="classhippodraw_1_1RootBranch.html#ac003a474788ee777ab030f65635365ae" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_float_data</a> = &amp; <a class="code" href="classhippodraw_1_1RootBranch.html#a9f454076282c6ca25bbecd577f968fc9" title="The address of the following variable is given to ROOT TTree as the branch address...">m_float_data</a>;
<a name="l00172"></a>00172           <span class="keywordflow">break</span>;
<a name="l00173"></a>00173         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a637b69dea56f804278aa50e975337e01" title="int type.">RootData::Int</a>:
<a name="l00174"></a>00174           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( &amp; <a class="code" href="classhippodraw_1_1RootBranch.html#a63062a2586f46d42ec4efe2be9cd1691" title="The address of the following variable is given to ROOT TTree as the branch address...">m_int_data</a> );
<a name="l00175"></a>00175           <a class="code" href="classhippodraw_1_1RootBranch.html#aad1177b0d3066e9e24412cd2657ad71d" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_int_data</a> = &amp; <a class="code" href="classhippodraw_1_1RootBranch.html#a63062a2586f46d42ec4efe2be9cd1691" title="The address of the following variable is given to ROOT TTree as the branch address...">m_int_data</a>;
<a name="l00176"></a>00176           <span class="keywordflow">break</span>;
<a name="l00177"></a>00177         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a8a99cd949aaf36b4e7f09f0bc2afb066" title="unsigned int type.">RootData::UInt</a>:
<a name="l00178"></a>00178           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( &amp; <a class="code" href="classhippodraw_1_1RootBranch.html#aca8e312dedb37f8e46c88eb5fa1cfa2e" title="The address of the following variable is given to ROOT TTree as the branch address...">m_uint_data</a> );
<a name="l00179"></a>00179           <a class="code" href="classhippodraw_1_1RootBranch.html#a68f085c66f7d5c6cf71385285448aa41" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_uint_data</a> = &amp; <a class="code" href="classhippodraw_1_1RootBranch.html#aca8e312dedb37f8e46c88eb5fa1cfa2e" title="The address of the following variable is given to ROOT TTree as the branch address...">m_uint_data</a>;
<a name="l00180"></a>00180           <span class="keywordflow">break</span>;
<a name="l00181"></a>00181         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a61d70c31564ff70b961f55224cd42874" title="unsigned 64 bit long.">RootData::ULong64</a>:
<a name="l00182"></a>00182           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( &amp; <a class="code" href="classhippodraw_1_1RootBranch.html#a07d73fbf893c318b70522c4a8ae954a5" title="The address of the following variable is given to ROOT TTree as the branch address...">m_ulong64_data</a> );
<a name="l00183"></a>00183           <a class="code" href="classhippodraw_1_1RootBranch.html#a71d64f8e7a23ff14444cd2d5fa9aa599" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ulong64_data</a> = &amp; <a class="code" href="classhippodraw_1_1RootBranch.html#a07d73fbf893c318b70522c4a8ae954a5" title="The address of the following variable is given to ROOT TTree as the branch address...">m_ulong64_data</a>;
<a name="l00184"></a>00184           <span class="keywordflow">break</span>;
<a name="l00185"></a>00185         <span class="keywordflow">default</span>:
<a name="l00186"></a>00186           assert ( <span class="keyword">false</span> );
<a name="l00187"></a>00187           <span class="keywordflow">break</span>;
<a name="l00188"></a>00188         }
<a name="l00189"></a>00189     }
<a name="l00190"></a>00190 
<a name="l00191"></a>00191   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> &gt; 1 )
<a name="l00192"></a>00192     {
<a name="l00193"></a>00193      <span class="keywordflow">switch</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> )
<a name="l00194"></a>00194        {
<a name="l00195"></a>00195        <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7afb7825ebed9ad96348ee8588d84db633" title="double type.">RootData::Double</a>:
<a name="l00196"></a>00196           <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> = <span class="keyword">new</span> Double_t [ <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> ];
<a name="l00197"></a>00197           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> );
<a name="l00198"></a>00198           <span class="keywordflow">break</span>;
<a name="l00199"></a>00199        <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ad67b0ee7230dcecb610254e4e5e589cd" title="float type.">RootData::Float</a>:
<a name="l00200"></a>00200           <a class="code" href="classhippodraw_1_1RootBranch.html#ac003a474788ee777ab030f65635365ae" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_float_data</a> = <span class="keyword">new</span> Float_t [ <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> ];
<a name="l00201"></a>00201           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( <a class="code" href="classhippodraw_1_1RootBranch.html#ac003a474788ee777ab030f65635365ae" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_float_data</a> );
<a name="l00202"></a>00202           <span class="keywordflow">break</span>;
<a name="l00203"></a>00203       <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a637b69dea56f804278aa50e975337e01" title="int type.">RootData::Int</a>:
<a name="l00204"></a>00204           <a class="code" href="classhippodraw_1_1RootBranch.html#aad1177b0d3066e9e24412cd2657ad71d" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_int_data</a> = <span class="keyword">new</span> Int_t [ <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> ];
<a name="l00205"></a>00205           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( <a class="code" href="classhippodraw_1_1RootBranch.html#aad1177b0d3066e9e24412cd2657ad71d" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_int_data</a> );
<a name="l00206"></a>00206           <span class="keywordflow">break</span>;
<a name="l00207"></a>00207       <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a8a99cd949aaf36b4e7f09f0bc2afb066" title="unsigned int type.">RootData::UInt</a>:
<a name="l00208"></a>00208           <a class="code" href="classhippodraw_1_1RootBranch.html#a68f085c66f7d5c6cf71385285448aa41" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_uint_data</a> = <span class="keyword">new</span> UInt_t [ <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> ];
<a name="l00209"></a>00209           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( <a class="code" href="classhippodraw_1_1RootBranch.html#a68f085c66f7d5c6cf71385285448aa41" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_uint_data</a> );
<a name="l00210"></a>00210           <span class="keywordflow">break</span>;
<a name="l00211"></a>00211        <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7af5a4874501b800b316e5817874430c98" title="signed 16 bit integer.">RootData::Short</a>:
<a name="l00212"></a>00212           <a class="code" href="classhippodraw_1_1RootBranch.html#a5a0ad4676b95e97309e4c0400dddd9ea" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_short_data</a> = <span class="keyword">new</span> Short_t [ <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> ];
<a name="l00213"></a>00213           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( <a class="code" href="classhippodraw_1_1RootBranch.html#a5a0ad4676b95e97309e4c0400dddd9ea" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_short_data</a> );
<a name="l00214"></a>00214           <span class="keywordflow">break</span>;
<a name="l00215"></a>00215       <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ac43fe1561fc9b1fe7b68f3dbe423cd64" title="unsigned 16 bit integer.">RootData::UShort</a>:
<a name="l00216"></a>00216           <a class="code" href="classhippodraw_1_1RootBranch.html#af708d8f9df5a7f6837b7ca02e617dc94" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ushort_data</a> = <span class="keyword">new</span> UShort_t [ <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> ];
<a name="l00217"></a>00217           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( <a class="code" href="classhippodraw_1_1RootBranch.html#af708d8f9df5a7f6837b7ca02e617dc94" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ushort_data</a> );
<a name="l00218"></a>00218           <span class="keywordflow">break</span>;
<a name="l00219"></a>00219        <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a78942d7e663c05878852f063a8bdc08e" title="signed 64 bit long.">RootData::Long64</a>:
<a name="l00220"></a>00220           <a class="code" href="classhippodraw_1_1RootBranch.html#a2bd3ab0f3f8c9d9afa5ca1af3c085ba9" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_long64_data</a> = <span class="keyword">new</span> Long64_t [ <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> ];
<a name="l00221"></a>00221           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( <a class="code" href="classhippodraw_1_1RootBranch.html#a2bd3ab0f3f8c9d9afa5ca1af3c085ba9" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_long64_data</a> );
<a name="l00222"></a>00222           <span class="keywordflow">break</span>;
<a name="l00223"></a>00223        <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a61d70c31564ff70b961f55224cd42874" title="unsigned 64 bit long.">RootData::ULong64</a>:
<a name="l00224"></a>00224           <a class="code" href="classhippodraw_1_1RootBranch.html#a71d64f8e7a23ff14444cd2d5fa9aa599" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ulong64_data</a> = <span class="keyword">new</span> ULong64_t [ <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> ];
<a name="l00225"></a>00225           <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; SetAddress ( <a class="code" href="classhippodraw_1_1RootBranch.html#a71d64f8e7a23ff14444cd2d5fa9aa599" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ulong64_data</a> );
<a name="l00226"></a>00226           <span class="keywordflow">break</span>;
<a name="l00227"></a>00227        <span class="keywordflow">default</span>:
<a name="l00228"></a>00228          assert ( <span class="keyword">false</span> );
<a name="l00229"></a>00229          <span class="keywordflow">break</span>;
<a name="l00230"></a>00230        }
<a name="l00231"></a>00231 
<a name="l00232"></a>00232     }
<a name="l00233"></a>00233   
<a name="l00234"></a>00234   <a class="code" href="classhippodraw_1_1RootBranch.html#a1e6f2ed61d57785b6e578d4d49f3160e" title="Set true when branch address has been set.">m_branch_set</a> = <span class="keyword">true</span>;
<a name="l00235"></a>00235 }
<a name="l00236"></a>00236 
<a name="l00237"></a>00237 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> 
<a name="l00238"></a>00238 <a class="code" href="classhippodraw_1_1RootBranch.html#a5ab0c88eab0d088c621060d27e005eba" title="Gives the dimensionality of the data stored in each row of this branch.">RootBranch::</a>
<a name="l00239"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a5ab0c88eab0d088c621060d27e005eba">00239</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a5ab0c88eab0d088c621060d27e005eba" title="Gives the dimensionality of the data stored in each row of this branch.">getRank</a> ()<span class="keyword"> const</span>
<a name="l00240"></a>00240 <span class="keyword"></span>{
<a name="l00241"></a>00241   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1RootBranch.html#a90ca964ebcc1b02bbcde225edd49e812" title="Returns the size of the slice for the next to last dimension.">size</a> = <a class="code" href="classhippodraw_1_1RootBranch.html#a62f2e0611bf09f8e6e3a225ce3717635" title="In case the data quantity we are dealing with is a vector/matrix store its dimensions...">m_shape</a>.size();
<a name="l00242"></a>00242 
<a name="l00243"></a>00243   <span class="keywordflow">return</span> size;
<a name="l00244"></a>00244 }
<a name="l00245"></a>00245 
<a name="l00246"></a>00246 <span class="keyword">const</span> vector &lt; int &gt; &amp;
<a name="l00247"></a>00247 <a class="code" href="classhippodraw_1_1RootBranch.html#a51da149f2e57e78ebaf1d4ee0ef4b29b" title="Vector of the number of entries in the multidimensional data.">RootBranch::</a>
<a name="l00248"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a51da149f2e57e78ebaf1d4ee0ef4b29b">00248</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a51da149f2e57e78ebaf1d4ee0ef4b29b" title="Vector of the number of entries in the multidimensional data.">getShape</a> ()
<a name="l00249"></a>00249 {
<a name="l00250"></a>00250   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1RootBranch.html#a62f2e0611bf09f8e6e3a225ce3717635" title="In case the data quantity we are dealing with is a vector/matrix store its dimensions...">m_shape</a>;
<a name="l00251"></a>00251 }
<a name="l00252"></a>00252 
<a name="l00253"></a>00253 <span class="keywordtype">void</span>
<a name="l00254"></a>00254 <a class="code" href="classhippodraw_1_1RootBranch.html#addf51aefa07efc5b7d72b678aafa59a9" title="In case we are dealing with multidimensional data in rows of this branch we would...">RootBranch::</a>
<a name="l00255"></a><a class="code" href="classhippodraw_1_1RootBranch.html#addf51aefa07efc5b7d72b678aafa59a9">00255</a> <a class="code" href="classhippodraw_1_1RootBranch.html#addf51aefa07efc5b7d72b678aafa59a9" title="In case we are dealing with multidimensional data in rows of this branch we would...">setReleventIndex</a>( <span class="keyword">const</span> std::vector&lt; unsigned int &gt; &amp; index )
<a name="l00256"></a>00256 {
<a name="l00257"></a>00257   <span class="comment">// This function makes sense only for multi dimenstional data</span>
<a name="l00258"></a>00258   assert( <a class="code" href="classhippodraw_1_1RootBranch.html#a5ab0c88eab0d088c621060d27e005eba" title="Gives the dimensionality of the data stored in each row of this branch.">getRank</a> () &gt; 0 );
<a name="l00259"></a>00259   
<a name="l00260"></a>00260   <span class="comment">// Index should completely specify the entry of the data in the matrix</span>
<a name="l00261"></a>00261   <span class="comment">// So it should have as many enteries as the dimensions of the data</span>
<a name="l00262"></a>00262   assert( <a class="code" href="classhippodraw_1_1RootBranch.html#a5ab0c88eab0d088c621060d27e005eba" title="Gives the dimensionality of the data stored in each row of this branch.">getRank</a> () == index.size() );
<a name="l00263"></a>00263   
<a name="l00264"></a>00264   <span class="comment">// Clear old relevent entry and put in this new ones.</span>
<a name="l00265"></a>00265   <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> = index[0];
<a name="l00266"></a>00266   <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> d = 1; d &lt; <a class="code" href="classhippodraw_1_1RootBranch.html#a5ab0c88eab0d088c621060d27e005eba" title="Gives the dimensionality of the data stored in each row of this branch.">getRank</a> (); d++ ) {
<a name="l00267"></a>00267     m_releventIndex = m_releventIndex * <a class="code" href="classhippodraw_1_1RootBranch.html#a62f2e0611bf09f8e6e3a225ce3717635" title="In case the data quantity we are dealing with is a vector/matrix store its dimensions...">m_shape</a> [ d ] + index[ d ];
<a name="l00268"></a>00268   }
<a name="l00269"></a>00269 }
<a name="l00270"></a>00270 
<a name="l00271"></a>00271 <span class="keywordtype">double</span>
<a name="l00272"></a>00272 <a class="code" href="classhippodraw_1_1RootBranch.html#a7b87d8a4ae07aa32a7b2bbd8f569e8ea" title="Returns the value of the leaf at index row.">RootBranch::</a>
<a name="l00273"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a7b87d8a4ae07aa32a7b2bbd8f569e8ea">00273</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a7b87d8a4ae07aa32a7b2bbd8f569e8ea" title="Returns the value of the leaf at index row.">valueAt</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> row )<span class="keyword"> const</span>
<a name="l00274"></a>00274 <span class="keyword"></span>{
<a name="l00275"></a>00275   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#a1e6f2ed61d57785b6e578d4d49f3160e" title="Set true when branch address has been set.">m_branch_set</a> == <span class="keyword">false</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#a951d3843b62fa6750fa59a7431b39960" title="Sets the address where the ROOT TBranch will put its data.">setBranchAddress</a> ();
<a name="l00276"></a>00276   
<a name="l00277"></a>00277   Int_t entry = row;
<a name="l00278"></a>00278   <span class="comment">//Int_t bytes =</span>
<a name="l00279"></a>00279     <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; GetEntry ( entry, 1 );
<a name="l00280"></a>00280   
<a name="l00281"></a>00281   <span class="keywordtype">double</span> value = -1;
<a name="l00282"></a>00282   <span class="keywordflow">if</span>( <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> == 1 )
<a name="l00283"></a>00283     {
<a name="l00284"></a>00284       <span class="keywordflow">switch</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> )
<a name="l00285"></a>00285         {
<a name="l00286"></a>00286         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7afb7825ebed9ad96348ee8588d84db633" title="double type.">RootData::Double</a>:
<a name="l00287"></a>00287           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a3ca08cc9c842a77ffc2e99aae177c288" title="The address of the following variable is given to ROOT TTree as the branch address...">m_double_data</a>;
<a name="l00288"></a>00288           <span class="keywordflow">break</span>;
<a name="l00289"></a>00289         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ad67b0ee7230dcecb610254e4e5e589cd" title="float type.">RootData::Float</a>:
<a name="l00290"></a>00290           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a9f454076282c6ca25bbecd577f968fc9" title="The address of the following variable is given to ROOT TTree as the branch address...">m_float_data</a>;
<a name="l00291"></a>00291           <span class="keywordflow">break</span>;
<a name="l00292"></a>00292         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a637b69dea56f804278aa50e975337e01" title="int type.">RootData::Int</a>:
<a name="l00293"></a>00293           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a63062a2586f46d42ec4efe2be9cd1691" title="The address of the following variable is given to ROOT TTree as the branch address...">m_int_data</a>;
<a name="l00294"></a>00294           <span class="keywordflow">break</span>;
<a name="l00295"></a>00295         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a8a99cd949aaf36b4e7f09f0bc2afb066" title="unsigned int type.">RootData::UInt</a>:
<a name="l00296"></a>00296           value = <a class="code" href="classhippodraw_1_1RootBranch.html#aca8e312dedb37f8e46c88eb5fa1cfa2e" title="The address of the following variable is given to ROOT TTree as the branch address...">m_uint_data</a>;
<a name="l00297"></a>00297           <span class="keywordflow">break</span>;
<a name="l00298"></a>00298         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7af5a4874501b800b316e5817874430c98" title="signed 16 bit integer.">RootData::Short</a>:
<a name="l00299"></a>00299           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a8c7b81b3a18bdf74a2100bbdc8e5b23a" title="The address of the following variable is given to ROOT TTree as the branch address...">m_short_data</a>;
<a name="l00300"></a>00300           <span class="keywordflow">break</span>;
<a name="l00301"></a>00301         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ac43fe1561fc9b1fe7b68f3dbe423cd64" title="unsigned 16 bit integer.">RootData::UShort</a>:
<a name="l00302"></a>00302           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a2b84c68fee53fe7c5f9d2f6680ad9f1e" title="The address of the following variable is given to ROOT TTree as the branch address...">m_ushort_data</a>;
<a name="l00303"></a>00303           <span class="keywordflow">break</span>;
<a name="l00304"></a>00304         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a78942d7e663c05878852f063a8bdc08e" title="signed 64 bit long.">RootData::Long64</a>:
<a name="l00305"></a>00305           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a16efeda111159afb18c82d1dfb6668ed" title="The address of the following variable is given to ROOT TTree as the branch address...">m_long64_data</a>;
<a name="l00306"></a>00306           <span class="keywordflow">break</span>;
<a name="l00307"></a>00307         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a61d70c31564ff70b961f55224cd42874" title="unsigned 64 bit long.">RootData::ULong64</a>:
<a name="l00308"></a>00308           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a07d73fbf893c318b70522c4a8ae954a5" title="The address of the following variable is given to ROOT TTree as the branch address...">m_ulong64_data</a>;
<a name="l00309"></a>00309           <span class="keywordflow">break</span>;
<a name="l00310"></a>00310         <span class="keywordflow">default</span>:
<a name="l00311"></a>00311           assert ( <span class="keyword">false</span> );
<a name="l00312"></a>00312           <span class="keywordflow">break</span>;
<a name="l00313"></a>00313         }
<a name="l00314"></a>00314     }
<a name="l00315"></a>00315   <span class="keywordflow">else</span>
<a name="l00316"></a>00316     {
<a name="l00317"></a>00317       <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> &lt; 0 ||  <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> &lt;= <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> )
<a name="l00318"></a>00318         {
<a name="l00319"></a>00319           <span class="comment">// Temporary patch so other columns can be wriiten</span>
<a name="l00320"></a>00320 <span class="comment">//        std::string what ( &quot;RootBranch: `&quot; );</span>
<a name="l00321"></a>00321 <span class="comment">//        what += m_leaf -&gt; GetTitle ();</span>
<a name="l00322"></a>00322 <span class="comment">//        what += &quot;&#39; indices not set properly.&quot;;</span>
<a name="l00323"></a>00323 <span class="comment">//        throw DataSourceException ( what );</span>
<a name="l00324"></a>00324           <span class="keywordflow">return</span> 0.0;
<a name="l00325"></a>00325         }
<a name="l00326"></a>00326 
<a name="l00327"></a>00327       <span class="comment">// The basic conversion formulae</span>
<a name="l00328"></a>00328       <span class="keywordflow">switch</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> )
<a name="l00329"></a>00329         {
<a name="l00330"></a>00330         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7afb7825ebed9ad96348ee8588d84db633" title="double type.">RootData::Double</a>:
<a name="l00331"></a>00331           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> [ <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> ];
<a name="l00332"></a>00332           <span class="keywordflow">break</span>;
<a name="l00333"></a>00333         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ad67b0ee7230dcecb610254e4e5e589cd" title="float type.">RootData::Float</a>:
<a name="l00334"></a>00334           value = <a class="code" href="classhippodraw_1_1RootBranch.html#ac003a474788ee777ab030f65635365ae" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_float_data</a> [ <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> ];
<a name="l00335"></a>00335           <span class="keywordflow">break</span>;
<a name="l00336"></a>00336         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a637b69dea56f804278aa50e975337e01" title="int type.">RootData::Int</a>:
<a name="l00337"></a>00337           value = <a class="code" href="classhippodraw_1_1RootBranch.html#aad1177b0d3066e9e24412cd2657ad71d" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_int_data</a> [ <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> ];
<a name="l00338"></a>00338           <span class="keywordflow">break</span>;
<a name="l00339"></a>00339         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a8a99cd949aaf36b4e7f09f0bc2afb066" title="unsigned int type.">RootData::UInt</a>:
<a name="l00340"></a>00340           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a68f085c66f7d5c6cf71385285448aa41" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_uint_data</a> [ <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> ];
<a name="l00341"></a>00341           <span class="keywordflow">break</span>;
<a name="l00342"></a>00342         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7af5a4874501b800b316e5817874430c98" title="signed 16 bit integer.">RootData::Short</a>:
<a name="l00343"></a>00343           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a5a0ad4676b95e97309e4c0400dddd9ea" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_short_data</a> [ <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> ];
<a name="l00344"></a>00344           <span class="keywordflow">break</span>;
<a name="l00345"></a>00345         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ac43fe1561fc9b1fe7b68f3dbe423cd64" title="unsigned 16 bit integer.">RootData::UShort</a>:
<a name="l00346"></a>00346           value = <a class="code" href="classhippodraw_1_1RootBranch.html#af708d8f9df5a7f6837b7ca02e617dc94" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ushort_data</a> [ <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> ];
<a name="l00347"></a>00347           <span class="keywordflow">break</span>;
<a name="l00348"></a>00348         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a78942d7e663c05878852f063a8bdc08e" title="signed 64 bit long.">RootData::Long64</a>:
<a name="l00349"></a>00349           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a2bd3ab0f3f8c9d9afa5ca1af3c085ba9" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_long64_data</a> [ <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> ];
<a name="l00350"></a>00350           <span class="keywordflow">break</span>;
<a name="l00351"></a>00351         <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a61d70c31564ff70b961f55224cd42874" title="unsigned 64 bit long.">RootData::ULong64</a>:
<a name="l00352"></a>00352           value = <a class="code" href="classhippodraw_1_1RootBranch.html#a71d64f8e7a23ff14444cd2d5fa9aa599" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ulong64_data</a> [ <a class="code" href="classhippodraw_1_1RootBranch.html#a3d71822730bb14cf3fcff72e010b671e" title="In case the data quantity is vector/matrix we would like just to take one element...">m_releventIndex</a> ];
<a name="l00353"></a>00353           <span class="keywordflow">break</span>;
<a name="l00354"></a>00354         <span class="keywordflow">default</span>:
<a name="l00355"></a>00355           assert ( <span class="keyword">false</span> );
<a name="l00356"></a>00356         }
<a name="l00357"></a>00357     }
<a name="l00358"></a>00358 
<a name="l00359"></a>00359   <span class="keywordflow">return</span> value;
<a name="l00360"></a>00360 }
<a name="l00361"></a>00361 
<a name="l00362"></a>00362 <span class="keywordtype">double</span> *
<a name="l00363"></a>00363 <a class="code" href="classhippodraw_1_1RootBranch.html#ab8e0ce93cb234c7e182c03c05ddf84fa" title="Returns pointer to a double array in given row.">RootBranch::</a>
<a name="l00364"></a><a class="code" href="classhippodraw_1_1RootBranch.html#ab8e0ce93cb234c7e182c03c05ddf84fa">00364</a> <a class="code" href="classhippodraw_1_1RootBranch.html#ab8e0ce93cb234c7e182c03c05ddf84fa" title="Returns pointer to a double array in given row.">doubleArrayAt</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> row )
<a name="l00365"></a>00365 {
<a name="l00366"></a>00366   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#a1e6f2ed61d57785b6e578d4d49f3160e" title="Set true when branch address has been set.">m_branch_set</a> == <span class="keyword">false</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#a951d3843b62fa6750fa59a7431b39960" title="Sets the address where the ROOT TBranch will put its data.">setBranchAddress</a> ();
<a name="l00367"></a>00367   Int_t entry = row;
<a name="l00368"></a>00368   <span class="comment">// Int_t bytes =</span>
<a name="l00369"></a>00369   <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; GetEntry ( entry, 1 );
<a name="l00370"></a>00370 
<a name="l00371"></a>00371   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> != <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7afb7825ebed9ad96348ee8588d84db633" title="double type.">RootData::Double</a> ) { <span class="comment">// need to convert</span>
<a name="l00372"></a>00372     <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> == 0 ) { <span class="comment">// memory not yet allocated</span>
<a name="l00373"></a>00373       <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> = <span class="keyword">new</span> Double_t [ <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a> ];
<a name="l00374"></a>00374     }
<a name="l00375"></a>00375     <span class="keywordflow">switch</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a> ) {
<a name="l00376"></a>00376     <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ad67b0ee7230dcecb610254e4e5e589cd" title="float type.">RootData::Float</a> :
<a name="l00377"></a>00377       std::copy ( <a class="code" href="classhippodraw_1_1RootBranch.html#ac003a474788ee777ab030f65635365ae" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_float_data</a>,
<a name="l00378"></a>00378                   <a class="code" href="classhippodraw_1_1RootBranch.html#ac003a474788ee777ab030f65635365ae" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_float_data</a> + <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a>,
<a name="l00379"></a>00379                   <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> );
<a name="l00380"></a>00380       <span class="keywordflow">break</span>;
<a name="l00381"></a>00381     <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a637b69dea56f804278aa50e975337e01" title="int type.">RootData::Int</a> :
<a name="l00382"></a>00382       std::copy ( <a class="code" href="classhippodraw_1_1RootBranch.html#aad1177b0d3066e9e24412cd2657ad71d" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_int_data</a>,
<a name="l00383"></a>00383                   <a class="code" href="classhippodraw_1_1RootBranch.html#aad1177b0d3066e9e24412cd2657ad71d" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_int_data</a> + <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a>,
<a name="l00384"></a>00384                   <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> );
<a name="l00385"></a>00385       <span class="keywordflow">break</span>;
<a name="l00386"></a>00386     <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a8a99cd949aaf36b4e7f09f0bc2afb066" title="unsigned int type.">RootData::UInt</a> :
<a name="l00387"></a>00387       std::copy ( <a class="code" href="classhippodraw_1_1RootBranch.html#a68f085c66f7d5c6cf71385285448aa41" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_uint_data</a>,
<a name="l00388"></a>00388                   <a class="code" href="classhippodraw_1_1RootBranch.html#a68f085c66f7d5c6cf71385285448aa41" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_uint_data</a> + <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a>,
<a name="l00389"></a>00389                   <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> );
<a name="l00390"></a>00390       <span class="keywordflow">break</span>;
<a name="l00391"></a>00391     <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7af5a4874501b800b316e5817874430c98" title="signed 16 bit integer.">RootData::Short</a> :
<a name="l00392"></a>00392       std::copy ( <a class="code" href="classhippodraw_1_1RootBranch.html#a5a0ad4676b95e97309e4c0400dddd9ea" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_short_data</a>,
<a name="l00393"></a>00393                   <a class="code" href="classhippodraw_1_1RootBranch.html#a5a0ad4676b95e97309e4c0400dddd9ea" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_short_data</a> + <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a>,
<a name="l00394"></a>00394                   <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> );
<a name="l00395"></a>00395       <span class="keywordflow">break</span>;
<a name="l00396"></a>00396     <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7ac43fe1561fc9b1fe7b68f3dbe423cd64" title="unsigned 16 bit integer.">RootData::UShort</a> :
<a name="l00397"></a>00397       std::copy ( <a class="code" href="classhippodraw_1_1RootBranch.html#af708d8f9df5a7f6837b7ca02e617dc94" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ushort_data</a>,
<a name="l00398"></a>00398                   <a class="code" href="classhippodraw_1_1RootBranch.html#af708d8f9df5a7f6837b7ca02e617dc94" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ushort_data</a> + <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a>,
<a name="l00399"></a>00399                   <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> );
<a name="l00400"></a>00400       <span class="keywordflow">break</span>;
<a name="l00401"></a>00401     <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a78942d7e663c05878852f063a8bdc08e" title="signed 64 bit long.">RootData::Long64</a> :
<a name="l00402"></a>00402       std::copy ( <a class="code" href="classhippodraw_1_1RootBranch.html#a2bd3ab0f3f8c9d9afa5ca1af3c085ba9" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_long64_data</a>,
<a name="l00403"></a>00403                   <a class="code" href="classhippodraw_1_1RootBranch.html#a2bd3ab0f3f8c9d9afa5ca1af3c085ba9" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_long64_data</a> + <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a>,
<a name="l00404"></a>00404                   <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> );
<a name="l00405"></a>00405       <span class="keywordflow">break</span>;
<a name="l00406"></a>00406     <span class="keywordflow">case</span> <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7a61d70c31564ff70b961f55224cd42874" title="unsigned 64 bit long.">RootData::ULong64</a> :
<a name="l00407"></a>00407       std::copy ( <a class="code" href="classhippodraw_1_1RootBranch.html#a71d64f8e7a23ff14444cd2d5fa9aa599" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ulong64_data</a>,
<a name="l00408"></a>00408                   <a class="code" href="classhippodraw_1_1RootBranch.html#a71d64f8e7a23ff14444cd2d5fa9aa599" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_ulong64_data</a> + <a class="code" href="classhippodraw_1_1RootBranch.html#a69920a58485afb390f21beaf8e885b21" title="The number of elements in the Leaf array or 0 if not an array.">m_number_elements</a>,
<a name="l00409"></a>00409                   <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a> );
<a name="l00410"></a>00410       <span class="keywordflow">break</span>;
<a name="l00411"></a>00411     <span class="keywordflow">default</span>:
<a name="l00412"></a>00412       <span class="keywordflow">break</span>;
<a name="l00413"></a>00413     }
<a name="l00414"></a>00414   }
<a name="l00415"></a>00415 
<a name="l00416"></a>00416   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1RootBranch.html#a230e5eca5635cb1dd494c688e83a490c" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_double_data</a>;
<a name="l00417"></a>00417 }
<a name="l00418"></a>00418 
<a name="l00419"></a>00419 <span class="keywordtype">float</span> *
<a name="l00420"></a>00420 <a class="code" href="classhippodraw_1_1RootBranch.html#afa56d608072e930c17a20ffb58bb7ee7" title="Returns pointer to a float array type in given row.">RootBranch::</a>
<a name="l00421"></a><a class="code" href="classhippodraw_1_1RootBranch.html#afa56d608072e930c17a20ffb58bb7ee7">00421</a> <a class="code" href="classhippodraw_1_1RootBranch.html#afa56d608072e930c17a20ffb58bb7ee7" title="Returns pointer to a float array type in given row.">floatArrayAt</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> row )
<a name="l00422"></a>00422 {
<a name="l00423"></a>00423   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#a1e6f2ed61d57785b6e578d4d49f3160e" title="Set true when branch address has been set.">m_branch_set</a> == <span class="keyword">false</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#a951d3843b62fa6750fa59a7431b39960" title="Sets the address where the ROOT TBranch will put its data.">setBranchAddress</a> ();
<a name="l00424"></a>00424   Int_t entry = row;
<a name="l00425"></a>00425   <span class="comment">// Int_t bytes =</span>
<a name="l00426"></a>00426   <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; GetEntry ( entry, 1 );
<a name="l00427"></a>00427 
<a name="l00428"></a>00428   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1RootBranch.html#ac003a474788ee777ab030f65635365ae" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_float_data</a>;
<a name="l00429"></a>00429 }
<a name="l00430"></a>00430 
<a name="l00431"></a>00431 <span class="keywordtype">int</span> *
<a name="l00432"></a>00432 <a class="code" href="classhippodraw_1_1RootBranch.html#a39cc2c580e37ff8f5791de5bca5119ed" title="Returns pointer to a int array type in given row.">RootBranch::</a>
<a name="l00433"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a39cc2c580e37ff8f5791de5bca5119ed">00433</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a39cc2c580e37ff8f5791de5bca5119ed" title="Returns pointer to a int array type in given row.">intArrayAt</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> row )
<a name="l00434"></a>00434 {
<a name="l00435"></a>00435   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#a1e6f2ed61d57785b6e578d4d49f3160e" title="Set true when branch address has been set.">m_branch_set</a> == <span class="keyword">false</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#a951d3843b62fa6750fa59a7431b39960" title="Sets the address where the ROOT TBranch will put its data.">setBranchAddress</a> ();
<a name="l00436"></a>00436   Int_t entry = row;
<a name="l00437"></a>00437   <span class="comment">// Int_t bytes =</span>
<a name="l00438"></a>00438   <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; GetEntry ( entry, 1 );
<a name="l00439"></a>00439 
<a name="l00440"></a>00440   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1RootBranch.html#aad1177b0d3066e9e24412cd2657ad71d" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_int_data</a>;
<a name="l00441"></a>00441 }
<a name="l00442"></a>00442 
<a name="l00443"></a>00443 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *
<a name="l00444"></a>00444 <a class="code" href="classhippodraw_1_1RootBranch.html#a4993c184bd31a124eeabbcccdd30a09e" title="Returns pointer to a unsigned int array type in given row.">RootBranch::</a>
<a name="l00445"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a4993c184bd31a124eeabbcccdd30a09e">00445</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a4993c184bd31a124eeabbcccdd30a09e" title="Returns pointer to a unsigned int array type in given row.">uintArrayAt</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> row )
<a name="l00446"></a>00446 {
<a name="l00447"></a>00447   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1RootBranch.html#a1e6f2ed61d57785b6e578d4d49f3160e" title="Set true when branch address has been set.">m_branch_set</a> == <span class="keyword">false</span> ) <a class="code" href="classhippodraw_1_1RootBranch.html#a951d3843b62fa6750fa59a7431b39960" title="Sets the address where the ROOT TBranch will put its data.">setBranchAddress</a> ();
<a name="l00448"></a>00448   Int_t entry = row;
<a name="l00449"></a>00449   <span class="comment">// Int_t_bytes =</span>
<a name="l00450"></a>00450   <a class="code" href="classhippodraw_1_1RootBranch.html#ae079d84afb33c3f11e3919f80a23ccce" title="The ROOT TBranch from which the data will be obtained.">m_branch</a> -&gt; GetEntry ( entry, 1 );
<a name="l00451"></a>00451 
<a name="l00452"></a>00452   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1RootBranch.html#a68f085c66f7d5c6cf71385285448aa41" title="The address of the following variable is given to ROOT TTree as the branch address...">m_vector_uint_data</a>;
<a name="l00453"></a>00453 }
<a name="l00454"></a>00454 
<a name="l00455"></a>00455 <a class="code" href="namespacehippodraw_1_1RootData.html#a1d1cfd8ffb84e947f82999c682b666a7" title="The type of data on the branch.">RootData::Type</a>
<a name="l00456"></a>00456 <a class="code" href="classhippodraw_1_1RootBranch.html#aabc3bdbd7e0940f2ec75930a886367bf" title="Returns the type of the data in this branch.">RootBranch::</a>
<a name="l00457"></a><a class="code" href="classhippodraw_1_1RootBranch.html#aabc3bdbd7e0940f2ec75930a886367bf">00457</a> <a class="code" href="classhippodraw_1_1RootBranch.html#aabc3bdbd7e0940f2ec75930a886367bf" title="Returns the type of the data in this branch.">getType</a> ()<span class="keyword"> const</span>
<a name="l00458"></a>00458 <span class="keyword"></span>{
<a name="l00459"></a>00459   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1RootBranch.html#aab154903de805101901375022982e916" title="The ROOT type name for this branch if single TLeaf is on this branch.">m_leaf_type</a>;
<a name="l00460"></a>00460 }
<a name="l00461"></a>00461 
<a name="l00462"></a>00462 <span class="keywordtype">bool</span>
<a name="l00463"></a>00463 <a class="code" href="classhippodraw_1_1RootBranch.html#a4e30d13f9af7b3ff414c1f6f9fa0e628" title="Returns true if the branch is usable.">RootBranch::</a>
<a name="l00464"></a><a class="code" href="classhippodraw_1_1RootBranch.html#a4e30d13f9af7b3ff414c1f6f9fa0e628">00464</a> <a class="code" href="classhippodraw_1_1RootBranch.html#a4e30d13f9af7b3ff414c1f6f9fa0e628" title="Returns true if the branch is usable.">isUseable</a> ()<span class="keyword"> const</span>
<a name="l00465"></a>00465 <span class="keyword"></span>{
<a name="l00466"></a>00466   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1RootBranch.html#a0a0c9c620de246d6d6deb10d93bfb885" title="Set to false if the branch is not usable.">m_useable</a>;
<a name="l00467"></a>00467 }
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>