123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.13"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>TTTT Analysis: fv::ZipMapFour< R, T > Class Template Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">TTTT Analysis
-  <span id="projectnumber">0.1</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.13 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- </script>
- <div id="main-nav"></div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div id="nav-path" class="navpath">
- <ul>
- <li class="navelem"><a class="el" href="namespacefv.html">fv</a></li><li class="navelem"><a class="el" href="classfv_1_1ZipMapFour.html">ZipMapFour</a></li> </ul>
- </div>
- </div><!-- top -->
- <div class="header">
- <div class="summary">
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pri-methods">Private Member Functions</a> |
- <a href="#pri-attribs">Private Attributes</a> |
- <a href="classfv_1_1ZipMapFour-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">fv::ZipMapFour< R, T > Class Template Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>Takes a set of four <a class="el" href="classfv_1_1Value.html" title="A generic value. ">Value</a><std::vector<T> > objects and a function of four Ts and returns a std::vector<R>.
- <a href="classfv_1_1ZipMapFour.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="value_8hpp_source.html">value.hpp</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for fv::ZipMapFour< R, T >:</div>
- <div class="dyncontent">
- <div class="center"><img src="classfv_1_1ZipMapFour__inherit__graph.png" border="0" usemap="#fv_1_1ZipMapFour_3_01R_00_01T_01_4_inherit__map" alt="Inheritance graph"/></div>
- <map name="fv_1_1ZipMapFour_3_01R_00_01T_01_4_inherit__map" id="fv_1_1ZipMapFour_3_01R_00_01T_01_4_inherit__map">
- <area shape="rect" id="node2" href="classfv_1_1DerivedValue.html" title="fv::DerivedValue\< std\l::vector\< R \> \>" alt="" coords="10,95,174,136"/>
- <area shape="rect" id="node3" href="classfv_1_1Value.html" title="fv::Value\< std::vector\l\< R \> \>" alt="" coords="11,5,173,47"/>
- </map>
- <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
- <div class="dynheader">
- Collaboration diagram for fv::ZipMapFour< R, T >:</div>
- <div class="dyncontent">
- <div class="center"><img src="classfv_1_1ZipMapFour__coll__graph.png" border="0" usemap="#fv_1_1ZipMapFour_3_01R_00_01T_01_4_coll__map" alt="Collaboration graph"/></div>
- <map name="fv_1_1ZipMapFour_3_01R_00_01T_01_4_coll__map" id="fv_1_1ZipMapFour_3_01R_00_01T_01_4_coll__map">
- <area shape="rect" id="node2" href="classfv_1_1DerivedValue.html" title="fv::DerivedValue\< std\l::vector\< R \> \>" alt="" coords="5,96,169,137"/>
- <area shape="rect" id="node3" href="classfv_1_1Value.html" title="fv::Value\< std::vector\l\< R \> \>" alt="" coords="6,5,169,47"/>
- <area shape="rect" id="node4" href="classfv_1_1Value.html" title="fv::Value\< std::vector\l\< T \> \>" alt="" coords="194,96,357,137"/>
- </map>
- <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:a81d45d3989fec25c0fc5b03020a49ad5"><td class="memItemLeft" align="right" valign="top"><a id="a81d45d3989fec25c0fc5b03020a49ad5"></a>
-  </td><td class="memItemRight" valign="bottom"><b>ZipMapFour</b> (Function< R(T, T, T, T)> &f, <a class="el" href="classfv_1_1Value.html">Value</a>< std::vector< T > > *v1, <a class="el" href="classfv_1_1Value.html">Value</a>< std::vector< T > > *v2, <a class="el" href="classfv_1_1Value.html">Value</a>< std::vector< T > > *v3, <a class="el" href="classfv_1_1Value.html">Value</a>< std::vector< T > > *v4, const std::string alias)</td></tr>
- <tr class="separator:a81d45d3989fec25c0fc5b03020a49ad5"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afe46da04d20b619f65916526c16b91c4"><td class="memItemLeft" align="right" valign="top"><a id="afe46da04d20b619f65916526c16b91c4"></a>
-  </td><td class="memItemRight" valign="bottom"><b>ZipMapFour</b> (Function< R(T, T, T, T)> &f, const std::string &label1, const std::string &label2, const std::string &label3, const std::string &label4, const std::string alias)</td></tr>
- <tr class="separator:afe46da04d20b619f65916526c16b91c4"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="inherit_header pub_methods_classfv_1_1DerivedValue"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classfv_1_1DerivedValue')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classfv_1_1DerivedValue.html">fv::DerivedValue< std::vector< R > ></a></td></tr>
- <tr class="memitem:a00219a17112600afdc060d67d6f95b21 inherit pub_methods_classfv_1_1DerivedValue"><td class="memItemLeft" align="right" valign="top"><a id="a00219a17112600afdc060d67d6f95b21"></a>
-  </td><td class="memItemRight" valign="bottom"><b>DerivedValue</b> (const std::string &name, const std::string &alias="")</td></tr>
- <tr class="separator:a00219a17112600afdc060d67d6f95b21 inherit pub_methods_classfv_1_1DerivedValue"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a39970158aa8f6eb062a28037df6e2128 inherit pub_methods_classfv_1_1DerivedValue"><td class="memItemLeft" align="right" valign="top"><a id="a39970158aa8f6eb062a28037df6e2128"></a>
- std::vector< R > & </td><td class="memItemRight" valign="bottom"><b>get_value</b> ()</td></tr>
- <tr class="memdesc:a39970158aa8f6eb062a28037df6e2128 inherit pub_methods_classfv_1_1DerivedValue"><td class="mdescLeft"> </td><td class="mdescRight">Calculate, if necessary, and return the value held by this object. <br /></td></tr>
- <tr class="separator:a39970158aa8f6eb062a28037df6e2128 inherit pub_methods_classfv_1_1DerivedValue"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="inherit_header pub_methods_classfv_1_1Value"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classfv_1_1Value')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classfv_1_1Value.html">fv::Value< std::vector< R > ></a></td></tr>
- <tr class="memitem:afded92c24f946c1551c1f1b005f31091 inherit pub_methods_classfv_1_1Value"><td class="memItemLeft" align="right" valign="top"><a id="afded92c24f946c1551c1f1b005f31091"></a>
-  </td><td class="memItemRight" valign="bottom"><b>Value</b> (const std::string &name, const std::string &alias="")</td></tr>
- <tr class="separator:afded92c24f946c1551c1f1b005f31091 inherit pub_methods_classfv_1_1Value"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
- Private Member Functions</h2></td></tr>
- <tr class="memitem:a812747fdc043c776951ceb93a1085915"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfv_1_1ZipMapFour.html#a812747fdc043c776951ceb93a1085915">update_value</a> ()</td></tr>
- <tr class="memdesc:a812747fdc043c776951ceb93a1085915"><td class="mdescLeft"> </td><td class="mdescRight">Updates the internal value. <a href="#a812747fdc043c776951ceb93a1085915">More...</a><br /></td></tr>
- <tr class="separator:a812747fdc043c776951ceb93a1085915"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
- Private Attributes</h2></td></tr>
- <tr class="memitem:ad64b5654f8c745900a1b6d8aa6b9b681"><td class="memItemLeft" align="right" valign="top"><a id="ad64b5654f8c745900a1b6d8aa6b9b681"></a>
- Function< R(T, T, T, T)> & </td><td class="memItemRight" valign="bottom"><b>f</b></td></tr>
- <tr class="separator:ad64b5654f8c745900a1b6d8aa6b9b681"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad1d5d707ed951de86236f4ccb7b4822a"><td class="memItemLeft" align="right" valign="top"><a id="ad1d5d707ed951de86236f4ccb7b4822a"></a>
- <a class="el" href="classfv_1_1Value.html">Value</a>< std::vector< T > > * </td><td class="memItemRight" valign="bottom"><b>v1</b></td></tr>
- <tr class="separator:ad1d5d707ed951de86236f4ccb7b4822a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7372a10312b93e50e8851244caa82e14"><td class="memItemLeft" align="right" valign="top"><a id="a7372a10312b93e50e8851244caa82e14"></a>
- <a class="el" href="classfv_1_1Value.html">Value</a>< std::vector< T > > * </td><td class="memItemRight" valign="bottom"><b>v2</b></td></tr>
- <tr class="separator:a7372a10312b93e50e8851244caa82e14"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa403e20095880e9ae7f0853ca47a7166"><td class="memItemLeft" align="right" valign="top"><a id="aa403e20095880e9ae7f0853ca47a7166"></a>
- <a class="el" href="classfv_1_1Value.html">Value</a>< std::vector< T > > * </td><td class="memItemRight" valign="bottom"><b>v3</b></td></tr>
- <tr class="separator:aa403e20095880e9ae7f0853ca47a7166"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0e2fa2764e5c0023336a5d294fe53c00"><td class="memItemLeft" align="right" valign="top"><a id="a0e2fa2764e5c0023336a5d294fe53c00"></a>
- <a class="el" href="classfv_1_1Value.html">Value</a>< std::vector< T > > * </td><td class="memItemRight" valign="bottom"><b>v4</b></td></tr>
- <tr class="separator:a0e2fa2764e5c0023336a5d294fe53c00"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
- Additional Inherited Members</h2></td></tr>
- <tr class="inherit_header pro_attribs_classfv_1_1DerivedValue"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classfv_1_1DerivedValue')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classfv_1_1DerivedValue.html">fv::DerivedValue< std::vector< R > ></a></td></tr>
- <tr class="memitem:aeb7ff5d17ad44b2040fc9930bbcc2c7a inherit pro_attribs_classfv_1_1DerivedValue"><td class="memItemLeft" align="right" valign="top"><a id="aeb7ff5d17ad44b2040fc9930bbcc2c7a"></a>
- std::vector< R > </td><td class="memItemRight" valign="bottom"><b>value</b></td></tr>
- <tr class="separator:aeb7ff5d17ad44b2040fc9930bbcc2c7a inherit pro_attribs_classfv_1_1DerivedValue"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aafa55adbb38dc7fe210ea15e920515dc inherit pro_attribs_classfv_1_1DerivedValue"><td class="memItemLeft" align="right" valign="top"><a id="aafa55adbb38dc7fe210ea15e920515dc"></a>
- bool </td><td class="memItemRight" valign="bottom"><b>value_valid</b></td></tr>
- <tr class="separator:aafa55adbb38dc7fe210ea15e920515dc inherit pro_attribs_classfv_1_1DerivedValue"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><h3>template<typename R, typename T><br />
- class fv::ZipMapFour< R, T ></h3>
- <p>Takes a set of four <a class="el" href="classfv_1_1Value.html" title="A generic value. ">Value</a><std::vector<T> > objects and a function of four Ts and returns a std::vector<R>. </p>
- <p>This is used in, for instance, calculating the energy of a set of particles when one has separate arrays containing pt, eta, phi, and mass. These arrays are first wrapped up in VectorWrappers and then passes along with a function to calculate the energy into a <a class="el" href="classfv_1_1ZipMapFour.html" title="Takes a set of four Value<std::vector<T> > objects and a function of four Ts and returns a std::vecto...">ZipMapFour</a>. The result of this calculation is a new vector containing the energy for each particle. Note that if the input vectors are not all the same size, calculations are only performed up to the size of the shortest. </p><dl class="section see"><dt>See also</dt><dd>MiniTreeDataSet </dd></dl>
- <dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>find way to implement for arbitrary number(and possibly type) of vector inputs. </dd></dl>
- </div><h2 class="groupheader">Member Function Documentation</h2>
- <a id="a812747fdc043c776951ceb93a1085915"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a812747fdc043c776951ceb93a1085915">◆ </a></span>update_value()</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename R , typename T > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="classfv_1_1ZipMapFour.html">fv::ZipMapFour</a>< R, T >::update_value </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Updates the internal value. </p>
- <p>This function should be overridden by any child class to do the actual work of updating value based on whatever rules the class chooses. Normally, this consists of geting the values from some associated <a class="el" href="classfv_1_1Value.html" title="A generic value. ">Value</a> objects, doing some calculation on them, and storing the result in value. </p>
- <p>Implements <a class="el" href="classfv_1_1DerivedValue.html#ae59e80a98eb74b95d8961bfe12ee5ec2">fv::DerivedValue< std::vector< R > ></a>.</p>
- <div class="dynheader">
- Here is the call graph for this function:</div>
- <div class="dyncontent">
- <div class="center"><img src="classfv_1_1ZipMapFour_a812747fdc043c776951ceb93a1085915_cgraph.png" border="0" usemap="#classfv_1_1ZipMapFour_a812747fdc043c776951ceb93a1085915_cgraph" alt=""/></div>
- <map name="classfv_1_1ZipMapFour_a812747fdc043c776951ceb93a1085915_cgraph" id="classfv_1_1ZipMapFour_a812747fdc043c776951ceb93a1085915_cgraph">
- <area shape="rect" id="node2" href="classfv_1_1Value.html#a4cc70444ceaf5d7651922adf9b7beeff" title="Calculate, if necessary, and return the value held by this object. " alt="" coords="224,13,375,39"/>
- </map>
- </div>
- </div>
- </div>
- <hr/>The documentation for this class was generated from the following file:<ul>
- <li>/home/caleb/Sources/TTTT/filval/<a class="el" href="value_8hpp_source.html">value.hpp</a></li>
- </ul>
- </div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.13
- </small></address>
- </body>
- </html>
|