This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DalitzFitApp_8cpp_source.html
145 lines (143 loc) · 70.6 KB
/
DalitzFitApp_8cpp_source.html
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
<!-- HTML header for doxygen 1.8.13-->
<!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>ComPWA: Examples/DalitzFit/DalitzFitApp.cpp 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</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" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="doxy-boot.js"></script>
</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">ComPWA
</div>
<div id="projectbrief">Common Partial-Wave-Analysis Framework</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>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('DalitzFitApp_8cpp_source.html','');});
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="headertitle">
<div class="title">DalitzFitApp.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="DalitzFitApp_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright (c) 2013, 2017 The ComPWA Team.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// This file is part of the ComPWA framework, check</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// https://github.com/ComPWA/ComPWA/license.txt for details.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <cmath></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <iostream></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <memory></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <sstream></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <boost/archive/xml_iarchive.hpp></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <boost/archive/xml_oarchive.hpp></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <boost/property_tree/ptree.hpp></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <boost/property_tree/xml_parser.hpp></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="FunctionTreeIntensity_8hpp.html">Core/FunctionTree/FunctionTreeIntensity.hpp</a>"</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="Logging_8hpp.html">Core/Logging.hpp</a>"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="Properties_8hpp.html">Core/Properties.hpp</a>"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="DataSet_8hpp.html">Data/DataSet.hpp</a>"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="Generate_8hpp.html">Data/Generate.hpp</a>"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="RootGenerator_8hpp.html">Data/Root/RootGenerator.hpp</a>"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="BuilderXML_8hpp.html">Physics/BuilderXML.hpp</a>"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="HelicityKinematics_8hpp.html">Physics/HelicityFormalism/HelicityKinematics.hpp</a>"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "<a class="code" href="FitFractions_8hpp.html">Tools/FitFractions.hpp</a>"</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="DalitzPlot_8hpp.html">Tools/Plotting/DalitzPlot.hpp</a>"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="MinLogLH_8hpp.html">Estimator/MinLogLH/MinLogLH.hpp</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="MinuitIF_8hpp.html">Optimizer/Minuit2/MinuitIF.hpp</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">using namespace </span><a class="code" href="namespaceComPWA.html">ComPWA</a>;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">using</span> <a class="code" href="structComPWA_1_1Optimizer_1_1Minuit2_1_1MinuitResult.html">ComPWA::Optimizer::Minuit2::MinuitResult</a>;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">using</span> <a class="code" href="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics.html">ComPWA::Physics::HelicityFormalism::HelicityKinematics</a>;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">// Enable serialization of MinuitResult. For some reason has to be outside</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">// any namespaces.</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// BOOST_CLASS_EXPORT(ComPWA::Optimizer::Minuit2::MinuitResult)</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">// We define an intensity model using a raw string literal. Currently, this is</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">// just a toy model without any physical meaning.</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">// (comments within the string are ignored!). This is convenient since we</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment">// do not have to configure the build system to copy input files somewhere.</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">// In practise you may want to use a normal XML input file instead.</span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="DalitzFitApp_8cpp.html#ac737ded33b9bc8900ab49c15140a13ce"> 49</a></span> std::string <a class="code" href="DalitzFitApp_8cpp.html#ac737ded33b9bc8900ab49c15140a13ce">AmplitudeModel</a> = R<span class="stringliteral">"####(</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="stringliteral"><Intensity Class="NormalizedIntensity"></span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="stringliteral"> <IntegrationStrategy Class="MCIntegrationStrategy"/></span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="stringliteral"> <Intensity Class="CoherentIntensity" Component="jpsiGammaPiPi"></span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="stringliteral"> <Amplitude Class="CoefficientAmplitude" Component="f2(1270)"></span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="stringliteral"> <Parameter Class='Double' Type="Magnitude" Name="Magnitude_f2"></span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="stringliteral"> <Value>1.0</Value></span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="stringliteral"> <Min>-1.0</Min></span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="stringliteral"> <Max>2.0</Max></span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="stringliteral"> <Fix>false</Fix></span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="stringliteral"> <Parameter Class='Double' Type="Phase" Name="Phase_f2"></span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="stringliteral"> <Value>0.0</Value></span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="stringliteral"> <Min>-100</Min></span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="stringliteral"> <Max>100</Max></span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="stringliteral"> <Fix>false</Fix></span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="stringliteral"> <Amplitude Class="NormalizedAmplitude"></span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="stringliteral"> <IntegrationStrategy Class="MCIntegrationStrategy"/></span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="stringliteral"> <Amplitude Class="HelicityDecay"></span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="stringliteral"> <DecayParticle Name="f2(1270)" Helicity="0"/></span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="stringliteral"> <RecoilSystem FinalState="0" /></span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="stringliteral"> <DecayProducts></span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="stringliteral"> <Particle Name="pi0" FinalState="1" Helicity="0"/></span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="stringliteral"> <Particle Name="pi0" FinalState="2" Helicity="0"/></span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="stringliteral"> </DecayProducts></span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="stringliteral"> </Amplitude></span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="stringliteral"> </Amplitude></span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="stringliteral"> </Amplitude></span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="stringliteral"> <Amplitude Class="CoefficientAmplitude" Component="myAmp"></span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="stringliteral"> <Parameter Class='Double' Type="Magnitude" Name="Magnitude_my"></span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="stringliteral"> <Value>1.0</Value></span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="stringliteral"> <Min>-1.0</Min></span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="stringliteral"> <Max>2.0</Max></span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="stringliteral"> <Fix>true</Fix></span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="stringliteral"> <Parameter Class='Double' Type="Phase" Name="Phase_my`"></span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="stringliteral"> <Value>0.0</Value></span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="stringliteral"> <Min>-100</Min></span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="stringliteral"> <Max>100</Max></span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="stringliteral"> <Fix>true</Fix></span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="stringliteral"> <Amplitude Class="NormalizedAmplitude"></span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="stringliteral"> <IntegrationStrategy Class="MCIntegrationStrategy"/></span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="stringliteral"> <Amplitude Class="HelicityDecay" ></span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="stringliteral"> <DecayParticle Name="myRes" Helicity="0"/></span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="stringliteral"> <RecoilSystem FinalState="0" /></span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="stringliteral"> <DecayProducts></span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="stringliteral"> <Particle Name="pi0" FinalState="1" Helicity="0"/></span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="stringliteral"> <Particle Name="pi0" FinalState="2" Helicity="0"/></span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="stringliteral"> </DecayProducts></span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="stringliteral"> </Amplitude></span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="stringliteral"> </Amplitude></span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="stringliteral"> </Amplitude></span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="stringliteral"> </Intensity></span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="stringliteral"></Intensity></span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="stringliteral">)####";</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="stringliteral"></span></div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="DalitzFitApp_8cpp.html#ad02b963cadd3be725147fb3bee0b82e7"> 107</a></span> <span class="stringliteral">std::string <a class="code" href="DalitzFitApp_8cpp.html#ad02b963cadd3be725147fb3bee0b82e7">MyParticleList</a> = R</span><span class="stringliteral">"####(</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="stringliteral"><ParticleList></span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="stringliteral"> <Particle Name="J/psi"></span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="stringliteral"> <Pid>443</Pid></span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="stringliteral"> <Parameter Type="Mass" Name="Mass_jpsi"></span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="stringliteral"> <Value>3.096900</Value></span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="stringliteral"> <Fix>true</Fix></span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="stringliteral"> <QuantumNumber Class="Spin" Type="Spin" Value="1" /></span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Charge" Value="0" /></span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Parity" Value="-1" /></span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Cparity" Value="-1" /></span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Gparity" Value="-1" /></span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="stringliteral"> <QuantumNumber Class="Spin" Type="IsoSpin" Value="0" Projection="0" /></span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="BaryonNumber" Value="0" /></span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Charm" Value="0" /></span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Strangeness" Value="0" /></span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="stringliteral"> <DecayInfo Type="relativisticBreitWigner"></span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="stringliteral"> <FormFactor Type="0" /></span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="stringliteral"> <Parameter Type="Width" Name="Width_jpsi"></span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="stringliteral"> <Value>9.29E-05</Value></span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="stringliteral"> <Fix>true</Fix></span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="stringliteral"> <Parameter Type="MesonRadius" Name="Radius_jpsi"></span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="stringliteral"> <Value>2.5</Value></span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="stringliteral"> <Fix>true</Fix></span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="stringliteral"> <Min>2.0</Min></span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="stringliteral"> <Max>3.0</Max></span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="stringliteral"> </DecayInfo></span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="stringliteral"> </Particle></span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="stringliteral"> <Particle Name="pi0"></span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="stringliteral"> <Pid>111</Pid></span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="stringliteral"> <Parameter Type="Mass" Name="Mass_neutralPion"></span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="stringliteral"> <Value>0.1349766</Value></span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="stringliteral"> <Error>0.000006</Error></span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="stringliteral"> <QuantumNumber Class="Spin" Type="Spin" Value="0" /></span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Charge" Value="0" /></span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Parity" Value="-1" /></span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Cparity" Value="1" /></span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Gparity" Value="-1" /></span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="stringliteral"> <QuantumNumber Class="Spin" Type="IsoSpin" Value="1" Projection="0" /></span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="BaryonNumber" Value="0" /></span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Charm" Value="0" /></span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Strangeness" Value="0" /></span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="stringliteral"> </Particle></span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="stringliteral"> <Particle Name="gamma"></span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="stringliteral"> <Pid>22</Pid></span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="stringliteral"> <Parameter Type="Mass" Name="Mass_gamma"></span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="stringliteral"> <Value>0.0</Value></span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="stringliteral"> <QuantumNumber Class="Spin" Type="Spin" Value="1" /></span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Charge" Value="0" /></span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Parity" Value="-1" /></span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Cparity" Value="-1" /></span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="stringliteral"> <QuantumNumber Class="Spin" Type="IsoSpin" Value="0" Projection="0" /></span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="BaryonNumber" Value="0" /></span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Charm" Value="0" /></span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Strangeness" Value="0" /></span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="stringliteral"> </Particle></span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="stringliteral"> <Particle Name="f2(1270)"></span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="stringliteral"> <Pid>225</Pid></span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="stringliteral"> <Parameter Class='Double' Type="Mass" Name="Mass_f2(1270)"></span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="stringliteral"> <Value>1.2755</Value></span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="stringliteral"> <Error>8.0E-04</Error></span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="stringliteral"> <Min>0.1</Min></span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="stringliteral"> <Max>2.0</Max></span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="stringliteral"> <Fix>false</Fix></span></div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="stringliteral"> <QuantumNumber Class="Spin" Type="Spin" Value="2"/></span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Charge" Value="0"/></span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Parity" Value="+1"/></span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Cparity" Value="+1"/></span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="stringliteral"> <DecayInfo Type="relativisticBreitWigner"></span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="stringliteral"> <FormFactor Type="0" /></span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="stringliteral"> <Parameter Class='Double' Type="Width" Name="Width_f2(1270)"></span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="stringliteral"> <Value>0.1867</Value></span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="stringliteral"> <Parameter Class='Double' Type="MesonRadius" Name="Radius_rho"></span></div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="stringliteral"> <Value>2.5</Value></span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="stringliteral"> <Fix>true</Fix></span></div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="stringliteral"> </DecayInfo></span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="stringliteral"> </Particle></span></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="stringliteral"> <Particle Name="myRes"></span></div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="stringliteral"> <Pid>999999</Pid></span></div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="stringliteral"> <Parameter Class='Double' Type="Mass" Name="Mass_myRes"></span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="stringliteral"> <Value>2.0</Value></span></div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="stringliteral"> <Error>8.0E-04</Error></span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="stringliteral"> <Min>1.1</Min></span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="stringliteral"> <Max>4.0</Max></span></div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="stringliteral"> <Fix>true</Fix></span></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="stringliteral"> <QuantumNumber Class="Spin" Type="Spin" Value="1"/></span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Charge" Value="0"/></span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Parity" Value="+1"/></span></div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="stringliteral"> <QuantumNumber Class="Int" Type="Cparity" Value="+1"/></span></div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="stringliteral"> <DecayInfo Type="relativisticBreitWigner"></span></div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="stringliteral"> <FormFactor Type="0" /></span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="stringliteral"> <Parameter Class='Double' Type="Width" Name="Width_myRes"></span></div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="stringliteral"> <Value>1.0</Value></span></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="stringliteral"> <Min>0.1</Min></span></div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="stringliteral"> <Max>1.5</Max></span></div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="stringliteral"> <Fix>false</Fix></span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="stringliteral"> <Parameter Class='Double' Type="MesonRadius" Name="Radius_myRes"></span></div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="stringliteral"> <Value>2.5</Value></span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="stringliteral"> <Fix>true</Fix></span></div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="stringliteral"> </Parameter></span></div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="stringliteral"> </DecayInfo></span></div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="stringliteral"> </Particle></span></div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="stringliteral"></ParticleList></span></div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="stringliteral">)####";</span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="stringliteral"></span></div><div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="DalitzFitApp_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627"> 233</a></span> <span class="stringliteral"></span><span class="keywordtype">int</span> <a class="code" href="DalitzFitApp_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv) {</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="comment">// initialize logging</span></div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <a class="code" href="classComPWA_1_1Logging.html">Logging</a> Log(<span class="stringliteral">"debug"</span>, <span class="stringliteral">"DalitzFit-log.txt"</span>);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="comment">// List with all particle information needed</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  std::stringstream ParticlesStream(<a class="code" href="DalitzFitApp_8cpp.html#ad02b963cadd3be725147fb3bee0b82e7">MyParticleList</a>);</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <a class="code" href="namespaceComPWA.html#ac32ebe66cb052341dfbabe607551b502">ParticleList</a> Particles = <a class="code" href="namespaceComPWA.html#a381a6fe8ccb17cc2463fba2ff388ba84">readParticles</a>(ParticlesStream);</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="comment">// 1) Create Kinematics object</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  std::vector<pid> InitialState = {443};</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  std::vector<pid> FinalState = {22, 111, 111};</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="code" href="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics.html">HelicityKinematics</a> <a class="code" href="classComPWA_1_1Kinematics.html">Kinematics</a>(Particles, InitialState, FinalState);</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> </div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="comment">// 2) Generate a large phase space sample</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <a class="code" href="classComPWA_1_1Data_1_1Root_1_1RootGenerator.html">ComPWA::Data::Root::RootGenerator</a> Generator(</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  Kinematics.<a class="code" href="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics.html#a522449b338fbefec3513484a49b0ecac">getParticleStateTransitionKinematicsInfo</a>());</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> </div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <a class="code" href="classComPWA_1_1Data_1_1Root_1_1RootUniformRealGenerator.html">ComPWA::Data::Root::RootUniformRealGenerator</a> RandomGenerator(173);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keyword">auto</span> PhspSample(<a class="code" href="namespaceComPWA_1_1Data.html#a9d272ef055dbad0b19af47ea17e0a33e">Data::generatePhsp</a>(100000, Generator, RandomGenerator));</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> </div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="comment">// 3) Create intensity from pre-defined model</span></div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="comment">// Read in model property_tree</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  std::stringstream ModelStream;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  ModelStream << <a class="code" href="DalitzFitApp_8cpp.html#ac737ded33b9bc8900ab49c15140a13ce">AmplitudeModel</a>;</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  boost::property_tree::ptree ModelTree;</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  boost::property_tree::xml_parser::read_xml(ModelStream, ModelTree);</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>  <span class="comment">// Construct intensity class from model string</span></div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <a class="code" href="classComPWA_1_1Physics_1_1IntensityBuilderXML.html">ComPWA::Physics::IntensityBuilderXML</a> Builder(</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  Particles, Kinematics, ModelTree.get_child(<span class="stringliteral">"Intensity"</span>), PhspSample);</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keyword">auto</span> <a class="code" href="classComPWA_1_1Function.html">Intensity</a> = Builder.createIntensity();</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="comment">// 4) Generate a data sample given intensity and kinematics</span></div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keyword">auto</span> DataSample = <a class="code" href="namespaceComPWA_1_1Data.html#a3679c5c3ffc5ade5378f6f650c9c7dd0">ComPWA::Data::generate</a>(1000, Kinematics, RandomGenerator,</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  Intensity, PhspSample);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keyword">auto</span> SampleDataSet = Kinematics.<a class="code" href="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics.html#a61473cd8a8e0c36dd2a36fbf121f12a1">convert</a>(DataSample);</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="comment">// 5) Fit the model to the data and print the result</span></div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keyword">auto</span> Estimator = <a class="code" href="namespaceComPWA_1_1Estimator.html#aa8a019eafb9432c1f25fc040496c63ad">ComPWA::Estimator::createMinLogLHFunctionTreeEstimator</a>(</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  Intensity, SampleDataSet);</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  LOG(DEBUG) << Estimator.first.print(25);</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> </div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keyword">auto</span> Optimizer = <a class="code" href="classComPWA_1_1Optimizer_1_1Minuit2_1_1MinuitIF.html">Optimizer::Minuit2::MinuitIF</a>();</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="comment">// STARTING MINIMIZATION</span></div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keyword">auto</span> <a class="code" href="structComPWA_1_1FitResult.html">FitResult</a> =</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  Optimizer.optimize(std::get<0>(Estimator), std::get<1>(Estimator));</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>  LOG(INFO) << <a class="code" href="structComPWA_1_1FitResult.html">FitResult</a>;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span> </div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="comment">// calculate fit fractions and errors</span></div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keyword">auto</span> Components = Builder.createIntensityComponents(</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  {{<span class="stringliteral">"f2(1270)"</span>}, {<span class="stringliteral">"myAmp"</span>}, {<span class="stringliteral">"jpsiGammaPiPi"</span>}});</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keyword">auto</span> MyFractions = {std::make_pair(Components[0], Components[2]),</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  std::make_pair(Components[1], Components[2])};</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <a class="code" href="classComPWA_1_1Tools_1_1FitFractions.html">ComPWA::Tools::FitFractions</a> FitFraction;</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keyword">auto</span> <a class="code" href="namespaceComPWA_1_1Tools.html#a13902a3c2ec76e0900247f3568b79e37">FitFractionList</a> =</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  FitFraction.<a class="code" href="classComPWA_1_1Tools_1_1FitFractions.html#afde5aae6179ad35c4b4082a9880b1a61">calculateFitFractionsWithCovarianceErrorPropagation</a>(</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  MyFractions, Kinematics.<a class="code" href="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics.html#a61473cd8a8e0c36dd2a36fbf121f12a1">convert</a>(PhspSample), <a class="code" href="structComPWA_1_1FitResult.html">FitResult</a>);</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  LOG(INFO) << <a class="code" href="namespaceComPWA_1_1Tools.html#a13902a3c2ec76e0900247f3568b79e37">FitFractionList</a>;</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span> </div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="comment">// 5.1) Save the fit result</span></div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  std::ofstream FileStream(<span class="stringliteral">"DalitzFit-fitResult.xml"</span>);</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  boost::archive::xml_oarchive Archive(FileStream);</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  Archive << BOOST_SERIALIZATION_NVP(<a class="code" href="structComPWA_1_1FitResult.html">FitResult</a>);</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span> </div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="comment">// 6) Plot data sample and intensity</span></div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="comment">//---------------------------------------------------</span></div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <a class="code" href="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot.html">ComPWA::Tools::Plotting::DalitzPlot</a> Plot(Kinematics, <span class="stringliteral">"DalitzFit"</span>, 100);</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  Plot.<a class="code" href="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot.html#a4a19f9369f356bb867e7041d80b9818c">fill</a>(DataSample, <span class="keyword">true</span>, <span class="stringliteral">"data"</span>, <span class="stringliteral">"Data sample"</span>, kBlack);</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  Plot.<a class="code" href="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot.html#a4a19f9369f356bb867e7041d80b9818c">fill</a>(PhspSample, <span class="keyword">false</span>, <span class="stringliteral">"phsp"</span>, <span class="stringliteral">"Phsp sample"</span>, kGreen);</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  Plot.<a class="code" href="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot.html#a4a19f9369f356bb867e7041d80b9818c">fill</a>(PhspSample, Intensity, <span class="keyword">false</span>, <span class="stringliteral">"fit"</span>, <span class="stringliteral">"jpsiGammaPiPi model"</span>, kBlue);</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  Plot.<a class="code" href="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot.html#ae9af48a28d3568545b9b88482357cc60">plot</a>();</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  LOG(INFO) << <span class="stringliteral">"Done"</span>;</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span> </div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> }</div><div class="ttc" id="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics_html_a61473cd8a8e0c36dd2a36fbf121f12a1"><div class="ttname"><a href="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics.html#a61473cd8a8e0c36dd2a36fbf121f12a1">ComPWA::Physics::HelicityFormalism::HelicityKinematics::convert</a></div><div class="ttdeci">ComPWA::Data::DataSet convert(const EventCollection &Events) const final</div><div class="ttdoc">Creates a DataSet from Events. </div><div class="ttdef"><b>Definition:</b> <a href="HelicityKinematics_8cpp_source.html#l00171">HelicityKinematics.cpp:171</a></div></div>
<div class="ttc" id="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot_html_a4a19f9369f356bb867e7041d80b9818c"><div class="ttname"><a href="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot.html#a4a19f9369f356bb867e7041d80b9818c">ComPWA::Tools::Plotting::DalitzPlot::fill</a></div><div class="ttdeci">void fill(const ComPWA::EventCollection &Data, bool Normalize=false, const std::string &Name="", const std::string &Title="", Color_t Color=kBlack)</div><div class="ttdef"><b>Definition:</b> <a href="DalitzPlot_8cpp_source.html#l00053">DalitzPlot.cpp:53</a></div></div>
<div class="ttc" id="namespaceComPWA_1_1Data_html_a9d272ef055dbad0b19af47ea17e0a33e"><div class="ttname"><a href="namespaceComPWA_1_1Data.html#a9d272ef055dbad0b19af47ea17e0a33e">ComPWA::Data::generatePhsp</a></div><div class="ttdeci">EventCollection generatePhsp(unsigned int NumberOfEvents, const ComPWA::PhaseSpaceEventGenerator &Generator, ComPWA::UniformRealNumberGenerator &RandomGenerator)</div><div class="ttdef"><b>Definition:</b> <a href="Generate_8cpp_source.html#l00285">Generate.cpp:285</a></div></div>
<div class="ttc" id="DalitzFitApp_8cpp_html_ad02b963cadd3be725147fb3bee0b82e7"><div class="ttname"><a href="DalitzFitApp_8cpp.html#ad02b963cadd3be725147fb3bee0b82e7">MyParticleList</a></div><div class="ttdeci">std::string MyParticleList</div><div class="ttdef"><b>Definition:</b> <a href="DalitzFitApp_8cpp_source.html#l00107">DalitzFitApp.cpp:107</a></div></div>
<div class="ttc" id="MinuitIF_8hpp_html"><div class="ttname"><a href="MinuitIF_8hpp.html">MinuitIF.hpp</a></div></div>
<div class="ttc" id="FitFractions_8hpp_html"><div class="ttname"><a href="FitFractions_8hpp.html">FitFractions.hpp</a></div></div>
<div class="ttc" id="DalitzFitApp_8cpp_html_ac737ded33b9bc8900ab49c15140a13ce"><div class="ttname"><a href="DalitzFitApp_8cpp.html#ac737ded33b9bc8900ab49c15140a13ce">AmplitudeModel</a></div><div class="ttdeci">std::string AmplitudeModel</div><div class="ttdef"><b>Definition:</b> <a href="DalitzFitApp_8cpp_source.html#l00049">DalitzFitApp.cpp:49</a></div></div>
<div class="ttc" id="classComPWA_1_1Optimizer_1_1Minuit2_1_1MinuitIF_html"><div class="ttname"><a href="classComPWA_1_1Optimizer_1_1Minuit2_1_1MinuitIF.html">ComPWA::Optimizer::Minuit2::MinuitIF</a></div><div class="ttdoc">Wrapper of the Minuit2 Optimizer library. </div><div class="ttdef"><b>Definition:</b> <a href="MinuitIF_8hpp_source.html#l00023">MinuitIF.hpp:23</a></div></div>
<div class="ttc" id="namespaceComPWA_html"><div class="ttname"><a href="namespaceComPWA.html">ComPWA</a></div><div class="ttdef"><b>Definition:</b> <a href="Efficiency_8cpp_source.html#l00007">Efficiency.cpp:7</a></div></div>
<div class="ttc" id="HelicityKinematics_8hpp_html"><div class="ttname"><a href="HelicityKinematics_8hpp.html">HelicityKinematics.hpp</a></div></div>
<div class="ttc" id="Properties_8hpp_html"><div class="ttname"><a href="Properties_8hpp.html">Properties.hpp</a></div></div>
<div class="ttc" id="RootGenerator_8hpp_html"><div class="ttname"><a href="RootGenerator_8hpp.html">RootGenerator.hpp</a></div></div>
<div class="ttc" id="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot_html_ae9af48a28d3568545b9b88482357cc60"><div class="ttname"><a href="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot.html#ae9af48a28d3568545b9b88482357cc60">ComPWA::Tools::Plotting::DalitzPlot::plot</a></div><div class="ttdeci">void plot()</div><div class="ttdef"><b>Definition:</b> <a href="DalitzPlot_8cpp_source.html#l00085">DalitzPlot.cpp:85</a></div></div>
<div class="ttc" id="namespaceComPWA_html_a381a6fe8ccb17cc2463fba2ff388ba84"><div class="ttname"><a href="namespaceComPWA.html#a381a6fe8ccb17cc2463fba2ff388ba84">ComPWA::readParticles</a></div><div class="ttdeci">ParticleList readParticles(std::stringstream &Stream)</div><div class="ttdoc">Read list of particles from a stringstream For some reason the boost xml parser needs a non-const ref...</div><div class="ttdef"><b>Definition:</b> <a href="Properties_8cpp_source.html#l00151">Properties.cpp:151</a></div></div>
<div class="ttc" id="BuilderXML_8hpp_html"><div class="ttname"><a href="BuilderXML_8hpp.html">BuilderXML.hpp</a></div></div>
<div class="ttc" id="classComPWA_1_1Tools_1_1FitFractions_html"><div class="ttname"><a href="classComPWA_1_1Tools_1_1FitFractions.html">ComPWA::Tools::FitFractions</a></div><div class="ttdef"><b>Definition:</b> <a href="FitFractions_8hpp_source.html#l00035">FitFractions.hpp:35</a></div></div>
<div class="ttc" id="Logging_8hpp_html"><div class="ttname"><a href="Logging_8hpp.html">Logging.hpp</a></div></div>
<div class="ttc" id="DalitzFitApp_8cpp_html_a3c04138a5bfe5d72780bb7e82a18e627"><div class="ttname"><a href="DalitzFitApp_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a></div><div class="ttdeci">int main(int argc, char **argv)</div><div class="ttdoc">Simple Dalitz plot fit of the channel J/psi -> gamma pi0 pi0. </div><div class="ttdef"><b>Definition:</b> <a href="DalitzFitApp_8cpp_source.html#l00233">DalitzFitApp.cpp:233</a></div></div>
<div class="ttc" id="Generate_8hpp_html"><div class="ttname"><a href="Generate_8hpp.html">Generate.hpp</a></div><div class="ttdoc">Some useful functions for Monte-Carlo event generation. </div></div>
<div class="ttc" id="structComPWA_1_1Optimizer_1_1Minuit2_1_1MinuitResult_html"><div class="ttname"><a href="structComPWA_1_1Optimizer_1_1Minuit2_1_1MinuitResult.html">ComPWA::Optimizer::Minuit2::MinuitResult</a></div><div class="ttdef"><b>Definition:</b> <a href="MinuitResult_8hpp_source.html#l00022">MinuitResult.hpp:22</a></div></div>
<div class="ttc" id="DalitzPlot_8hpp_html"><div class="ttname"><a href="DalitzPlot_8hpp.html">DalitzPlot.hpp</a></div></div>
<div class="ttc" id="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics_html"><div class="ttname"><a href="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics.html">ComPWA::Physics::HelicityFormalism::HelicityKinematics</a></div><div class="ttdoc">Implementation of the ComPWA::Kinematics interface for amplitude models using the helicity formalism...</div><div class="ttdef"><b>Definition:</b> <a href="HelicityKinematics_8hpp_source.html#l00044">HelicityKinematics.hpp:44</a></div></div>
<div class="ttc" id="namespaceComPWA_1_1Tools_html_a13902a3c2ec76e0900247f3568b79e37"><div class="ttname"><a href="namespaceComPWA_1_1Tools.html#a13902a3c2ec76e0900247f3568b79e37">ComPWA::Tools::FitFractionList</a></div><div class="ttdeci">std::vector< FitFraction > FitFractionList</div><div class="ttdef"><b>Definition:</b> <a href="FitFractions_8hpp_source.html#l00029">FitFractions.hpp:29</a></div></div>
<div class="ttc" id="namespaceComPWA_html_ac32ebe66cb052341dfbabe607551b502"><div class="ttname"><a href="namespaceComPWA.html#ac32ebe66cb052341dfbabe607551b502">ComPWA::ParticleList</a></div><div class="ttdeci">std::set< ParticleProperties > ParticleList</div><div class="ttdef"><b>Definition:</b> <a href="Properties_8hpp_source.html#l00084">Properties.hpp:84</a></div></div>
<div class="ttc" id="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot_html"><div class="ttname"><a href="classComPWA_1_1Tools_1_1Plotting_1_1DalitzPlot.html">ComPWA::Tools::Plotting::DalitzPlot</a></div><div class="ttdef"><b>Definition:</b> <a href="DalitzPlot_8hpp_source.html#l00087">DalitzPlot.hpp:87</a></div></div>
<div class="ttc" id="namespaceComPWA_1_1Estimator_html_aa8a019eafb9432c1f25fc040496c63ad"><div class="ttname"><a href="namespaceComPWA_1_1Estimator.html#aa8a019eafb9432c1f25fc040496c63ad">ComPWA::Estimator::createMinLogLHFunctionTreeEstimator</a></div><div class="ttdeci">std::pair< ComPWA::FunctionTree::FunctionTreeEstimator, FitParameterList > createMinLogLHFunctionTreeEstimator(ComPWA::FunctionTree::FunctionTreeIntensity &Intensity, const ComPWA::Data::DataSet &DataSample)</div><div class="ttdef"><b>Definition:</b> <a href="MinLogLH_8cpp_source.html#l00064">MinLogLH.cpp:64</a></div></div>
<div class="ttc" id="classComPWA_1_1Tools_1_1FitFractions_html_afde5aae6179ad35c4b4082a9880b1a61"><div class="ttname"><a href="classComPWA_1_1Tools_1_1FitFractions.html#afde5aae6179ad35c4b4082a9880b1a61">ComPWA::Tools::FitFractions::calculateFitFractionsWithCovarianceErrorPropagation</a></div><div class="ttdeci">FitFractionList calculateFitFractionsWithCovarianceErrorPropagation(const std::vector< std::pair< IntensityComponent, IntensityComponent >> &Components, const ComPWA::Data::DataSet &PhspSample, const ComPWA::FitResult &Result)</div><div class="ttdoc">Calculates the fit fractions with errors via error propagation from the covariance matrix...</div><div class="ttdef"><b>Definition:</b> <a href="FitFractions_8cpp_source.html#l00030">FitFractions.cpp:30</a></div></div>
<div class="ttc" id="classComPWA_1_1Data_1_1Root_1_1RootUniformRealGenerator_html"><div class="ttname"><a href="classComPWA_1_1Data_1_1Root_1_1RootUniformRealGenerator.html">ComPWA::Data::Root::RootUniformRealGenerator</a></div><div class="ttdef"><b>Definition:</b> <a href="RootGenerator_8hpp_source.html#l00028">RootGenerator.hpp:28</a></div></div>
<div class="ttc" id="DataSet_8hpp_html"><div class="ttname"><a href="DataSet_8hpp.html">DataSet.hpp</a></div></div>
<div class="ttc" id="structComPWA_1_1FitResult_html"><div class="ttname"><a href="structComPWA_1_1FitResult.html">ComPWA::FitResult</a></div><div class="ttdoc">Data structure which resembles a general fit result. </div><div class="ttdef"><b>Definition:</b> <a href="FitResult_8hpp_source.html#l00019">FitResult.hpp:19</a></div></div>
<div class="ttc" id="classComPWA_1_1Physics_1_1IntensityBuilderXML_html"><div class="ttname"><a href="classComPWA_1_1Physics_1_1IntensityBuilderXML.html">ComPWA::Physics::IntensityBuilderXML</a></div><div class="ttdef"><b>Definition:</b> <a href="BuilderXML_8hpp_source.html#l00036">BuilderXML.hpp:36</a></div></div>
<div class="ttc" id="FunctionTreeIntensity_8hpp_html"><div class="ttname"><a href="FunctionTreeIntensity_8hpp.html">FunctionTreeIntensity.hpp</a></div></div>
<div class="ttc" id="classComPWA_1_1Kinematics_html"><div class="ttname"><a href="classComPWA_1_1Kinematics.html">ComPWA::Kinematics</a></div><div class="ttdoc">The Kinematics interface defines the conversion of Events to a DataSet. </div><div class="ttdef"><b>Definition:</b> <a href="Kinematics_8hpp_source.html#l00019">Kinematics.hpp:19</a></div></div>
<div class="ttc" id="namespaceComPWA_1_1Data_html_a3679c5c3ffc5ade5378f6f650c9c7dd0"><div class="ttname"><a href="namespaceComPWA_1_1Data.html#a3679c5c3ffc5ade5378f6f650c9c7dd0">ComPWA::Data::generate</a></div><div class="ttdeci">EventCollection generate(unsigned int NumberOfEvents, const ComPWA::Kinematics &Kinematics, const ComPWA::PhaseSpaceEventGenerator &Generator, ComPWA::Intensity &Intensity, ComPWA::UniformRealNumberGenerator &RandomGenerator)</div><div class="ttdef"><b>Definition:</b> <a href="Generate_8cpp_source.html#l00095">Generate.cpp:95</a></div></div>
<div class="ttc" id="classComPWA_1_1Data_1_1Root_1_1RootGenerator_html"><div class="ttname"><a href="classComPWA_1_1Data_1_1Root_1_1RootGenerator.html">ComPWA::Data::Root::RootGenerator</a></div><div class="ttdef"><b>Definition:</b> <a href="RootGenerator_8hpp_source.html#l00040">RootGenerator.hpp:40</a></div></div>
<div class="ttc" id="classComPWA_1_1Logging_html"><div class="ttname"><a href="classComPWA_1_1Logging.html">ComPWA::Logging</a></div><div class="ttdoc">Logging class provides an interface for logging all over the framework. </div><div class="ttdef"><b>Definition:</b> <a href="Logging_8hpp_source.html#l00019">Logging.hpp:19</a></div></div>
<div class="ttc" id="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics_html_a522449b338fbefec3513484a49b0ecac"><div class="ttname"><a href="classComPWA_1_1Physics_1_1HelicityFormalism_1_1HelicityKinematics.html#a522449b338fbefec3513484a49b0ecac">ComPWA::Physics::HelicityFormalism::HelicityKinematics::getParticleStateTransitionKinematicsInfo</a></div><div class="ttdeci">const ParticleStateTransitionKinematicsInfo & getParticleStateTransitionKinematicsInfo() const</div><div class="ttdef"><b>Definition:</b> <a href="HelicityKinematics_8hpp_source.html#l00131">HelicityKinematics.hpp:131</a></div></div>
<div class="ttc" id="MinLogLH_8hpp_html"><div class="ttname"><a href="MinLogLH_8hpp.html">MinLogLH.hpp</a></div></div>
<div class="ttc" id="classComPWA_1_1Function_html"><div class="ttname"><a href="classComPWA_1_1Function.html">ComPWA::Function</a></div><div class="ttdoc">Interface template for a general Function of the form OutputType Function(InputTypes) The concept clo...</div><div class="ttdef"><b>Definition:</b> <a href="Function_8hpp_source.html#l00024">Function.hpp:24</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_03680f297d755c096b0a1ead13ee12b7.html">Examples</a></li><li class="navelem"><a class="el" href="dir_f5d0c046a3677bc908b9b94b66d5db7d.html">DalitzFit</a></li><li class="navelem"><a class="el" href="DalitzFitApp_8cpp.html">DalitzFitApp.cpp</a></li>
<li class="footer">Generated on Mon Jun 22 2020 13:03:33 for ComPWA by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>