Files
musrfit/addRun_8cpp.html
Gitea Actions 8a8eac55b7 Deploy site
2025-12-27 12:57:44 +00:00

459 lines
29 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>musrfit: /workspace/LMU/musrfit/src/addRun.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.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 id="projectrow">
<td id="projectalign">
<div id="projectname">musrfit<span id="projectnumber">&#160;1.9.9</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',false,false,'search.php','Search',true);
});
/* @license-end */
</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">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('addRun_8cpp.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">addRun.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;cstdio&gt;</code><br />
<code>#include &lt;cstdlib&gt;</code><br />
<code>#include &lt;cstring&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;fstream&gt;</code><br />
<code>#include &lt;memory&gt;</code><br />
<code>#include &lt;boost/algorithm/string.hpp&gt;</code><br />
<code>#include &lt;boost/filesystem.hpp&gt;</code><br />
<code>#include &lt;TString.h&gt;</code><br />
<code>#include &quot;<a class="el" href="PMusr_8h_source.html">PMusr.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="PStartupHandler_8h_source.html">PStartupHandler.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="PRunDataHandler_8h_source.html">PRunDataHandler.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="PFindRun_8h_source.html">PFindRun.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for addRun.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="addRun_8cpp__incl.png" border="0" usemap="#a_2workspace_2LMU_2musrfit_2src_2addRun_8cpp" alt=""/></div>
<map name="a_2workspace_2LMU_2musrfit_2src_2addRun_8cpp" id="a_2workspace_2LMU_2musrfit_2src_2addRun_8cpp">
<area shape="rect" title=" " alt="" coords="528,5,698,50"/>
<area shape="rect" title=" " alt="" coords="163,98,220,126"/>
<area shape="poly" title=" " alt="" coords="528,44,395,67,236,100,235,95,394,62,527,39"/>
<area shape="rect" title=" " alt="" coords="245,98,306,126"/>
<area shape="poly" title=" " alt="" coords="528,50,322,100,321,95,527,45"/>
<area shape="rect" title=" " alt="" coords="330,98,392,126"/>
<area shape="poly" title=" " alt="" coords="547,53,408,98,406,93,545,48"/>
<area shape="rect" title=" " alt="" coords="821,325,896,353"/>
<area shape="poly" title=" " alt="" coords="699,35,731,44,763,56,792,73,818,96,835,121,848,149,863,208,866,265,864,310,859,310,861,265,857,209,843,151,830,124,814,100,789,78,761,61,729,49,698,41"/>
<area shape="rect" title=" " alt="" coords="1031,98,1099,126"/>
<area shape="poly" title=" " alt="" coords="699,40,846,64,1012,95,1016,96,1015,101,1011,101,845,69,698,45"/>
<area shape="rect" title=" " alt="" coords="1467,249,1538,277"/>
<area shape="poly" title=" " alt="" coords="698,48,882,95,1452,246,1451,251,880,101,697,53"/>
<area shape="rect" title=" " alt="" coords="1123,98,1311,126"/>
<area shape="poly" title=" " alt="" coords="699,38,1108,93,1107,98,698,43"/>
<area shape="rect" title=" " alt="" coords="1336,98,1485,126"/>
<area shape="poly" title=" " alt="" coords="699,33,971,58,1321,95,1320,100,971,63,698,39"/>
<area shape="rect" title=" " alt="" coords="703,476,779,504"/>
<area shape="poly" title=" " alt="" coords="578,53,547,77,515,107,492,145,485,165,482,186,482,264,488,303,504,337,528,368,557,395,590,419,625,439,690,468,687,473,622,444,587,423,554,399,524,372,499,340,483,304,477,265,477,186,480,164,487,142,511,104,543,73,575,49"/>
<area shape="rect" href="PMusr_8h.html" title=" " alt="" coords="620,401,689,428"/>
<area shape="poly" title=" " alt="" coords="595,52,575,78,555,110,539,147,533,186,533,264,535,284,542,303,563,338,592,367,621,390,618,394,588,371,559,341,537,306,530,286,528,265,528,186,534,146,550,108,571,75,591,49"/>
<area shape="rect" href="PStartupHandler_8h.html" title=" " alt="" coords="292,325,425,353"/>
<area shape="poly" title=" " alt="" coords="539,53,498,73,463,100,442,124,424,151,396,210,377,266,366,311,361,309,372,264,391,208,420,149,438,121,459,96,496,68,536,48"/>
<area shape="rect" href="PRunDataHandler_8h.html" title=" " alt="" coords="663,98,803,126"/>
<area shape="poly" title=" " alt="" coords="646,48,703,87,700,91,643,53"/>
<area shape="rect" href="PFindRun_8h.html" title=" " alt="" coords="568,174,658,201"/>
<area shape="poly" title=" " alt="" coords="616,50,616,158,610,158,610,50"/>
<area shape="poly" title=" " alt="" coords="672,427,716,464,713,468,668,431"/>
<area shape="rect" title=" " alt="" coords="996,476,1054,504"/>
<area shape="poly" title=" " alt="" coords="690,420,981,477,980,483,689,425"/>
<area shape="rect" title=" " alt="" coords="630,476,678,504"/>
<area shape="poly" title=" " alt="" coords="657,429,657,461,652,461,652,429"/>
<area shape="rect" title=" " alt="" coords="542,476,606,504"/>
<area shape="poly" title=" " alt="" coords="642,431,602,468,598,464,638,427"/>
<area shape="poly" title=" " alt="" coords="374,351,419,389,448,409,479,426,534,446,580,456,627,463,688,473,687,479,627,468,579,461,532,452,477,431,445,413,415,393,370,355"/>
<area shape="poly" title=" " alt="" coords="412,351,605,398,604,403,411,356"/>
<area shape="rect" title=" " alt="" coords="5,401,85,428"/>
<area shape="poly" title=" " alt="" coords="301,356,100,402,99,397,300,351"/>
<area shape="rect" title=" " alt="" coords="108,401,198,428"/>
<area shape="poly" title=" " alt="" coords="323,356,205,398,203,392,321,351"/>
<area shape="rect" title=" " alt="" coords="222,401,284,428"/>
<area shape="poly" title=" " alt="" coords="341,355,285,394,282,390,338,351"/>
<area shape="rect" title=" " alt="" coords="308,401,409,428"/>
<area shape="poly" title=" " alt="" coords="361,353,361,385,356,385,356,353"/>
<area shape="poly" title=" " alt="" coords="736,126,743,461,738,461,731,126"/>
<area shape="poly" title=" " alt="" coords="731,127,694,250,663,386,657,385,689,249,726,125"/>
<area shape="rect" href="PMsrHandler_8h.html" title=" " alt="" coords="923,174,1034,201"/>
<area shape="poly" title=" " alt="" coords="778,124,921,166,919,171,776,129"/>
<area shape="poly" title=" " alt="" coords="1035,196,1053,199,1164,212,1251,220,1340,229,1452,247,1451,252,1339,234,1251,225,1163,217,1053,204,1034,201"/>
<area shape="poly" title=" " alt="" coords="957,204,885,252,846,287,811,327,790,361,773,397,751,462,746,460,768,395,786,358,807,323,842,283,882,248,954,200"/>
<area shape="poly" title=" " alt="" coords="923,201,859,220,825,234,795,252,755,283,721,320,672,389,667,386,717,317,752,280,791,247,823,229,857,215,921,196"/>
<area shape="rect" title=" " alt="" coords="1174,249,1244,277"/>
<area shape="poly" title=" " alt="" coords="1020,199,1160,244,1158,249,1019,204"/>
<area shape="rect" title=" " alt="" coords="1268,249,1324,277"/>
<area shape="poly" title=" " alt="" coords="1035,197,1133,217,1253,246,1251,251,1132,223,1034,202"/>
<area shape="rect" title=" " alt="" coords="1348,249,1443,277"/>
<area shape="poly" title=" " alt="" coords="1035,196,1333,246,1332,252,1034,201"/>
<area shape="rect" href="PFunctionHandler_8h.html" title=" " alt="" coords="907,249,1050,277"/>
<area shape="poly" title=" " alt="" coords="981,202,981,234,976,234,976,202"/>
<area shape="rect" href="PFunctionGrammar_8h.html" title=" " alt="" coords="1265,401,1417,428"/>
<area shape="poly" title=" " alt="" coords="1004,200,1092,247,1159,283,1224,323,1315,389,1312,393,1221,327,1156,288,1089,252,1002,204"/>
<area shape="rect" href="PFunction_8h.html" title=" " alt="" coords="1072,325,1165,353"/>
<area shape="poly" title=" " alt="" coords="1002,200,1032,220,1063,247,1088,279,1107,310,1102,313,1083,282,1059,251,1029,225,999,204"/>
<area shape="poly" title=" " alt="" coords="958,280,894,319,891,315,955,275"/>
<area shape="poly" title=" " alt="" coords="978,278,966,314,943,354,906,392,864,425,785,471,782,467,861,420,903,388,939,351,961,312,973,276"/>
<area shape="poly" title=" " alt="" coords="974,279,949,317,931,338,909,355,858,380,803,397,751,408,705,413,704,408,750,403,802,392,856,375,906,350,927,334,945,314,969,276"/>
<area shape="poly" title=" " alt="" coords="987,277,1005,324,1019,398,1026,461,1021,461,1014,399,1000,326,982,279"/>
<area shape="poly" title=" " alt="" coords="1032,275,1102,295,1178,323,1306,390,1304,395,1176,327,1101,300,1031,280"/>
<area shape="poly" title=" " alt="" coords="1005,275,1081,315,1079,320,1002,280"/>
<area shape="rect" title=" " alt="" coords="1101,476,1232,504"/>
<area shape="poly" title=" " alt="" coords="1311,431,1212,473,1210,468,1309,426"/>
<area shape="rect" title=" " alt="" coords="1450,476,1600,504"/>
<area shape="poly" title=" " alt="" coords="1375,426,1479,468,1477,473,1373,431"/>
<area shape="rect" title=" " alt="" coords="1256,476,1426,504"/>
<area shape="poly" title=" " alt="" coords="1344,429,1344,461,1338,461,1338,429"/>
<area shape="poly" title=" " alt="" coords="1105,355,1058,393,1027,413,994,431,943,450,890,466,795,485,794,479,888,461,941,445,992,426,1024,409,1055,388,1102,351"/>
<area shape="poly" title=" " alt="" coords="1072,350,705,408,704,403,1071,345"/>
<area shape="poly" title=" " alt="" coords="1120,354,1113,389,1097,430,1079,451,1059,469,1056,465,1075,448,1092,427,1108,388,1115,353"/>
<area shape="poly" title=" " alt="" coords="1159,351,1287,393,1286,398,1157,356"/>
<area shape="poly" title=" " alt="" coords="1127,352,1148,400,1164,461,1158,462,1142,402,1122,354"/>
<area shape="poly" title=" " alt="" coords="1139,351,1310,465,1307,470,1136,355"/>
<area shape="poly" title=" " alt="" coords="613,202,606,268,608,310,616,352,635,387,630,390,610,354,602,311,601,268,608,202"/>
</map>
</div>
</div>
<p><a href="addRun_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPAddRunInfo.html">PAddRunInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae4ec716a4eb035cefcab2aafc9675706" id="r_ae4ec716a4eb035cefcab2aafc9675706"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae4ec716a4eb035cefcab2aafc9675706">addRun_syntax</a> ()</td></tr>
<tr class="separator:ae4ec716a4eb035cefcab2aafc9675706"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0c5e987731a188e88df9880077cfdb1" id="r_ad0c5e987731a188e88df9880077cfdb1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad0c5e987731a188e88df9880077cfdb1">addRun_checkFormat</a> (std::string &amp;format)</td></tr>
<tr class="separator:ad0c5e987731a188e88df9880077cfdb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25690c62a57581a658dacd963a847b87" id="r_a25690c62a57581a658dacd963a847b87"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a25690c62a57581a658dacd963a847b87">addRun_readInputFiles</a> (const std::string fileName, std::vector&lt; <a class="el" href="structPAddRunInfo.html">PAddRunInfo</a> &gt; &amp;infoVec)</td></tr>
<tr class="separator:a25690c62a57581a658dacd963a847b87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab347bb7783b4e41600dceb5decb02c8d" id="r_ab347bb7783b4e41600dceb5decb02c8d"><td class="memItemLeft" align="right" valign="top">UInt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab347bb7783b4e41600dceb5decb02c8d">addRun_getPromptPeakPos</a> (<a class="el" href="PMusr_8h.html#ae689e7a4bf8a9c0ecf65bcd7d4a0ebde">PDoubleVector</a> *vec)</td></tr>
<tr class="separator:ab347bb7783b4e41600dceb5decb02c8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac69b2db509ad8c3eecdff41977a266af" id="r_ac69b2db509ad8c3eecdff41977a266af"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac69b2db509ad8c3eecdff41977a266af">addRun_filter_t0</a> (int argc, char *argv[], int &amp;idx, <a class="el" href="PMusr_8h.html#aa9c3d2033e27c38e4dbb98e26f1c4e54">PIntVector</a> &amp;t0)</td></tr>
<tr class="separator:ac69b2db509ad8c3eecdff41977a266af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcbe9b5bbddd1f24f68b7645f5c3d94a" id="r_afcbe9b5bbddd1f24f68b7645f5c3d94a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afcbe9b5bbddd1f24f68b7645f5c3d94a">addRun_filter_runList</a> (int argc, char *argv[], int &amp;idx, <a class="el" href="PMusr_8h.html#a01eec7e896afb5c4601dea91ee31477b">PUIntVector</a> &amp;runList)</td></tr>
<tr class="separator:afcbe9b5bbddd1f24f68b7645f5c3d94a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97" id="r_a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ad0c5e987731a188e88df9880077cfdb1" name="ad0c5e987731a188e88df9880077cfdb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0c5e987731a188e88df9880077cfdb1">&#9670;&#160;</a></span>addRun_checkFormat()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool addRun_checkFormat </td>
<td>(</td>
<td class="paramtype">std::string &amp;</td> <td class="paramname"><span class="paramname"><em>format</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>check if the requested format is supported.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">format</td><td>requested format string</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if supported, false otherwise </dd></dl>
<p class="definition">Definition at line <a class="el" href="addRun_8cpp_source.html#l00129">129</a> of file <a class="el" href="addRun_8cpp_source.html">addRun.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="addRun_8cpp_source.html#l00364">main()</a>.</p>
</div>
</div>
<a id="afcbe9b5bbddd1f24f68b7645f5c3d94a" name="afcbe9b5bbddd1f24f68b7645f5c3d94a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcbe9b5bbddd1f24f68b7645f5c3d94a">&#9670;&#160;</a></span>addRun_filter_runList()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool addRun_filter_runList </td>
<td>(</td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>argc</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char *</td> <td class="paramname"><span class="paramname"><em>argv</em></span>[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int &amp;</td> <td class="paramname"><span class="paramname"><em>idx</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="PMusr_8h.html#a01eec7e896afb5c4601dea91ee31477b">PUIntVector</a> &amp;</td> <td class="paramname"><span class="paramname"><em>runList</em></span>&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Filters the runList arguments. Allowed are: (i) run1 run2 ... runN (ii) runStart-runEnd, and (iii) runStart:runEnd:step</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">argc</td><td>argument counter </td></tr>
<tr><td class="paramname">argv</td><td>argument list </td></tr>
<tr><td class="paramname">idx</td><td>argument index from which to start </td></tr>
<tr><td class="paramname">runList</td><td>vector</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise </dd></dl>
<p class="definition">Definition at line <a class="el" href="addRun_8cpp_source.html#l00325">325</a> of file <a class="el" href="addRun_8cpp_source.html">addRun.cpp</a>.</p>
<p class="reference">References <a class="el" href="PMusr_8h_source.html#l01409">PStringNumberList::GetList()</a>, and <a class="el" href="PMusr_8cpp_source.html#l01991">PStringNumberList::Parse()</a>.</p>
<p class="reference">Referenced by <a class="el" href="addRun_8cpp_source.html#l00364">main()</a>.</p>
</div>
</div>
<a id="ac69b2db509ad8c3eecdff41977a266af" name="ac69b2db509ad8c3eecdff41977a266af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac69b2db509ad8c3eecdff41977a266af">&#9670;&#160;</a></span>addRun_filter_t0()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool addRun_filter_t0 </td>
<td>(</td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>argc</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char *</td> <td class="paramname"><span class="paramname"><em>argv</em></span>[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int &amp;</td> <td class="paramname"><span class="paramname"><em>idx</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="PMusr_8h.html#aa9c3d2033e27c38e4dbb98e26f1c4e54">PIntVector</a> &amp;</td> <td class="paramname"><span class="paramname"><em>t0</em></span>&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Filters the t0 arguments. Allowed is a comma separeted list of integers &gt; -2.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">argc</td><td>argument counter </td></tr>
<tr><td class="paramname">argv</td><td>argument list </td></tr>
<tr><td class="paramname">idx</td><td>argument index from which to start </td></tr>
<tr><td class="paramname">t0</td><td>vector</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise </dd></dl>
<p class="definition">Definition at line <a class="el" href="addRun_8cpp_source.html#l00275">275</a> of file <a class="el" href="addRun_8cpp_source.html">addRun.cpp</a>.</p>
<p class="reference">References <a class="el" href="PStartupHandler_8cpp_source.html#l00106">status</a>.</p>
<p class="reference">Referenced by <a class="el" href="addRun_8cpp_source.html#l00364">main()</a>.</p>
</div>
</div>
<a id="ab347bb7783b4e41600dceb5decb02c8d" name="ab347bb7783b4e41600dceb5decb02c8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab347bb7783b4e41600dceb5decb02c8d">&#9670;&#160;</a></span>addRun_getPromptPeakPos()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">UInt_t addRun_getPromptPeakPos </td>
<td>(</td>
<td class="paramtype"><a class="el" href="PMusr_8h.html#ae689e7a4bf8a9c0ecf65bcd7d4a0ebde">PDoubleVector</a> *</td> <td class="paramname"><span class="paramname"><em>vec</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Automatically determines the t0-bin. This assumes that there is a prompt peak in the data!</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">vec</td><td>histo data </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>maximum of the histo data </dd></dl>
<p class="definition">Definition at line <a class="el" href="addRun_8cpp_source.html#l00244">244</a> of file <a class="el" href="addRun_8cpp_source.html">addRun.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="addRun_8cpp_source.html#l00364">main()</a>.</p>
</div>
</div>
<a id="a25690c62a57581a658dacd963a847b87" name="a25690c62a57581a658dacd963a847b87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25690c62a57581a658dacd963a847b87">&#9670;&#160;</a></span>addRun_readInputFiles()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool addRun_readInputFiles </td>
<td>(</td>
<td class="paramtype">const std::string</td> <td class="paramname"><span class="paramname"><em>fileName</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; <a class="el" href="structPAddRunInfo.html">PAddRunInfo</a> &gt; &amp;</td> <td class="paramname"><span class="paramname"><em>infoVec</em></span>&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Reads the inputFile to extract the necessary information. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">fileName</td><td></td></tr>
<tr><td class="paramname">infoVec</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
<p class="definition">Definition at line <a class="el" href="addRun_8cpp_source.html#l00162">162</a> of file <a class="el" href="addRun_8cpp_source.html">addRun.cpp</a>.</p>
<p class="reference">References <a class="el" href="addRun_8cpp_source.html#l00057">PAddRunInfo::fPathFileName</a>, <a class="el" href="addRun_8cpp_source.html#l00058">PAddRunInfo::fT0</a>, and <a class="el" href="PStartupHandler_8cpp_source.html#l00106">status</a>.</p>
<p class="reference">Referenced by <a class="el" href="addRun_8cpp_source.html#l00364">main()</a>.</p>
</div>
</div>
<a id="ae4ec716a4eb035cefcab2aafc9675706" name="ae4ec716a4eb035cefcab2aafc9675706"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4ec716a4eb035cefcab2aafc9675706">&#9670;&#160;</a></span>addRun_syntax()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void addRun_syntax </td>
<td>(</td>
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sends the usage description to the standard output. </p>
<p class="definition">Definition at line <a class="el" href="addRun_8cpp_source.html#l00067">67</a> of file <a class="el" href="addRun_8cpp_source.html">addRun.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="addRun_8cpp_source.html#l00364">main()</a>.</p>
</div>
</div>
<a id="a0ddf1224851353fc92bfbff6f499fa97" name="a0ddf1224851353fc92bfbff6f499fa97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ddf1224851353fc92bfbff6f499fa97">&#9670;&#160;</a></span>main()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>argc</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char *</td> <td class="paramname"><span class="paramname"><em>argv</em></span>[]&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
<p>addRun is used to add various runs.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">argc</td><td>number of input arguments </td></tr>
<tr><td class="paramname">argv</td><td>list of input arguments</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>PMUSR_SUCCESS if everthing went smooth, otherwise and error number </dd></dl>
<p class="definition">Definition at line <a class="el" href="addRun_8cpp_source.html#l00364">364</a> of file <a class="el" href="addRun_8cpp_source.html">addRun.cpp</a>.</p>
<p class="reference">References <a class="el" href="addRun_8cpp_source.html#l00129">addRun_checkFormat()</a>, <a class="el" href="addRun_8cpp_source.html#l00325">addRun_filter_runList()</a>, <a class="el" href="addRun_8cpp_source.html#l00275">addRun_filter_t0()</a>, <a class="el" href="addRun_8cpp_source.html#l00244">addRun_getPromptPeakPos()</a>, <a class="el" href="addRun_8cpp_source.html#l00162">addRun_readInputFiles()</a>, <a class="el" href="addRun_8cpp_source.html#l00067">addRun_syntax()</a>, <a class="el" href="addRun_8cpp_source.html#l00059">PAddRunInfo::fFileFormat</a>, <a class="el" href="PFindRun_8cpp_source.html#l00133">PFindRun::FoundPathName()</a>, <a class="el" href="addRun_8cpp_source.html#l00057">PAddRunInfo::fPathFileName</a>, <a class="el" href="addRun_8cpp_source.html#l00058">PAddRunInfo::fT0</a>, <a class="el" href="PMusr_8cpp_source.html#l00716">PRawRunData::GetDataSet()</a>, <a class="el" href="PMusr_8h_source.html#l00875">PRawRunData::GetNoOfHistos()</a>, <a class="el" href="PFindRun_8h_source.html#l00128">PFindRun::GetPathName()</a>, <a class="el" href="PStartupHandler_8h.html#a2f473e587e18e6a64b260870ec870a5e">parseXmlFile()</a>, <a class="el" href="PMusr_8h_source.html#l00061">PMUSR_MSR_ALLOCATION_ERROR</a>, <a class="el" href="PMusr_8h_source.html#l00053">PMUSR_SUCCESS</a>, <a class="el" href="PMusr_8h_source.html#l00688">PRawRunDataSet::SetData()</a>, <a class="el" href="PMusr_8h_source.html#l00883">PRawRunData::SetGenerator()</a>, <a class="el" href="PMusr_8h_source.html#l00670">PRawRunDataSet::SetTimeZeroBin()</a>, <a class="el" href="PStartupHandler_8cpp_source.html#l00084">startup_path_name</a>, and <a class="el" href="PStartupHandler_8cpp_source.html#l00106">status</a>.</p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="addRun_8cpp.html">addRun.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
</ul>
</div>
</body>
</html>