Sophie

Sophie

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

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>FunctionProjector.h</h1><a href="FunctionProjector_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: c++ -*- */</span>
<a name="l00002"></a>00002 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef _FunctionProjector_H_</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define _FunctionProjector_H_</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="ProjectorBase_8h.html" title="hippodraw::ProjectorBase class interface.">ProjectorBase.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="keyword">namespace </span>hippodraw {
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="keyword">class </span>BinsFunction;
<a name="l00022"></a>00022 <span class="keyword">class </span>Fitter;
<a name="l00023"></a>00023 <span class="keyword">class </span>FunctionBase;
<a name="l00024"></a>00024 <span class="keyword">class </span>TupleCut;
<a name="l00025"></a>00025 
<a name="l00033"></a><a class="code" href="classhippodraw_1_1FunctionProjector.html">00033</a> <span class="keyword">class </span><a class="code" href="libhippo_8h.html#a480024fd54849c743866874550153711">MDL_HIPPOPLOT_API</a> <a class="code" href="classhippodraw_1_1FunctionProjector.html" title="A projector that plots one function.">FunctionProjector</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a>
<a name="l00034"></a>00034 {
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">private</span>:
<a name="l00037"></a>00037 
<a name="l00040"></a><a class="code" href="classhippodraw_1_1FunctionProjector.html#a05491a08630ec91887838561da4d878a">00040</a>   <span class="keyword">mutable</span> std::vector&lt; std::vector &lt; double &gt; &gt; m_covariance;
<a name="l00041"></a>00041 
<a name="l00044"></a><a class="code" href="classhippodraw_1_1FunctionProjector.html#a006462b570c0dacec2d98745ccc784b4">00044</a>   <span class="keyword">mutable</span> std::vector&lt; double &gt;  m_principleErrors;
<a name="l00045"></a>00045     
<a name="l00047"></a><a class="code" href="classhippodraw_1_1FunctionProjector.html#ac33ec1d90a251c7dab8ef5a9d8f5e732">00047</a>   <span class="keyword">static</span> std::string s_x_label; 
<a name="l00048"></a>00048 
<a name="l00053"></a><a class="code" href="classhippodraw_1_1FunctionProjector.html#a428086f0911c651156b9510f6d9e123f">00053</a>   std::vector&lt; double &gt; m_save_parms;
<a name="l00054"></a>00054 
<a name="l00056"></a><a class="code" href="classhippodraw_1_1FunctionProjector.html#a1803857d16b082f0bb754fc9216b6f6a">00056</a>   std::string m_z_label;
<a name="l00057"></a>00057 
<a name="l00061"></a><a class="code" href="classhippodraw_1_1FunctionProjector.html#a0fc6d77e760cfa6fbac5c3fd5b801ed0">00061</a>   <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> * m_target;
<a name="l00062"></a>00062 
<a name="l00064"></a><a class="code" href="classhippodraw_1_1FunctionProjector.html#a8dc0ee286cf84b5835db9b75cb771cf4">00064</a>   <a class="code" href="classhippodraw_1_1FunctionBase.html" title="A function that can be added to a DataRep and used in a fitter.">FunctionBase</a> * m_function;
<a name="l00065"></a>00065 
<a name="l00070"></a><a class="code" href="classhippodraw_1_1FunctionProjector.html#a8857c53b302d6fad5561f0d533b7579a">00070</a>   <a class="code" href="classhippodraw_1_1Fitter.html" title="The base class for fitters.">Fitter</a> * m_fitter;
<a name="l00071"></a>00071 
<a name="l00073"></a>00073   <span class="keyword">virtual</span> <span class="keywordtype">void</span> addPointReps ();
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 <span class="keyword">public</span>:
<a name="l00076"></a>00076 
<a name="l00080"></a>00080    <a class="code" href="classhippodraw_1_1FunctionProjector.html" title="A projector that plots one function.">FunctionProjector</a> ( <a class="code" href="classhippodraw_1_1FunctionBase.html" title="A function that can be added to a DataRep and used in a fitter.">FunctionBase</a> * function,
<a name="l00081"></a>00081                        <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> * targetProjector );
<a name="l00082"></a>00082 
<a name="l00084"></a>00084   <a class="code" href="classhippodraw_1_1FunctionProjector.html" title="A projector that plots one function.">FunctionProjector</a>( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1FunctionProjector.html" title="A projector that plots one function.">FunctionProjector</a> &amp; );
<a name="l00085"></a>00085 
<a name="l00088"></a>00088   <span class="keyword">virtual</span> ~<a class="code" href="classhippodraw_1_1FunctionProjector.html" title="A projector that plots one function.">FunctionProjector</a>();
<a name="l00089"></a>00089 
<a name="l00090"></a>00090   <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> * <a class="code" href="namespacenum__util.html#a8d145d73a173083711a3829a2bc75f5c">clone</a>();
<a name="l00091"></a>00091 
<a name="l00093"></a>00093   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isEmpty () <span class="keyword">const</span>;
<a name="l00094"></a>00094 
<a name="l00097"></a>00097   <span class="keywordtype">double</span> objectiveValue () <span class="keyword">const</span>;
<a name="l00098"></a>00098 
<a name="l00101"></a>00101   <span class="keyword">const</span> std::vector &lt; std::vector &lt; double &gt; &gt; &amp;  covariance ( ) <span class="keyword">const</span>;
<a name="l00102"></a>00102 
<a name="l00105"></a>00105   <span class="keywordtype">void</span> calcPrincipleErrors() <span class="keyword">const</span>;
<a name="l00106"></a>00106 
<a name="l00108"></a>00108   <span class="keyword">const</span> std::vector&lt; double &gt; &amp; principleErrors () <span class="keyword">const</span>;
<a name="l00109"></a>00109   
<a name="l00114"></a>00114   <span class="keywordtype">void</span> setPrincipleErrors ( std::vector &lt; double &gt; ::const_iterator first,
<a name="l00115"></a>00115                             std::vector &lt; double &gt; ::const_iterator last );
<a name="l00116"></a>00116 
<a name="l00119"></a>00119   <span class="keywordtype">void</span> setFitter ( <a class="code" href="classhippodraw_1_1Fitter.html" title="The base class for fitters.">Fitter</a> * fitter );
<a name="l00120"></a>00120 
<a name="l00123"></a>00123   <a class="code" href="classhippodraw_1_1Fitter.html" title="The base class for fitters.">Fitter</a> * getFitter ( ) <span class="keyword">const</span>;
<a name="l00124"></a>00124 
<a name="l00126"></a>00126   <span class="keywordtype">int</span> degreesOfFreedom () <span class="keyword">const</span>; 
<a name="l00127"></a>00127 
<a name="l00129"></a>00129   <a class="code" href="classhippodraw_1_1FunctionBase.html" title="A function that can be added to a DataRep and used in a fitter.">FunctionBase</a> * function () <span class="keyword">const</span>;
<a name="l00130"></a>00130 
<a name="l00132"></a>00132   <span class="keywordtype">bool</span> hasSavedParameters () <span class="keyword">const</span>;
<a name="l00133"></a>00133 
<a name="l00135"></a>00135   <span class="keywordtype">void</span> saveParameters ();
<a name="l00136"></a>00136 
<a name="l00139"></a>00139   <span class="keywordtype">void</span> restoreParameters ();
<a name="l00140"></a>00140 
<a name="l00143"></a>00143   <span class="keywordtype">void</span> initializeFunction ( <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> * projector );
<a name="l00144"></a>00144 
<a name="l00149"></a>00149   <span class="keywordtype">bool</span> fitFunction ( );
<a name="l00150"></a>00150 
<a name="l00151"></a>00151   <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> valueRange() <span class="keyword">const</span>;
<a name="l00152"></a>00152 
<a name="l00153"></a>00153   <span class="keyword">virtual</span> <span class="keyword">const</span> std::string &amp; getTitle() <span class="keyword">const</span>;
<a name="l00154"></a>00154 
<a name="l00155"></a>00155   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setRange( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a>, <span class="keywordtype">bool</span> );
<a name="l00156"></a>00156   <span class="keyword">virtual</span> <span class="keywordtype">double</span> getPosOn ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> ) <span class="keyword">const</span>;
<a name="l00157"></a>00157 
<a name="l00161"></a>00161   <span class="keyword">virtual</span> <span class="keyword">const</span> std::string &amp; getXLabel() <span class="keyword">const</span>;
<a name="l00162"></a>00162 
<a name="l00168"></a>00168   <span class="keyword">virtual</span> <span class="keyword">const</span> std::string &amp; getYLabel ( <span class="keywordtype">bool</span> density = <span class="keyword">false</span> ) <span class="keyword">const</span>;
<a name="l00169"></a>00169 
<a name="l00173"></a>00173   <span class="keywordtype">int</span> getNumberOfEntries () <span class="keyword">const</span>;
<a name="l00174"></a>00174 
<a name="l00176"></a>00176   <span class="keywordtype">int</span> getUnderflow () <span class="keyword">const</span>;
<a name="l00177"></a>00177 
<a name="l00179"></a>00179   <span class="keywordtype">int</span> getOverflow () <span class="keyword">const</span>;
<a name="l00180"></a>00180 
<a name="l00181"></a>00181 
<a name="l00182"></a>00182   <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> dataRangeOn ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Axes constants.">hippodraw::Axes::Type</a> ) <span class="keyword">const</span>;
<a name="l00183"></a>00183 
<a name="l00185"></a>00185   <span class="keyword">const</span> std::string &amp; getZLabel() <span class="keyword">const</span>;
<a name="l00186"></a>00186 
<a name="l00189"></a>00189   <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * createNTuple () <span class="keyword">const</span>;
<a name="l00190"></a>00190   
<a name="l00192"></a>00192   <span class="keywordtype">void</span> setParameters( <span class="keyword">const</span> std::vector&lt;double&gt; &amp;params );
<a name="l00193"></a>00193 
<a name="l00196"></a>00196   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setFitCut ( <a class="code" href="classhippodraw_1_1TupleCut.html" title="The class expresses a cut on a DataSource, i.e.">TupleCut</a> * cut );
<a name="l00197"></a>00197 
<a name="l00200"></a>00200   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setFitRange ( <span class="keywordtype">bool</span> yes = <span class="keyword">true</span> );
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 <span class="keyword">protected</span>:
<a name="l00203"></a>00203 
<a name="l00206"></a>00206   <span class="keyword">virtual</span> <span class="keywordtype">void</span> fillProjectedValues ( <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ntuple, 
<a name="l00207"></a>00207                                      <span class="keywordtype">bool</span> in_range = <span class="keyword">false</span> ) <span class="keyword">const</span>;
<a name="l00208"></a>00208 
<a name="l00209"></a>00209 };
<a name="l00210"></a>00210 
<a name="l00211"></a>00211 } <span class="comment">// namespace hippodraw</span>
<a name="l00212"></a>00212 
<a name="l00213"></a>00213 <span class="preprocessor">#endif // _FunctionProjector_H_</span>
</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>