Sophie

Sophie

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

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_58b38df2e31e2ca35feeee31429c3534.html">projectors</a>
  </div>
</div>
<div class="contents">
<h1>StHist1DProjector.cxx</h1><a href="StHist1DProjector_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">#ifdef _MSC_VER</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="comment">// Include max() and min() missing from MicroSoft Visual C++.</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;msdevstudio/MSconfig.h&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#endif</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="StHist1DProjector_8h.html" title="StHist1DProjector class interface.">StHist1DProjector.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="ProjectorHelper_8h.html" title="ProjectorHelper class interface.">ProjectorHelper.h</a>&quot;</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#include &quot;<a class="code" href="AxisModelBase_8h.html" title="hippodraw::AxisModelBase class interface">axes/AxisModelBase.h</a>&quot;</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="BinsBase_8h.html" title="hippodraw::BinsBase class interface">binners/BinsBase.h</a>&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="BinsFactory_8h.html">binners/BinsFactory.h</a>&quot;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">using namespace </span>hippodraw;
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#ifdef ITERATOR_MEMBER_DEFECT</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="keyword">using namespace </span>std;
<a name="l00032"></a>00032 <span class="preprocessor">#else</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="keyword">using</span> std::list;
<a name="l00034"></a>00034 <span class="keyword">using</span> std::max;
<a name="l00035"></a>00035 <span class="keyword">using</span> std::string;
<a name="l00036"></a>00036 <span class="keyword">using</span> std::vector;
<a name="l00037"></a>00037 <span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a0d0521bc5f4dc6de3a8fc95108a201a5">00039</a> StHist1DProjector::StHist1DProjector( )
<a name="l00040"></a>00040   : <a class="code" href="classhippodraw_1_1Hist1DProjImp.html" title="A derived class of BinningProjector that implements the member function common to...">Hist1DProjImp</a> ( )
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042   <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a304593454a19f765f43bc00701182c50" title="The label of the y axis.">m_y_label</a> = <span class="stringliteral">&quot;Entries / bin&quot;</span>;
<a name="l00043"></a>00043 }
<a name="l00044"></a>00044 
<a name="l00050"></a>00050 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a0d0521bc5f4dc6de3a8fc95108a201a5" title="The default constructor.">StHist1DProjector::</a>
<a name="l00051"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#ada5a825049666a2e4a8059c43b5a48d9">00051</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a0d0521bc5f4dc6de3a8fc95108a201a5" title="The default constructor.">StHist1DProjector</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1StHist1DProjector.html" title="A derived class of ProjectorBase that projects data accumulated by calls to its fill...">StHist1DProjector</a> &amp; projector )
<a name="l00052"></a>00052   : <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> ( projector ),
<a name="l00053"></a>00053     <a class="code" href="classhippodraw_1_1Hist1DProjImp.html" title="A derived class of BinningProjector that implements the member function common to...">Hist1DProjImp</a> ( projector ),
<a name="l00054"></a>00054     m_title ( projector.m_title ),
<a name="l00055"></a>00055     m_x_label ( projector.m_x_label ),
<a name="l00056"></a>00056     m_y_label ( projector.m_y_label )
<a name="l00057"></a>00057 {
<a name="l00058"></a>00058 }
<a name="l00059"></a>00059 
<a name="l00060"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a1c21293cc4656448b450db7bd3eb6ecb">00060</a> <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> * <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a1c21293cc4656448b450db7bd3eb6ecb" title="The clone function returns an object of its own kind which is a copy of this object...">StHist1DProjector::clone</a>()
<a name="l00061"></a>00061 {
<a name="l00062"></a>00062   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a0d0521bc5f4dc6de3a8fc95108a201a5" title="The default constructor.">StHist1DProjector</a> ( *<span class="keyword">this</span> );
<a name="l00063"></a>00063 }
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">/* virtual */</span>
<a name="l00066"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#ac45e76c75c339e6dc783bc5eb62bc7b3">00066</a> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#ac45e76c75c339e6dc783bc5eb62bc7b3" title="Returns true if the intended axis is &amp;quot;X&amp;quot;, otherwise returns false.">StHist1DProjector::isAxisBinned</a> ( <span class="keyword">const</span> std::string &amp; axis )<span class="keyword"> const</span>
<a name="l00067"></a>00067 <span class="keyword"></span>{
<a name="l00068"></a>00068   <span class="keywordflow">return</span> axis == <span class="stringliteral">&quot;x&quot;</span> || axis == <span class="stringliteral">&quot;X&quot;</span>;
<a name="l00069"></a>00069 }
<a name="l00070"></a>00070 
<a name="l00074"></a>00074 <span class="keywordtype">double</span>
<a name="l00075"></a>00075 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a4cb0f7495eda86a1db2c5c4b41638de7" title="Returns the minimum positive value of the data on a specified axis.">StHist1DProjector::</a>
<a name="l00076"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a4cb0f7495eda86a1db2c5c4b41638de7">00076</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a4cb0f7495eda86a1db2c5c4b41638de7" title="Returns the minimum positive value of the data on a specified axis.">getPosOn</a> ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis )<span class="keyword"> const</span>
<a name="l00077"></a>00077 <span class="keyword"></span>{
<a name="l00078"></a>00078   assert ( axis == <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a58833a3110c570fb05130d40c365d1e4" title="X axis.">Axes::X</a> || axis == <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a5596231eabd6cf29050967d5ac83ad84" title="Y axis.">Axes::Y</a> );
<a name="l00079"></a>00079 
<a name="l00080"></a>00080   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1Hist1DProjImp.html#a2a4090d0910ba58055b911595f5352e6" title="Returns the smallest positive value on the Y axis.">getPosOnValue</a> ();
<a name="l00081"></a>00081 }
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a>
<a name="l00084"></a>00084 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a8b6f7e018a0407c68802b7f6956b748b" title="Returns the range of the data on a specified axis.">StHist1DProjector::</a>
<a name="l00085"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a8b6f7e018a0407c68802b7f6956b748b">00085</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a8b6f7e018a0407c68802b7f6956b748b" title="Returns the range of the data on a specified axis.">dataRangeOn</a> ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis )<span class="keyword"> const</span>
<a name="l00086"></a>00086 <span class="keyword"></span>{
<a name="l00087"></a>00087   assert ( axis == <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a58833a3110c570fb05130d40c365d1e4" title="X axis.">Axes::X</a> || axis == <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a5596231eabd6cf29050967d5ac83ad84" title="Y axis.">Axes::Y</a> );
<a name="l00088"></a>00088 
<a name="l00089"></a>00089   <span class="keywordflow">if</span> ( axis == <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a58833a3110c570fb05130d40c365d1e4" title="X axis.">Axes::X</a> ) {
<a name="l00090"></a>00090     <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1BinningProjector.html#af9b5689784067123bdcab4bc7bbd986f" title="The binner object.">m_binner</a>-&gt;<a class="code" href="classhippodraw_1_1BinsBase.html#a20c8a2e39e911daf491c4a69fd654cdf">getRange</a> ( axis );
<a name="l00091"></a>00091   }
<a name="l00092"></a>00092 
<a name="l00093"></a>00093   <span class="comment">// Y</span>
<a name="l00094"></a>00094   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1Hist1DProjImp.html#ac9a499baa9d96091f1672b5c81d22e97" title="Returns the data range on the Y axis.">dataRangeOnValue</a> ();
<a name="l00095"></a>00095 }
<a name="l00096"></a>00096 
<a name="l00097"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a902f31eb830e9c35c2bfcfef2520fc0b">00097</a> <span class="keyword">const</span> <span class="keywordtype">string</span> &amp; <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a902f31eb830e9c35c2bfcfef2520fc0b" title="Returns the label (title) of the x axis.">StHist1DProjector::getXLabel</a>()<span class="keyword"> const</span>
<a name="l00098"></a>00098 <span class="keyword"></span>{
<a name="l00099"></a>00099   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a8c25c8f1ef3b8bac6d46729b8798c8fe" title="The label of the x axis.">m_x_label</a>;
<a name="l00100"></a>00100 }
<a name="l00101"></a>00101 
<a name="l00102"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a1f90b8fa22f2013fbf2df4e2bad8b42d">00102</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a1f90b8fa22f2013fbf2df4e2bad8b42d" title="Sets the Y axis label.">StHist1DProjector::setYLabel</a>()
<a name="l00103"></a>00103 {
<a name="l00104"></a>00104   <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a304593454a19f765f43bc00701182c50" title="The label of the y axis.">m_y_label</a> = <a class="code" href="classhippodraw_1_1Hist1DProjImp.html#ae874d66ba8b146e5dd6b7064627b894f" title="The label of the y axis when axis is scaled.">m_y_label_entries</a>;
<a name="l00105"></a>00105 }
<a name="l00106"></a>00106 
<a name="l00107"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a26a2a303f9503a9e337496df3be643f7">00107</a> <span class="keyword">const</span> <span class="keywordtype">string</span> &amp; <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a26a2a303f9503a9e337496df3be643f7" title="Returns the label for the Y axis.">StHist1DProjector::getYLabel</a> ( <span class="keywordtype">bool</span> )<span class="keyword"> const</span>
<a name="l00108"></a>00108 <span class="keyword"></span>{
<a name="l00109"></a>00109  <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a304593454a19f765f43bc00701182c50" title="The label of the y axis.">m_y_label</a>;
<a name="l00110"></a>00110 }
<a name="l00111"></a>00111 
<a name="l00112"></a>00112 <span class="keywordtype">double</span>
<a name="l00113"></a>00113 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#aba1ae3399ea876a455ceb2211bae1f2c" title="Get the Average of all projected values on the specified axis.">StHist1DProjector::</a>
<a name="l00114"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#aba1ae3399ea876a455ceb2211bae1f2c">00114</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#aba1ae3399ea876a455ceb2211bae1f2c" title="Get the Average of all projected values on the specified axis.">getAverage</a> ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis )<span class="keyword"> const</span>
<a name="l00115"></a>00115 <span class="keyword"></span>{
<a name="l00116"></a>00116   <a class="code" href="classhippodraw_1_1StHist1DProjector.html" title="A derived class of ProjectorBase that projects data accumulated by calls to its fill...">StHist1DProjector</a> * p = const_cast &lt; <a class="code" href="classhippodraw_1_1StHist1DProjector.html" title="A derived class of ProjectorBase that projects data accumulated by calls to its fill...">StHist1DProjector</a> * &gt; ( this );
<a name="l00117"></a>00117   p -&gt; <a class="code" href="classhippodraw_1_1BinningProjector.html#accd9823e3e5563003ba43e03b860b02e" title="Prepares the projector for plotting by executing, if needed, the binning procedure...">prepareValues</a> (); <span class="comment">// might yet be done.</span>
<a name="l00118"></a>00118 
<a name="l00119"></a>00119   <a class="code" href="classhippodraw_1_1ProjectorHelper.html" title="A concreate implementation of the FunctionHelper class.">ProjectorHelper</a> helper( <a class="code" href="classhippodraw_1_1ProjectorBase.html#a3a6872d803f79eabb52babd8ae39d605" title="Returns DataSource representation of projected values.">getProjectedValues</a> () );
<a name="l00120"></a>00120   
<a name="l00121"></a>00121   <span class="keywordtype">double</span> mean = 0.0;
<a name="l00122"></a>00122   
<a name="l00123"></a>00123   <span class="keywordflow">if</span> ( axis == <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a58833a3110c570fb05130d40c365d1e4" title="X axis.">Axes::X</a> ) {
<a name="l00124"></a>00124     mean = helper.<a class="code" href="classhippodraw_1_1ProjectorHelper.html#ac3df9748e73844ab6d3cc5b5de2101a7" title="Returns the mean of the coordinates along the X axis in the data set.">meanCoord</a>();
<a name="l00125"></a>00125   }
<a name="l00126"></a>00126   <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( axis == <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a5596231eabd6cf29050967d5ac83ad84" title="Y axis.">Axes::Y</a> ) {
<a name="l00127"></a>00127     mean = helper.<a class="code" href="classhippodraw_1_1ProjectorHelper.html#a75cb054f213f72b2ab04dc344cc2b547" title="Returns the mean of the values in the data set.">meanValue</a>() * <a class="code" href="classhippodraw_1_1ProjectorBase.html#acf88649cd06c6947e10eeb2adaaa0fe2" title="The AxisModel along the Y axis.">m_y_axis</a>-&gt;<a class="code" href="classhippodraw_1_1AxisModelBase.html#afbde1a57da2ad6bd8e170d77e36e64bb" title="Returns the scale factor.">getScaleFactor</a>();
<a name="l00128"></a>00128   }
<a name="l00129"></a>00129   p -&gt; <a class="code" href="classhippodraw_1_1ProjectorBase.html#a4d656a5b47b5582bfdd5aa98a11f5aff" title="Sets the dirty flag to value.">setDirty</a> ( <span class="keyword">true</span> );   
<a name="l00130"></a>00130   <span class="keywordflow">return</span> mean;
<a name="l00131"></a>00131 }
<a name="l00132"></a>00132 
<a name="l00133"></a>00133 <span class="comment">/* virtual */</span>
<a name="l00134"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a98de8e590ee20cbb6aa9c564d79c71ee">00134</a> <span class="keyword">const</span> std::string &amp; <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a98de8e590ee20cbb6aa9c564d79c71ee" title="Finds the title of the plot.">StHist1DProjector::getTitle</a> ()<span class="keyword"> const</span>
<a name="l00135"></a>00135 <span class="keyword"></span>{
<a name="l00136"></a>00136   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a85b5b28ec973f933b9ed1328f2756def" title="The title of the histogram.">m_title</a>;
<a name="l00137"></a>00137 }
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="keywordtype">int</span>
<a name="l00140"></a>00140 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a8e2544f7315631c6c4357d2f09bdcafc" title="Returns the total number of entries that went into creating the projected values...">StHist1DProjector::</a>
<a name="l00141"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a8e2544f7315631c6c4357d2f09bdcafc">00141</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a8e2544f7315631c6c4357d2f09bdcafc" title="Returns the total number of entries that went into creating the projected values...">getNumberOfEntries</a> ()<span class="keyword"> const</span>
<a name="l00142"></a>00142 <span class="keyword"></span>{
<a name="l00143"></a>00143   <span class="keywordtype">double</span> sum = <a class="code" href="classhippodraw_1_1BinningProjector.html#af9b5689784067123bdcab4bc7bbd986f" title="The binner object.">m_binner</a>-&gt;<a class="code" href="classhippodraw_1_1BinsBase.html#a7e9ef52c4e3c9510b6818de2adf8b45f" title="Returns the true number of entries.">getNumberOfEntries</a> ();
<a name="l00144"></a>00144 
<a name="l00145"></a>00145   <span class="keywordflow">return</span> static_cast &lt; <span class="keywordtype">int</span> &gt; ( sum );
<a name="l00146"></a>00146 }
<a name="l00147"></a>00147 
<a name="l00148"></a>00148 <span class="keywordtype">int</span>
<a name="l00149"></a>00149 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a35cdd67c6245217febba7aa474120526" title="Returns the number of underflow.">StHist1DProjector::</a>
<a name="l00150"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a35cdd67c6245217febba7aa474120526">00150</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a35cdd67c6245217febba7aa474120526" title="Returns the number of underflow.">getUnderflow</a> ()<span class="keyword"> const</span>
<a name="l00151"></a>00151 <span class="keyword"></span>{
<a name="l00152"></a>00152   <span class="keywordtype">int</span> underflow = <a class="code" href="classhippodraw_1_1BinningProjector.html#af9b5689784067123bdcab4bc7bbd986f" title="The binner object.">m_binner</a>-&gt;<a class="code" href="classhippodraw_1_1BinsBase.html#afbbd232cb34fedab9301a7faa55e0c51" title="Returns the underflow.">getUnderflow</a> ();
<a name="l00153"></a>00153   <span class="keywordflow">return</span> underflow;
<a name="l00154"></a>00154 }
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <span class="keywordtype">int</span>
<a name="l00157"></a>00157 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a94fdcfac38ba98c6263f9ed44110e639" title="Returns the number of overflow.">StHist1DProjector::</a>
<a name="l00158"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a94fdcfac38ba98c6263f9ed44110e639">00158</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a94fdcfac38ba98c6263f9ed44110e639" title="Returns the number of overflow.">getOverflow</a> ()<span class="keyword"> const</span>
<a name="l00159"></a>00159 <span class="keyword"></span>{
<a name="l00160"></a>00160   <span class="keywordtype">int</span> overflow = <a class="code" href="classhippodraw_1_1BinningProjector.html#af9b5689784067123bdcab4bc7bbd986f" title="The binner object.">m_binner</a>-&gt;<a class="code" href="classhippodraw_1_1BinsBase.html#a52a3cba38d1c19738fdd85e4fa48d6ca" title="Returns the overflow.">getOverflow</a> ();
<a name="l00161"></a>00161   <span class="keywordflow">return</span> overflow;
<a name="l00162"></a>00162 }
<a name="l00163"></a>00163   
<a name="l00164"></a>00164 
<a name="l00165"></a>00165 <span class="keywordtype">void</span>
<a name="l00166"></a>00166 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a73127ff94c2b867a57f5ab0635f7e892" title="Add the values to the histogram.">StHist1DProjector::</a>
<a name="l00167"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a73127ff94c2b867a57f5ab0635f7e892">00167</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a73127ff94c2b867a57f5ab0635f7e892" title="Add the values to the histogram.">addValues</a> ( <span class="keyword">const</span> std::vector &lt; double &gt; &amp; v )
<a name="l00168"></a>00168 {
<a name="l00169"></a>00169   <span class="keywordtype">double</span> x = v[0];
<a name="l00170"></a>00170   <span class="keywordtype">double</span> w = v.size() == 2 ? v[1] : 1.0;
<a name="l00171"></a>00171 
<a name="l00172"></a>00172   <a class="code" href="classhippodraw_1_1BinningProjector.html#af9b5689784067123bdcab4bc7bbd986f" title="The binner object.">m_binner</a> -&gt; accumulate ( x, w );
<a name="l00173"></a>00173   <a class="code" href="classhippodraw_1_1ProjectorBase.html#a4d656a5b47b5582bfdd5aa98a11f5aff" title="Sets the dirty flag to value.">setDirty</a> ();
<a name="l00174"></a>00174 
<a name="l00175"></a>00175   <a class="code" href="classhippodraw_1_1Observable.html#a22405609eb7094686259b6a82ad8e0cc" title="Notifies Observer objects of a change.">notifyObservers</a> ();
<a name="l00176"></a>00176 }
<a name="l00177"></a>00177 
<a name="l00178"></a>00178 <span class="keywordtype">bool</span>
<a name="l00179"></a>00179 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a479432127ee77145cc19d6a2d1590821" title="Returns false as this class&amp;#39; data source is never empty even if no filling has...">StHist1DProjector::</a>
<a name="l00180"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#a479432127ee77145cc19d6a2d1590821">00180</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a479432127ee77145cc19d6a2d1590821" title="Returns false as this class&amp;#39; data source is never empty even if no filling has...">isEmpty</a> ()<span class="keyword"> const</span>
<a name="l00181"></a>00181 <span class="keyword"></span>{
<a name="l00182"></a>00182   <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00183"></a>00183 }
<a name="l00184"></a>00184 
<a name="l00185"></a>00185 <span class="keywordtype">void</span>
<a name="l00186"></a>00186 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#aafae52aae96d0c2dfe110e0f6b4b3746" title="Sets the Range of the binner.">StHist1DProjector::</a>
<a name="l00187"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#aafae52aae96d0c2dfe110e0f6b4b3746">00187</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#aafae52aae96d0c2dfe110e0f6b4b3746" title="Sets the Range of the binner.">setBinnerRange</a> ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> axis,
<a name="l00188"></a>00188                  <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; range,
<a name="l00189"></a>00189                  <span class="keywordtype">bool</span> const_width )
<a name="l00190"></a>00190 {
<a name="l00191"></a>00191   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1BinningProjector.html#af9b5689784067123bdcab4bc7bbd986f" title="The binner object.">m_binner</a> -&gt; <a class="code" href="classhippodraw_1_1StHist1DProjector.html#a479432127ee77145cc19d6a2d1590821" title="Returns false as this class&amp;#39; data source is never empty even if no filling has...">isEmpty</a> () ) {
<a name="l00192"></a>00192     <a class="code" href="classhippodraw_1_1BinningProjector.html#af9b5689784067123bdcab4bc7bbd986f" title="The binner object.">m_binner</a> -&gt; <a class="code" href="classhippodraw_1_1Hist1DProjImp.html#a6d962b48e7900849c06bbcb2f3300424">setRange</a> ( axis, range, const_width );
<a name="l00193"></a>00193     <a class="code" href="classhippodraw_1_1Hist1DProjImp.html#a560a5b1115e45a1c8f3a2b9b07e84cad" title="Checks the axis scaling.">checkScaling</a> ();
<a name="l00194"></a>00194   }
<a name="l00195"></a>00195   <a class="code" href="classhippodraw_1_1ProjectorBase.html#a4d656a5b47b5582bfdd5aa98a11f5aff" title="Sets the dirty flag to value.">setDirty</a> ( <span class="keyword">true</span> );
<a name="l00196"></a>00196 }
<a name="l00197"></a>00197 
<a name="l00198"></a>00198 <span class="keywordtype">void</span>
<a name="l00199"></a>00199 <a class="code" href="classhippodraw_1_1StHist1DProjector.html#ad20897c5c8bd47f5d4005989bead0e55" title="Resets the bins.">StHist1DProjector::</a>
<a name="l00200"></a><a class="code" href="classhippodraw_1_1StHist1DProjector.html#ad20897c5c8bd47f5d4005989bead0e55">00200</a> <a class="code" href="classhippodraw_1_1StHist1DProjector.html#ad20897c5c8bd47f5d4005989bead0e55" title="Resets the bins.">reset</a> ()
<a name="l00201"></a>00201 {
<a name="l00202"></a>00202   <a class="code" href="classhippodraw_1_1BinningProjector.html#af9b5689784067123bdcab4bc7bbd986f" title="The binner object.">m_binner</a> -&gt; <a class="code" href="classhippodraw_1_1StHist1DProjector.html#ad20897c5c8bd47f5d4005989bead0e55" title="Resets the bins.">reset</a> ();
<a name="l00203"></a>00203   <a class="code" href="classhippodraw_1_1ProjectorBase.html#a4d656a5b47b5582bfdd5aa98a11f5aff" title="Sets the dirty flag to value.">setDirty</a>( <span class="keyword">true</span> );
<a name="l00204"></a>00204 }
<a name="l00205"></a>00205     
</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>