1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.13"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>TTTT Analysis: /home/caleb/Sources/TTTT/analysis/TTTT_Analysis.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="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">TTTT Analysis
-  <span id="projectnumber">0.1</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.13 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- </script>
- <div id="main-nav"></div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div id="nav-path" class="navpath">
- <ul>
- <li class="navelem"><a class="el" href="dir_b8678fa8510b7ff9a55ffd4d18fd5e47.html">analysis</a></li> </ul>
- </div>
- </div><!-- top -->
- <div class="header">
- <div class="headertitle">
- <div class="title">TTTT_Analysis.cpp</div> </div>
- </div><!--header-->
- <div class="contents">
- <a href="TTTT__Analysis_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> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include <iostream></span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include <utility></span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include <numeric></span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#include <limits></span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#include "filval/filval.hpp"</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#include "filval_root/filval_root.hpp"</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#include "analysis/common/obj_types.hpp"</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor">#include "analysis/common/constants.hpp"</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#include "<a class="code" href="selection_8hpp.html">analysis/selection.hpp</a>"</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#include "<a class="code" href="MiniTreeDataSet_8hpp.html">MiniTreeDataSet.hpp</a>"</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#include <TSystem.h></span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">using namespace </span><a class="code" href="namespacefv.html">fv</a>;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">using namespace </span><a class="code" href="namespacefv_1_1root.html">fv::root</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keywordtype">void</span> enable_extra_branches(MiniTreeDataSet& mt){</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  mt.track_branch<<span class="keywordtype">int</span>>(<span class="stringliteral">"nBJetLoose40"</span>);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  mt.track_branch<<span class="keywordtype">int</span>>(<span class="stringliteral">"nBJetMedium40"</span>);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  mt.track_branch<<span class="keywordtype">int</span>>(<span class="stringliteral">"nBJetTight40"</span>);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  mt.track_branch< <span class="keywordtype">int</span> >(<span class="stringliteral">"run"</span> );</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  mt.track_branch< <span class="keywordtype">int</span> >(<span class="stringliteral">"lumi"</span>);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  mt.track_branch< <span class="keywordtype">int</span> >(<span class="stringliteral">"evt"</span> );</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  mt.track_branch<<span class="keywordtype">float</span>>(<span class="stringliteral">"xsec"</span>);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> }</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keywordtype">void</span> declare_values(MiniTreeDataSet& mt){</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="comment">// Define a couple selections to be used in the top-mass reconstruction.</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">auto</span>& b_mva_filter = GenFunction::register_function<bool(Particle)>(<span class="stringliteral">"b_mva_filter"</span>,</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  FUNC(([cut=B_JET_WP](<span class="keyword">const</span> Particle& j){</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span> j.jet.b_cmva > cut;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  })));</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">auto</span>& b_pdgid_filter = GenFunction::register_function<bool(Particle)>(<span class="stringliteral">"b_pdgid_filter"</span>,</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  FUNC(([](<span class="keyword">const</span> Particle& j){</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">return</span> j.genpart.pdgId == 5 || j.genpart.pdgId==-5;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  })));</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">auto</span>& w_mass_filter = GenFunction::register_function<bool(Particle, Particle)>(<span class="stringliteral">"w_mass_filter"</span>,</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  FUNC(([win_l=W_MASS-10, win_h=W_MASS+10](<span class="keyword">const</span> Particle& j1, <span class="keyword">const</span> Particle& j2){</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">float</span> inv_mass = (j1.v + j2.v).M();</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">return</span> inv_mass > win_l && inv_mass < win_h;</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>  <span class="keyword">auto</span>& dup_filter = GenFunction::register_function<bool(std::tuple<Particle,Particle>,Particle)>(<span class="stringliteral">"dup_filter"</span>,</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  FUNC(([](<span class="keyword">const</span> std::tuple<Particle,Particle>& w, <span class="keyword">const</span> Particle& b){</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordtype">int</span> j0 = b.idx;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordtype">int</span> j1 = std::get<0>(w).idx;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">int</span> j2 = std::get<1>(w).idx;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> (j0 != j1) && (j0 != j2) && (j1 != 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>  <span class="keyword">auto</span>& qg_id_filter = GenFunction::register_function<bool(Particle, Particle)>(<span class="stringliteral">"qg_id_filter"</span>,</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  FUNC(([](<span class="keyword">const</span> Particle& j1, <span class="keyword">const</span> Particle& j2){</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="comment">// require both particles be either quarks(not Top) or gluons</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordtype">int</span> id1 = abs(j1.genpart.pdgId);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">int</span> id2 = abs(j2.genpart.pdgId);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">return</span> ((id1 >=1 && id1 <= 5) || id1 == 21) &&</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  ((id2 >=1 && id2 <= 5) || id2 == 21);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  })));</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="comment">// Here is the calculation of the Top Reconstructed Mass from Particle</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keyword">auto</span> jets = lookup<std::vector<Particle>>(<span class="stringliteral">"jets"</span>);</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>  <span class="keyword">auto</span> b_jets = filter(b_mva_filter, jets, <span class="stringliteral">"reco_b_jets"</span>);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">auto</span> w_dijets = tup_filter<Particle,Particle>(w_mass_filter, combinations<Particle,2>(jets, <span class="stringliteral">"reco_dijets"</span>));</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">auto</span> top_cands = cart_product<std::tuple<Particle,Particle>, Particle>(w_dijets, b_jets);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  top_cands = tup_filter(dup_filter, top_cands);</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">auto</span>& t_mass = GenFunction::register_function<float(std::tuple<Particle,Particle>,Particle)>(<span class="stringliteral">"t_mass"</span>,</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  FUNC(([](<span class="keyword">const</span> std::tuple<Particle,Particle>& w, <span class="keyword">const</span> Particle& b){</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> (std::get<0>(w).v+std::get<1>(w).v+b.v).M();</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  })));</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  fv::map(t_mass, top_cands, <span class="stringliteral">"reco_top_mass"</span>);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">// Here is the calculation of the Top Reconstructed Mass from Generator-Level objects</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  jets = lookup<std::vector<Particle>>(<span class="stringliteral">"mc_jets"</span>);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  b_jets = filter(b_pdgid_filter, jets);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  w_dijets = tup_filter(qg_id_filter, combinations<Particle,2>(jets));</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  w_dijets = tup_filter(w_mass_filter, w_dijets);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  top_cands = cart_product<std::tuple<Particle,Particle>, Particle>(w_dijets, b_jets);</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  top_cands = tup_filter(dup_filter, top_cands);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  fv::map(t_mass, top_cands, <span class="stringliteral">"mc_top_mass"</span>);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="comment">// calculation of di-jet inv-mass spectrum</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">auto</span>& inv_mass2 = GenFunction::register_function<float(Particle, Particle)>(<span class="stringliteral">"inv_mass2"</span>,</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  FUNC(([] (<span class="keyword">const</span> Particle& j1, <span class="keyword">const</span> Particle& j2){</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  TLorentzVector sum = j1.v + j2.v;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">return</span> (<span class="keywordtype">float</span>)sum.M();</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  })));</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  fv::map(inv_mass2, lookup<std::vector<std::tuple<Particle,Particle>>>(<span class="stringliteral">"reco_dijets"</span>), <span class="stringliteral">"dijet_inv_mass"</span>);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  count<float>(GenFunction::register_function<bool(float)>(<span class="stringliteral">"bJet_Selection"</span>,</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  FUNC(([](<span class="keywordtype">float</span> x){</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">return</span> x>0;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }))), <span class="stringliteral">"Jet_btagCMVA"</span>, <span class="stringliteral">"b_jet_count"</span>);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">auto</span> &is_electron = GenFunction::register_function<bool(int)>(<span class="stringliteral">"is_electron"</span>,</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  FUNC(([](<span class="keywordtype">int</span> pdgId) {</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keywordflow">return</span> abs(pdgId) == 11;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  })));</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keyword">auto</span> &is_muon = GenFunction::register_function<bool(int)>(<span class="stringliteral">"is_muon"</span>,</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  FUNC(([](<span class="keywordtype">int</span> pdgId) {</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">return</span> abs(pdgId) == 13;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  })));</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keyword">auto</span> &is_lepton = GenFunction::register_function<bool(int)>(<span class="stringliteral">"is_lepton"</span>,</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  FUNC(([ie=&is_electron, im=&is_muon](<span class="keywordtype">int</span> pdgId) {</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">return</span> (*ie)(pdgId) || (*im)(pdgId);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  })));</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  count<int>(is_electron, <span class="stringliteral">"GenPart_pdgId"</span>, <span class="stringliteral">"genEle_count"</span>);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  count<int>(is_muon, <span class="stringliteral">"GenPart_pdgId"</span>, <span class="stringliteral">"genMu_count"</span>);</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  count<int>(is_lepton, <span class="stringliteral">"GenPart_pdgId"</span>, <span class="stringliteral">"genLep_count"</span>);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  count<int>(is_electron, <span class="stringliteral">"LepGood_pdgId"</span>, <span class="stringliteral">"recEle_count"</span>);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  count<int>(is_muon, <span class="stringliteral">"LepGood_pdgId"</span>, <span class="stringliteral">"recMu_count"</span>);</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  count<int>(is_lepton, <span class="stringliteral">"LepGood_pdgId"</span>, <span class="stringliteral">"recLep_count"</span>);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> </div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  fv::pair<int, int>(<span class="stringliteral">"genEle_count"</span>, <span class="stringliteral">"recEle_count"</span>, <span class="stringliteral">"genEle_count_v_recEle_count"</span>);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  fv::pair<int, int>(<span class="stringliteral">"genMu_count"</span>, <span class="stringliteral">"recMu_count"</span>, <span class="stringliteral">"genMu_count_v_recMu_count"</span>);</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  fv::pair<int, int>(<span class="stringliteral">"genLep_count"</span>, <span class="stringliteral">"recLep_count"</span>, <span class="stringliteral">"genLep_count_v_recLep_count"</span>);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="comment">/* auto& sum = GenFunction::register_function<float(std::vector<float>)>("sum", */</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="comment">/* FUNC(([](const std::vector<float>& v){ */</span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="comment">/* return std::accumulate(v.begin(), v.end(), 0); */</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="comment">/* }))); */</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="comment">/* auto sum_jet_pt = fv::apply(sum, lookup<std::vector<float>>("Jet_pt")); */</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  obs_filter(<span class="stringliteral">"trilepton"</span>, FUNC(([nLepGood=lookup<int>(<span class="stringliteral">"nLepGood"</span>)]()</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordflow">return</span> <span class="keyword">dynamic_cast<</span><a class="code" href="classfv_1_1Value.html">Value<int></a>*<span class="keyword">></span>(nLepGood)->get_value() == 3;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  })));</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  obs_filter(<span class="stringliteral">"os-dilepton"</span>, FUNC(([LepGood_charge=lookup<vector<int>>(<span class="stringliteral">"LepGood_charge"</span>)]()</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  {</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keyword">auto</span>& charges = LepGood_charge->get_value();</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordflow">return</span> charges.size()==2 && (charges[0] != charges[1]);</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  })));</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  obs_filter(<span class="stringliteral">"ss-dilepton"</span>, FUNC(([LepGood_charge=lookup<vector<int>>(<span class="stringliteral">"LepGood_charge"</span>)]()</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  {</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keyword">auto</span>& charges = LepGood_charge->get_value();</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">return</span> charges.size()==2 && (charges[0] == charges[1]);</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  })));</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> }</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="keywordtype">void</span> declare_containers(MiniTreeDataSet& mt){</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  mt.register_container<ContainerTH1<int>>(<span class="stringliteral">"lepton_count"</span>, <span class="stringliteral">"Lepton Multiplicity"</span>, lookup<int>(<span class="stringliteral">"nLepGood"</span>), 8, 0, 8);</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  mt.register_container<ContainerTH1Many<float>>(<span class="stringliteral">"Jet_pt_dist"</span>, <span class="stringliteral">"Jet P_T"</span>,</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  lookup<vector<float>>(<span class="stringliteral">"Jet_pt"</span>), 50, 0, 500,</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="stringliteral">"Jet P_T"</span>);</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  mt.register_container<ContainerTH1Many<float>>(<span class="stringliteral">"Jet_eta_dist"</span>, <span class="stringliteral">"Jet Eta"</span>,</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  lookup<vector<float>>(<span class="stringliteral">"Jet_eta"</span>), 50, -3, 3,</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="stringliteral">"Jet Eta"</span>);</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  mt.register_container<ContainerTH1Many<float>>(<span class="stringliteral">"Jet_phi_dist"</span>, <span class="stringliteral">"Jet Phi"</span>,</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  lookup<vector<float>>(<span class="stringliteral">"Jet_phi"</span>), 20, -PI, PI,</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="stringliteral">"Jet Phi"</span>);</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  mt.register_container<ContainerTH1Many<float>>(<span class="stringliteral">"Jet_mass_dist"</span>, <span class="stringliteral">"Jet Mass"</span>,</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  lookup<vector<float>>(<span class="stringliteral">"Jet_mass"</span>), 50, 0, 200,</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="stringliteral">"Jet Mass"</span>);</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>  mt.register_container<ContainerTH1Many<float>>(<span class="stringliteral">"dijet_inv_mass"</span>, <span class="stringliteral">"Di-Jet Inv. Mass - All"</span>,</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  lookup<vector<float>>(<span class="stringliteral">"dijet_inv_mass"</span>), 100, 0, 500,</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="stringliteral">"Di-Jet Mass"</span>);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  mt.register_container<ContainerTH1Many<float>>(<span class="stringliteral">"dijet_inv_mass_osdilepton"</span>, <span class="stringliteral">"Di-Jet Inv. Mass - OS Dilepton"</span>,</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  lookup<vector<float>>(<span class="stringliteral">"dijet_inv_mass"</span>), 100, 0, 500,</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="stringliteral">"Di-Jet Mass"</span>)->add_filter(lookup_obs_filter(<span class="stringliteral">"os-dilepton"</span>));</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  mt.register_container<ContainerTH1Many<float>>(<span class="stringliteral">"dijet_inv_mass_ssdilepton"</span>, <span class="stringliteral">"Di-Jet Inv. Mass - SS Dilepton"</span>,</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  lookup<vector<float>>(<span class="stringliteral">"dijet_inv_mass"</span>), 100, 0, 500,</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="stringliteral">"Di-Jet Mass"</span>)->add_filter(lookup_obs_filter(<span class="stringliteral">"ss-dilepton"</span>));</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  mt.register_container<ContainerTH1Many<float>>(<span class="stringliteral">"dijet_inv_mass_trilepton"</span>, <span class="stringliteral">"Di-Jet Inv. Mass - Trilepton"</span>,</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  lookup<vector<float>>(<span class="stringliteral">"dijet_inv_mass"</span>), 100, 0, 500,</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="stringliteral">"Di-Jet Mass"</span>)->add_filter(lookup_obs_filter(<span class="stringliteral">"trilepton"</span>));</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> </div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  mt.register_container<ContainerTH1Many<float>>(<span class="stringliteral">"reco_top_mass"</span>, <span class="stringliteral">"Reconstructed Top mass"</span>,</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  lookup<vector<float>>(<span class="stringliteral">"reco_top_mass"</span>), 100, 0, 500,</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="stringliteral">"Tri-jet invarient mass"</span>);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="comment">/* mt.register_container<ContainerTH1Many<float>>("reco_top_pt", "Reconstructed Top Pt", */</span></div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="comment">/* lookup<vector<float>>("reco_top_pt"), 100, 0, 500, */</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="comment">/* "Tri-jet Pt"); */</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  mt.register_container<ContainerTH1Many<float>>(<span class="stringliteral">"mc_top_mass"</span>, <span class="stringliteral">"Reconstructed MC Top mass"</span>,</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  lookup<vector<float>>(<span class="stringliteral">"mc_top_mass"</span>), 100, 0, 500,</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="stringliteral">"Tri-jet invarient mass"</span>);</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> </div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  mt.register_container<ContainerTH2<int>>(<span class="stringliteral">"nLepvsnJet"</span>, <span class="stringliteral">"Number of Leptons vs Number of Jets"</span>,</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  fv::pair<int, int>(<span class="stringliteral">"nLepGood"</span>, <span class="stringliteral">"nJet"</span>),</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  7, 0, 7, 20, 0, 20,</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="stringliteral">"Number of Leptons"</span>, <span class="stringliteral">"Number of Jets"</span>);</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  mt.register_container<ContainerTH2<int>>(<span class="stringliteral">"genEle_count_v_recEle_count"</span>, <span class="stringliteral">"Number of Generated Electrons v. Number of Reconstructed Electrons"</span>,</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  lookup<std::pair<int,int>>(<span class="stringliteral">"genEle_count_v_recEle_count"</span>),</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  10, 0, 10, 10, 0, 10,</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="stringliteral">"Generated Electrons"</span>,<span class="stringliteral">"Reconstructed Electrons"</span>);</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>  mt.register_container<ContainerTH2<int>>(<span class="stringliteral">"genMu_count_v_recMu_count"</span>, <span class="stringliteral">"Number of Generated Muons v. Number of Reconstructed Muons"</span>,</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  lookup<std::pair<int,int>>(<span class="stringliteral">"genMu_count_v_recMu_count"</span>),</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  10, 0, 10, 10, 0, 10,</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="stringliteral">"Generated Muons"</span>,<span class="stringliteral">"Reconstructed Muons"</span>);</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> </div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  mt.register_container<ContainerTH2<int>>(<span class="stringliteral">"genLep_count_v_recLep_count"</span>, <span class="stringliteral">"Number of Generated Leptons v. Number of Reconstructed Leptons (e & mu only)"</span>,</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  lookup<std::pair<int,int>>(<span class="stringliteral">"genLep_count_v_recLep_count"</span>),</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  10, 0, 10, 10, 0, 10,</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="stringliteral">"Generated Leptons"</span>,<span class="stringliteral">"Reconstructed Leptons"</span>);</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> </div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  mt.register_container<ContainerTH1<int>>(<span class="stringliteral">"b_jet_count"</span>, <span class="stringliteral">"B-Jet Multiplicity"</span>, lookup<int>(<span class="stringliteral">"b_jet_count"</span>), 10, 0, 10);</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  mt.register_container<ContainerTH1<int>>(<span class="stringliteral">"jet_count_os_dilepton"</span>, <span class="stringliteral">"Jet Multiplicity - OS Dilepton Events"</span>,</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  lookup<int>(<span class="stringliteral">"nJet"</span>), 14, 0, 14)->add_filter(lookup_obs_filter(<span class="stringliteral">"os-dilepton"</span>));</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  mt.register_container<ContainerTH1<int>>(<span class="stringliteral">"jet_count_ss_dilepton"</span>, <span class="stringliteral">"Jet Multiplicity - SS Dilepton Events"</span>,</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  lookup<int>(<span class="stringliteral">"nJet"</span>), 14, 0, 14)->add_filter(lookup_obs_filter(<span class="stringliteral">"ss-dilepton"</span>));</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  mt.register_container<ContainerTH1<int>>(<span class="stringliteral">"jet_count_trilepton"</span>, <span class="stringliteral">"Jet Multiplicity - Trilepton Events"</span>,</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  lookup<int>(<span class="stringliteral">"nJet"</span>), 14, 0, 14)->add_filter(lookup_obs_filter(<span class="stringliteral">"trilepton"</span>));</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> </div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  mt.register_container<<a class="code" href="classfv_1_1root_1_1CounterMany.html">CounterMany<int></a>>(<span class="stringliteral">"GenPart_pdgId_counter"</span>, lookup<vector<int>>(<span class="stringliteral">"GenPart_pdgId"</span>));</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> </div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  mt.register_container<Vector<std::vector< int >>>(<span class="stringliteral">"GenPart_pdgId"</span>, lookup<std::vector< int >>(<span class="stringliteral">"GenPart_pdgId"</span>));</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  mt.register_container<Vector<std::vector< int >>>(<span class="stringliteral">"GenPart_motherIndex"</span>, lookup<std::vector< int >>(<span class="stringliteral">"GenPart_motherIndex"</span>));</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  mt.register_container<Vector<std::vector< int >>>(<span class="stringliteral">"GenPart_motherId"</span>, lookup<std::vector< int >>(<span class="stringliteral">"GenPart_motherId"</span>));</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  mt.register_container<Vector<std::vector<float>>>(<span class="stringliteral">"GenPart_pt"</span>, lookup<std::vector<float>>(<span class="stringliteral">"GenPart_pt"</span>));</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  mt.register_container<Vector<std::vector<float>>>(<span class="stringliteral">"GenPart_eta"</span>, lookup<std::vector<float>>(<span class="stringliteral">"GenPart_eta"</span>));</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  mt.register_container<Vector<std::vector<float>>>(<span class="stringliteral">"GenPart_phi"</span>, lookup<std::vector<float>>(<span class="stringliteral">"GenPart_phi"</span>));</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  mt.register_container<Vector<std::vector<float>>>(<span class="stringliteral">"GenPart_mass"</span>, lookup<std::vector<float>>(<span class="stringliteral">"GenPart_mass"</span>));</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  mt.register_container<Vector<std::vector<float>>>(<span class="stringliteral">"GenPart_energy"</span>, lookup<std::vector<float>>(<span class="stringliteral">"GenPart_energy"</span>));</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  mt.register_container<Vector<std::vector< int >>>(<span class="stringliteral">"GenPart_status"</span>, lookup<std::vector< int >>(<span class="stringliteral">"GenPart_status"</span>));</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> </div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  mt.register_container<Vector<vector< int >>>(<span class="stringliteral">"LepGood_mcMatchPdgId"</span>, lookup<vector< int >>(<span class="stringliteral">"LepGood_mcMatchPdgId"</span>));</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span> </div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  mt.register_container<Vector< int >>(<span class="stringliteral">"run"</span>, lookup< int >(<span class="stringliteral">"run"</span>) );</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  mt.register_container<Vector< int >>(<span class="stringliteral">"lumi"</span>, lookup< int >(<span class="stringliteral">"lumi"</span>));</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  mt.register_container<Vector< int >>(<span class="stringliteral">"evt"</span>, lookup< int >(<span class="stringliteral">"evt"</span>) );</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  mt.register_container<Vector<float>>(<span class="stringliteral">"xsec"</span>, lookup<float>(<span class="stringliteral">"xsec"</span>));</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span> </div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  mt.register_container<Vector<std::vector< int >>>(<span class="stringliteral">"Jet_mcMatchFlav"</span>, lookup<std::vector< int >>(<span class="stringliteral">"Jet_mcMatchFlav"</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>  mt.register_container<Vector<std::vector<float>>>(<span class="stringliteral">"Jet_pt"</span>, lookup<std::vector<float>>(<span class="stringliteral">"Jet_pt"</span>));</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  mt.register_container<Vector<std::vector<float>>>(<span class="stringliteral">"Jet_eta"</span>, lookup<std::vector<float>>(<span class="stringliteral">"Jet_eta"</span>));</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  mt.register_container<Vector<std::vector<float>>>(<span class="stringliteral">"Jet_phi"</span>, lookup<std::vector<float>>(<span class="stringliteral">"Jet_phi"</span>));</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  mt.register_container<Vector<std::vector<float>>>(<span class="stringliteral">"Jet_mass"</span>, lookup<std::vector<float>>(<span class="stringliteral">"Jet_mass"</span>));</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> }</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </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> <span class="keywordtype">void</span> run_analysis(<span class="keyword">const</span> std::string& input_filename, <span class="keywordtype">bool</span> silent){</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  gSystem->Load(<span class="stringliteral">"libfilval.so"</span>);</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keyword">auto</span> replace_suffix = [](<span class="keyword">const</span> std::string& input, <span class="keyword">const</span> std::string& new_suffix){</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keywordflow">return</span> input.substr(0, input.find_last_of(<span class="stringliteral">"."</span>)) + new_suffix;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  };</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordtype">string</span> log_filename = replace_suffix(input_filename, <span class="stringliteral">"_result.log"</span>);</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  fv::util::Log::init_logger(log_filename, fv::util::LogPriority::kLogDebug);</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <span class="keywordtype">string</span> output_filename = replace_suffix(input_filename, <span class="stringliteral">"_result.root"</span>);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  MiniTreeDataSet mt(output_filename, input_filename);</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span> </div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  create_all_common_values(mt);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  enable_extra_branches(mt);</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  declare_values(mt);</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  declare_containers(mt);</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span> </div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  mt.process(silent);</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  mt.save_all();</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> </div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> * argv[])</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span> {</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  fv::util::ArgParser args(argc, argv);</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordflow">if</span>(!args.cmdOptionExists(<span class="stringliteral">"-f"</span>)) {</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  cout << <span class="stringliteral">"Usage: ./main (-s) -f input_minitree.root"</span> << endl;</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  }</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="keywordtype">bool</span> silent = args.cmdOptionExists(<span class="stringliteral">"-s"</span>);</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <span class="keywordtype">string</span> input_filename = args.getCmdOption(<span class="stringliteral">"-f"</span>);</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  run_analysis(input_filename, silent);</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span> }</div><div class="ttc" id="classfv_1_1root_1_1CounterMany_html"><div class="ttname"><a href="classfv_1_1root_1_1CounterMany.html">fv::root::CounterMany</a></div><div class="ttdoc">Same as Counter but accepts multiple values per fill. </div><div class="ttdef"><b>Definition:</b> <a href="root_2container_8hpp_source.html#l00299">container.hpp:299</a></div></div>
- <div class="ttc" id="MiniTreeDataSet_8hpp_html"><div class="ttname"><a href="MiniTreeDataSet_8hpp.html">MiniTreeDataSet.hpp</a></div></div>
- <div class="ttc" id="selection_8hpp_html"><div class="ttname"><a href="selection_8hpp.html">selection.hpp</a></div></div>
- <div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace. </div></div>
- <div class="ttc" id="namespacefv_html"><div class="ttname"><a href="namespacefv.html">fv</a></div><div class="ttdoc">The namespace containing all filval classes and functions. </div><div class="ttdef"><b>Definition:</b> <a href="api_8hpp_source.html#l00046">api.hpp:46</a></div></div>
- <div class="ttc" id="classfv_1_1Value_html"><div class="ttname"><a href="classfv_1_1Value.html">fv::Value< int ></a></div></div>
- <div class="ttc" id="namespacefv_1_1root_html"><div class="ttname"><a href="namespacefv_1_1root.html">fv::root</a></div><div class="ttdef"><b>Definition:</b> <a href="root_2api_8hpp_source.html#l00008">api.hpp:8</a></div></div>
- </div><!-- fragment --></div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.13
- </small></address>
- </body>
- </html>
|