/usr/share/doc/siscone-doc-html/html/devel/spherical_2split__merge_8h_source.html is in siscone-doc-html 2.0.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 | <!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.3.1"/>
<title>SISCone: siscone/spherical/split_merge.h Source File</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="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 style="padding-left: 0.5em;">
<div id="projectname">SISCone
 <span id="projectnumber">2.0.6</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</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>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_1331b0450b50de117660f97bbea14878.html">siscone</a></li><li class="navelem"><a class="el" href="dir_cfa66b89213eba0fe238b98f49123a41.html">spherical</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">split_merge.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// -*- C++ -*-</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"></span><span class="comment">// File: split_merge.h //</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// Description: header file for splitting/merging (contains the CJet class) //</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// This file is part of the SISCone project. //</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// WARNING: this is not the main SISCone trunk but //</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// an adaptation to spherical coordinates //</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// For more details, see http://projects.hepforge.org/siscone //</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// //</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// Copyright (c) 2006-2008 Gavin Salam and Gregory Soyez //</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// //</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// This program is free software; you can redistribute it and/or modify //</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// it under the terms of the GNU General Public License as published by //</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// the Free Software Foundation; either version 2 of the License, or //</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// (at your option) any later version. //</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// //</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// This program is distributed in the hope that it will be useful, //</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of //</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">// GNU General Public License for more details. //</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// //</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">// You should have received a copy of the GNU General Public License //</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// along with this program; if not, write to the Free Software //</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA //</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">// //</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// $Revision:: 309 $//</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// $Date:: 2011-08-09 12:33:15 +0200 (Tue, 09 Aug 2011) $//</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"></span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#ifndef __SPH_SPLIT_MERGE_H__</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor"></span><span class="preprocessor">#define __SPH_SPLIT_MERGE_H__</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <<a class="code" href="defines_8h.html">siscone/defines.h</a>></span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "geom_2d.h"</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "momentum.h"</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include <stdio.h></span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include <vector></span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include <set></span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include <memory></span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include <string></span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">namespace </span>siscone_spherical{</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphjet.html"> 53</a></span> <span class="keyword">class </span><a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a>{</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classsiscone__spherical_1_1CSphjet.html#a45897d27fad54addcc8dc18bf400b31f" title="default ctor">CSphjet</a>();</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classsiscone__spherical_1_1CSphjet.html#a0f8e7e095c0e035e428521a605b66d1c" title="default dtor">~CSphjet</a>();</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphjet.html#a78d632dc359ba6d0562e9c301138fa1e"> 61</a></span>  <a class="code" href="classsiscone__spherical_1_1CSphmomentum.html" title="base class for dynamic coordinates management">CSphmomentum</a> <a class="code" href="classsiscone__spherical_1_1CSphjet.html#a78d632dc359ba6d0562e9c301138fa1e" title="jet momentum">v</a>; </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphjet.html#a59a0e549b9a9c77b610835b988b83a77"> 62</a></span>  <span class="keywordtype">double</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html#a59a0e549b9a9c77b610835b988b83a77" title="sum of E_i [ 1 +|p_i x p_J|^2/(|p_i|^2 E_J^2)]">E_tilde</a>; </div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphjet.html#afcefb98d527e14a0a13e106c4fcb4f6a"> 63</a></span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html#afcefb98d527e14a0a13e106c4fcb4f6a" title="number of particles inside">n</a>; </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphjet.html#a9a64312b3a01a88b1ea32e5a525aa18c"> 64</a></span>  std::vector<int> <a class="code" href="classsiscone__spherical_1_1CSphjet.html#a9a64312b3a01a88b1ea32e5a525aa18c" title="particle contents (list of indices)">contents</a>; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphjet.html#a4add2884208b45e059997d62e17c0ab3"> 77</a></span>  <span class="keywordtype">double</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html#a4add2884208b45e059997d62e17c0ab3" title="ordering variable used for ordering and overlap in the split–merge.">sm_var2</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphjet.html#aa56b931b5780813052098420c2e96599"> 80</a></span>  <a class="code" href="classsiscone__spherical_1_1CSphtheta__phi__range.html" title="class for holding a covering range in eta-phi">CSphtheta_phi_range</a> <a class="code" href="classsiscone__spherical_1_1CSphjet.html#aa56b931b5780813052098420c2e96599" title="covered range in eta-phi">range</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphjet.html#a01ee896e0bd5cd451df0b09286784784"> 84</a></span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html#a01ee896e0bd5cd451df0b09286784784" title="pass at which the jet has been found It starts at 0 (first pass), -1 means infinite rapidity...">pass</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> };</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="keywordtype">bool</span> jets_E_less(<span class="keyword">const</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a> &j1, <span class="keyword">const</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a> &j2);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keyword">enum</span> Esplit_merge_scale {</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  SM_E, </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  SM_Etilde </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> };</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> std::string split_merge_scale_name(Esplit_merge_scale sms);</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html"> 114</a></span> <span class="keyword">class </span><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html" title="a class that allows us to carry out comparisons of pt of jets, using information from exact particle ...">CSphsplit_merge_ptcomparison</a>{</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a06d1224db97db3a28df727048e3ea3e9"> 117</a></span>  <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a06d1224db97db3a28df727048e3ea3e9" title="default ctor">CSphsplit_merge_ptcomparison</a>() : </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a04f0f385697057903733df766a8d16db" title="pointer to the list of particles">particles</a>(0), <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a0e36842e9f324609fa257b8cb2dacdf7" title="the following parameter controls the variable we're using for the split-merge process i...">split_merge_scale</a>(SM_Etilde){};</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a41567b55319bf128db032d9af3ed5903"> 121</a></span>  std::string <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a41567b55319bf128db032d9af3ed5903" title="return the name corresponding to the SM scale variable">SM_scale_name</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">return</span> split_merge_scale_name(<a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a0e36842e9f324609fa257b8cb2dacdf7" title="the following parameter controls the variable we're using for the split-merge process i...">split_merge_scale</a>);}</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a04f0f385697057903733df766a8d16db"> 124</a></span>  std::vector<CSphmomentum> * <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a04f0f385697057903733df766a8d16db" title="pointer to the list of particles">particles</a>; </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a41a33526f004f8d3a0597a8a43f3436f"> 125</a></span>  std::vector<double> * <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a41a33526f004f8d3a0597a8a43f3436f" title="pointer to the particles's norm^2">particles_norm2</a>; </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">bool</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#ae0b1da59cf1cb28f17821eb45ba0ff28" title="comparison of 2 CSphjet">operator()</a>(<span class="keyword">const</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a> &jet1, <span class="keyword">const</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a> &jet2) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordtype">void</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a5f55a48dd608a157293c51981966236c" title="get the difference between 2 jets, calculated such that rounding errors will not affect the result ev...">get_difference</a>(<span class="keyword">const</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a> &j1, <span class="keyword">const</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a> &j2, <a class="code" href="classsiscone__spherical_1_1CSphmomentum.html" title="base class for dynamic coordinates management">CSphmomentum</a> *v, <span class="keywordtype">double</span> *E_tilde) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a0e36842e9f324609fa257b8cb2dacdf7"> 153</a></span>  Esplit_merge_scale <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html#a0e36842e9f324609fa257b8cb2dacdf7" title="the following parameter controls the variable we're using for the split-merge process i...">split_merge_scale</a>;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> };</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment">// iterator types</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment"></span><span class="keyword">typedef</span> std::multiset<siscone_spherical::CSphjet,CSphsplit_merge_ptcomparison>::iterator cjet_iterator;</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="keyword">typedef</span> std::vector<siscone_spherical::CSphjet>::iterator jet_iterator;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html"> 170</a></span> <span class="keyword">class </span><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html" title="Class used to split and merge jets.">CSphsplit_merge</a>{</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a61da89096cc43817c03092a1ed56c9de" title="default ctor">CSphsplit_merge</a>();</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a905e9cde0b7886ef7740582e25d53a2c" title="default dtor">~CSphsplit_merge</a>();</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="comment">// initialisation functions //</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment"></span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a7d9af56b2a16ab54c336d91c2842f29e" title="initialisation function">init</a>(std::vector<CSphmomentum> &_particles, std::vector<CSphmomentum> *protocones, <span class="keywordtype">double</span> R2, <span class="keywordtype">double</span> Emin=0.0);</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#abd90f5ab4223a2c18fe7d12e68ac3fb9" title="initialisation function for particle list">init_particles</a>(std::vector<CSphmomentum> &_particles);</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a62ca78c181aef17ad1477a7a8d17ee29" title="build initial list of left particles">init_pleft</a>();</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ad7ac103195e78678f5e378c711d5d179"> 216</a></span>  <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ad7ac103195e78678f5e378c711d5d179" title="use an energy-dependent boundary for splitting When called with true, the criterium for splitting two...">set_E_weighted_splitting</a>(<span class="keywordtype">bool</span> _use_E_weighted_splitting){</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  use_E_weighted_splitting = _use_E_weighted_splitting;</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  }</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="comment">// cleaning functions //</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="comment"></span></div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a2449383bb4cc9483f9c36882a177c6b7" title="partial clearance">partial_clear</a>();</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a578a9ed5c83c95b88b86878a3268f05f" title="full clearance">full_clear</a>();</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="comment">// main parts of the algorithm //</span></div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment"></span> </div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ab82006e12fc2c85ebf5ab1ba80db0710" title="build the list 'p_uncol_hard' from p_remain by clustering collinear particles note that thins in only...">merge_collinear_and_remove_soft</a>();</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#af8b36a6c03d1ec3332d4873dc7db2307" title="add a list of protocones">add_protocones</a>(std::vector<CSphmomentum> *protocones, <span class="keywordtype">double</span> R2, <span class="keywordtype">double</span> Emin=0.0);</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a1b67fe0cf1cb6ba35f007016152dcd4b" title="really do the splitting and merging At the end, the vector jets is filled with the jets found...">perform</a>(<span class="keywordtype">double</span> overlap_tshold, <span class="keywordtype">double</span> Emin=0.0);</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="comment">// save and debug functions //</span></div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="comment"></span></div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ab16c216a712c24ee63e04f4db8f14cb3" title="save final jets">save_contents</a>(FILE *flux);</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a0acf741a9cc0107b802a542ce8615584" title="show jets/candidates status">show</a>();</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="comment">// particle information</span></div>
<div class="line"><a name="l00280"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a2b31e70f38864008b01962a988414e7b"> 280</a></span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a2b31e70f38864008b01962a988414e7b" title="number of particles">n</a>; </div>
<div class="line"><a name="l00281"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ade62e388b087eb62ccff58571410c6cc"> 281</a></span>  std::vector<CSphmomentum> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ade62e388b087eb62ccff58571410c6cc" title="list of particles">particles</a>; </div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a5b9a6024c923c7a0f3a2f63e45ab75ba"> 282</a></span>  std::vector<double> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a5b9a6024c923c7a0f3a2f63e45ab75ba" title="norm^2 of the particle (3-vect part)">particles_norm2</a>; </div>
<div class="line"><a name="l00283"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ad3c636bfd3366c6568ab55880d07e049"> 283</a></span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ad3c636bfd3366c6568ab55880d07e049" title="numer of particles that does not belong to any jet">n_left</a>; </div>
<div class="line"><a name="l00284"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a95437f7f050b5cc84dca05ede94a67d8"> 284</a></span>  std::vector<CSphmomentum> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a95437f7f050b5cc84dca05ede94a67d8" title="list of particles remaining to deal with">p_remain</a>; </div>
<div class="line"><a name="l00285"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#abb73ce00e12afa6e965e13a19b59e54b"> 285</a></span>  std::vector<CSphmomentum> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#abb73ce00e12afa6e965e13a19b59e54b" title="list of particles remaining with collinear clustering">p_uncol_hard</a>; </div>
<div class="line"><a name="l00286"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a5f077af627a9a54361c9705beb4d79bc"> 286</a></span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a5f077af627a9a54361c9705beb4d79bc" title="index of the run">n_pass</a>; </div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div>
<div class="line"><a name="l00291"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a260340a14fee7deec3f95cebf8647b31"> 291</a></span>  <span class="keywordtype">double</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a260340a14fee7deec3f95cebf8647b31" title="minimal difference in squared distance between a particle and two overlapping protojets when doing a ...">most_ambiguous_split</a>; </div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> </div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="comment">// jets information</span></div>
<div class="line"><a name="l00294"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#adfb704a6820ddf70263cf29761bbcca7"> 294</a></span>  std::vector<CSphjet> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#adfb704a6820ddf70263cf29761bbcca7" title="list of jets">jets</a>; </div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="comment">// working entries</span></div>
<div class="line"><a name="l00297"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ad8f288337e674611c4bdf1ec9ecaaadb"> 297</a></span>  <span class="keywordtype">int</span> *<a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ad8f288337e674611c4bdf1ec9ecaaadb" title="maximal size array for indices works">indices</a>; </div>
<div class="line"><a name="l00298"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a123855210b47958fabb8a6f4e67bd7e3"> 298</a></span>  <span class="keywordtype">int</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a123855210b47958fabb8a6f4e67bd7e3" title="number of elements in indices1">idx_size</a>; </div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> </div>
<div class="line"><a name="l00308"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ac3af0bafe24ada4acbe31f492a4ceff9"> 308</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#ac3af0bafe24ada4acbe31f492a4ceff9" title="The following flag indicates that identical protocones are to be merged automatically each time aroun...">merge_identical_protocones</a>;</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> </div>
<div class="line"><a name="l00311"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#af1e47ef8f6b0ab6e218b6abe3568f864"> 311</a></span>  <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge__ptcomparison.html" title="a class that allows us to carry out comparisons of pt of jets, using information from exact particle ...">CSphsplit_merge_ptcomparison</a> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#af1e47ef8f6b0ab6e218b6abe3568f864" title="member used for detailed comparisons of pt's">ptcomparison</a>;</div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> </div>
<div class="line"><a name="l00318"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a2d326681b6fa0ad85c6b34f8d0eb6c9c"> 318</a></span>  <span class="keywordtype">double</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a2d326681b6fa0ad85c6b34f8d0eb6c9c" title="stop split–merge when the SM_var of the hardest protojet is below this cut-off.">SM_var2_hardest_cut_off</a>;</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div>
<div class="line"><a name="l00323"></a><span class="lineno"><a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a077946ae2794803fc66e2da2a553c392"> 323</a></span>  <span class="keywordtype">double</span> <a class="code" href="classsiscone__spherical_1_1CSphsplit__merge.html#a077946ae2794803fc66e2da2a553c392" title="Energy cutoff for the particles to put in p_uncol_hard this is meant to allow removing soft particles...">stable_cone_soft_E2_cutoff</a>;</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> </div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordtype">bool</span> get_overlap(<span class="keyword">const</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a> &j1, <span class="keyword">const</span> <a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a> &j2, <span class="keywordtype">double</span> *v);</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keywordtype">bool</span> split(cjet_iterator &it_j1, cjet_iterator &it_j2);</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keywordtype">bool</span> merge(cjet_iterator &it_j1, cjet_iterator &it_j2);</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> </div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keywordtype">bool</span> insert(<a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a> &jet);</div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> </div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keywordtype">double</span> get_sm_var2(<a class="code" href="classsiscone__spherical_1_1CSphmomentum.html" title="base class for dynamic coordinates management">CSphmomentum</a> &v, <span class="keywordtype">double</span> &E_tilde);</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> </div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="keywordtype">void</span> compute_Etilde(<a class="code" href="classsiscone__spherical_1_1CSphjet.html" title="real Jet information.">CSphjet</a> &j);</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> </div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="comment">// jet information</span></div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> <span class="comment"></span> std::auto_ptr<std::multiset<CSphjet,CSphsplit_merge_ptcomparison> > candidates;</div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span> </div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="keywordtype">double</span> E_min;</div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> </div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <span class="keywordtype">bool</span> use_E_weighted_splitting;</div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> </div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span> <span class="preprocessor">#ifdef ALLOW_MERGE_IDENTICAL_PROTOCONES</span></div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  std::set<siscone::Creference> cand_refs;</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span> <span class="preprocessor"></span>};</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span> </div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> }</div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span> </div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> </div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> <span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<address style="align: right;"><small>
The <a href="http://projects.hepforge.org/siscone" target="_top">
SISCone</a> project has been developed by
<a href="http://www.lpthe.jussieu.fr/~salam" target="_top">
Gavin Salam</a> and
<a href="http://www.theo.phys.ulg.ac.be/~soyez" target="_top">
Gregory Soyez</a><br>
Documentation generated on Mon May 6 2013 11:30:35 for SISCone by
<a href="http://www.doxygen.org/index.html">Doxygen</a> 1.8.3.1
</small>
</address>
</body>
</html>
|