249 lines
16 KiB
HTML
249 lines
16 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>mupp: /workspace/LMU/musrfit/src/musredit_qt6/mupp/PmuppScript.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="resize.js"></script>
|
|
<script type="text/javascript" src="cookie.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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">mupp<span id="projectnumber"> 1.1.0</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&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&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&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search',false);
|
|
$(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function(){ initResizable(false); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- 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">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_6ae224fd33464317177bff8e805aed3f.html">musredit_qt6</a></li><li class="navelem"><a class="el" href="dir_83a32f49a02a169727e3032b3fd1abe7.html">mupp</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div id="doc-content">
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">PmuppScript.cpp File Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Implementation of the mupp scripting interface for batch processing.
|
|
<a href="#details">More...</a></p>
|
|
<div class="textblock"><code>#include <cmath></code><br />
|
|
<code>#include <iostream></code><br />
|
|
<code>#include <QProcessEnvironment></code><br />
|
|
<code>#include <QString></code><br />
|
|
<code>#include <QFile></code><br />
|
|
<code>#include <QTextStream></code><br />
|
|
<code>#include <QDateTime></code><br />
|
|
<code>#include <QProcess></code><br />
|
|
<code>#include <QtGlobal></code><br />
|
|
<code>#include "<a class="el" href="PmuppScript_8h_source.html">PmuppScript.h</a>"</code><br />
|
|
</div><div class="textblock"><div class="dynheader">
|
|
Include dependency graph for PmuppScript.cpp:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="PmuppScript_8cpp__incl.png" border="0" usemap="#a_2workspace_2LMU_2musrfit_2src_2musredit__qt6_2mupp_2PmuppScript_8cpp" alt=""/></div>
|
|
<map name="a_2workspace_2LMU_2musrfit_2src_2musredit__qt6_2mupp_2PmuppScript_8cpp" id="a_2workspace_2LMU_2musrfit_2src_2musredit__qt6_2mupp_2PmuppScript_8cpp">
|
|
<area shape="rect" title="Implementation of the mupp scripting interface for batch processing." alt="" coords="2429,5,2599,67"/>
|
|
<area shape="rect" title=" " alt="" coords="1991,115,2050,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2429,53,2262,80,2069,118,2066,118,2065,113,2068,112,2261,75,2428,48"/>
|
|
<area shape="rect" title=" " alt="" coords="2097,426,2171,454"/>
|
|
<area shape="poly" title=" " alt="" coords="2600,43,2681,53,2767,67,2843,87,2873,99,2894,113,2913,133,2922,153,2926,176,2926,203,2926,282,2925,332,2917,352,2900,372,2884,380,2859,388,2787,401,2584,421,2360,434,2187,440,2187,435,2360,428,2583,416,2787,396,2858,383,2882,375,2896,368,2913,349,2920,331,2921,281,2921,203,2920,176,2917,155,2908,136,2891,117,2871,104,2842,92,2766,73,2680,58,2599,48"/>
|
|
<area shape="rect" title=" " alt="" coords="2124,115,2280,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2429,65,2263,113,2261,108,2428,60"/>
|
|
<area shape="rect" title=" " alt="" coords="2478,342,2545,370"/>
|
|
<area shape="poly" title=" " alt="" coords="2600,40,2639,49,2678,63,2714,84,2743,113,2753,131,2757,149,2758,166,2754,183,2735,216,2706,247,2670,275,2631,300,2557,338,2555,333,2628,295,2667,270,2702,243,2731,213,2749,181,2752,166,2752,149,2748,133,2739,117,2711,88,2676,68,2637,54,2599,46"/>
|
|
<area shape="rect" title=" " alt="" coords="2437,115,2490,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2499,69,2480,103,2476,100,2495,66"/>
|
|
<area shape="rect" title=" " alt="" coords="2514,115,2615,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2533,66,2552,100,2548,103,2529,69"/>
|
|
<area shape="rect" title=" " alt="" coords="2639,115,2728,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2572,65,2647,105,2644,110,2569,70"/>
|
|
<area shape="rect" title=" " alt="" coords="2074,342,2151,370"/>
|
|
<area shape="poly" title=" " alt="" coords="2429,44,2340,52,2246,66,2165,87,2135,101,2115,117,2100,141,2090,168,2086,196,2086,226,2093,282,2105,327,2100,328,2088,283,2080,226,2081,196,2085,166,2095,139,2111,113,2132,96,2163,82,2245,61,2340,47,2428,39"/>
|
|
<area shape="rect" title=" " alt="" coords="2803,115,2881,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2600,58,2789,110,2788,115,2599,64"/>
|
|
<area shape="rect" href="PmuppScript_8h.html" title="Scripting interface for mupp batch processing." alt="" coords="2303,115,2413,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,70,2395,109,2392,105,2461,65"/>
|
|
<area shape="poly" title=" " alt="" coords="2369,141,2496,327,2492,330,2364,144"/>
|
|
<area shape="rect" title=" " alt="" coords="2176,342,2247,370"/>
|
|
<area shape="poly" title=" " alt="" coords="2348,145,2304,197,2254,268,2224,329,2219,326,2249,265,2300,194,2344,142"/>
|
|
<area shape="rect" title=" " alt="" coords="2366,342,2454,370"/>
|
|
<area shape="poly" title=" " alt="" coords="2364,142,2406,326,2401,328,2358,143"/>
|
|
<area shape="rect" href="PmuppAdmin_8h.html" title="Administration and configuration management for mupp application." alt="" coords="2772,266,2886,294"/>
|
|
<area shape="poly" title=" " alt="" coords="2400,141,2774,259,2772,264,2399,146"/>
|
|
<area shape="rect" href="Pmupp_8h.html" title="Core data structures and handler classes for mupp parameter management." alt="" coords="2263,266,2338,294"/>
|
|
<area shape="poly" title=" " alt="" coords="2356,144,2314,253,2309,251,2351,142"/>
|
|
<area shape="rect" href="PVarHandler_8h.html" title=" " alt="" coords="1941,191,2050,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2303,144,2066,192,2064,187,2302,139"/>
|
|
<area shape="poly" title=" " alt="" coords="2772,296,2561,344,2559,339,2770,291"/>
|
|
<area shape="rect" title=" " alt="" coords="2570,342,2640,370"/>
|
|
<area shape="poly" title=" " alt="" coords="2789,297,2655,341,2654,336,2788,292"/>
|
|
<area shape="rect" title=" " alt="" coords="2828,342,2885,370"/>
|
|
<area shape="poly" title=" " alt="" coords="2836,294,2849,327,2844,328,2831,296"/>
|
|
<area shape="rect" title=" " alt="" coords="2664,342,2804,370"/>
|
|
<area shape="poly" title=" " alt="" coords="2813,297,2764,334,2761,330,2810,292"/>
|
|
<area shape="rect" href="mupp_8h.html" title="Header file for mupp (muon parameter plotter) main application." alt="" coords="2960,342,3028,370"/>
|
|
<area shape="poly" title=" " alt="" coords="2859,292,2952,333,2950,338,2857,297"/>
|
|
<area shape="rect" title=" " alt="" coords="3109,426,3196,454"/>
|
|
<area shape="poly" title=" " alt="" coords="3021,368,3115,416,3113,421,3018,373"/>
|
|
<area shape="rect" title=" " alt="" coords="2804,426,2877,454"/>
|
|
<area shape="poly" title=" " alt="" coords="2971,373,2880,421,2877,416,2968,368"/>
|
|
<area shape="rect" title=" " alt="" coords="2901,426,2983,454"/>
|
|
<area shape="poly" title=" " alt="" coords="2988,372,2961,414,2956,412,2983,369"/>
|
|
<area shape="rect" title=" " alt="" coords="3007,426,3085,454"/>
|
|
<area shape="poly" title=" " alt="" coords="3005,369,3032,412,3027,414,3000,372"/>
|
|
<area shape="poly" title=" " alt="" coords="2339,292,2464,335,2462,340,2337,297"/>
|
|
<area shape="poly" title=" " alt="" coords="2268,297,2161,339,2159,334,2266,292"/>
|
|
<area shape="poly" title=" " alt="" coords="2286,297,2241,334,2237,330,2283,292"/>
|
|
<area shape="poly" title=" " alt="" coords="2322,292,2379,331,2376,335,2319,297"/>
|
|
<area shape="poly" title=" " alt="" coords="2340,288,2555,339,2554,344,2338,293"/>
|
|
<area shape="rect" title=" " alt="" coords="2271,342,2341,370"/>
|
|
<area shape="poly" title=" " alt="" coords="2304,294,2307,326,2301,327,2299,295"/>
|
|
<area shape="poly" title=" " alt="" coords="2051,207,2189,224,2271,241,2351,264,2422,296,2481,331,2478,335,2420,301,2349,269,2269,246,2188,230,2050,212"/>
|
|
<area shape="poly" title=" " alt="" coords="2051,216,2248,264,2247,269,2050,222"/>
|
|
<area shape="rect" title=" " alt="" coords="934,426,990,454"/>
|
|
<area shape="poly" title=" " alt="" coords="1940,210,1664,221,1276,245,1084,263,917,286,848,298,792,312,750,328,726,344,716,358,714,364,721,367,739,370,808,381,860,394,923,415,927,417,925,422,921,420,858,399,807,386,738,375,719,372,709,366,711,356,723,340,748,323,790,307,847,293,916,280,1083,258,1275,240,1663,216,1940,205"/>
|
|
<area shape="rect" title=" " alt="" coords="1352,426,1410,454"/>
|
|
<area shape="poly" title=" " alt="" coords="2005,218,2018,248,2030,289,2031,333,2025,353,2013,372,2001,380,1981,387,1923,401,1755,421,1569,433,1425,440,1425,435,1569,428,1755,415,1922,395,1980,382,1999,375,2009,368,2020,351,2026,332,2024,290,2013,250,2000,220"/>
|
|
<area shape="rect" href="PAst_8hpp.html" title=" " alt="" coords="572,342,648,370"/>
|
|
<area shape="poly" title=" " alt="" coords="1940,208,1657,208,1256,214,1056,221,879,232,743,248,697,258,667,269,652,280,639,296,622,329,617,326,635,293,648,277,665,264,695,252,743,242,879,227,1056,216,1256,208,1657,202,1940,203"/>
|
|
<area shape="rect" href="PProgram_8hpp.html" title=" " alt="" coords="1326,266,1435,294"/>
|
|
<area shape="poly" title=" " alt="" coords="1941,215,1451,273,1451,268,1940,210"/>
|
|
<area shape="rect" title=" " alt="" coords="5,418,159,462"/>
|
|
<area shape="poly" title=" " alt="" coords="572,364,404,384,175,420,174,414,403,379,572,358"/>
|
|
<area shape="rect" title=" " alt="" coords="182,418,342,462"/>
|
|
<area shape="poly" title=" " alt="" coords="572,369,357,419,356,414,571,364"/>
|
|
<area shape="rect" title=" " alt="" coords="366,418,512,462"/>
|
|
<area shape="poly" title=" " alt="" coords="584,373,499,413,497,408,581,368"/>
|
|
<area shape="rect" title=" " alt="" coords="537,418,683,462"/>
|
|
<area shape="poly" title=" " alt="" coords="613,370,613,402,607,402,607,370"/>
|
|
<area shape="rect" title=" " alt="" coords="707,426,846,454"/>
|
|
<area shape="poly" title=" " alt="" coords="638,368,737,416,735,421,636,373"/>
|
|
<area shape="rect" title=" " alt="" coords="870,426,910,454"/>
|
|
<area shape="poly" title=" " alt="" coords="649,363,771,391,859,415,860,416,858,421,857,420,769,397,648,368"/>
|
|
<area shape="poly" title=" " alt="" coords="1325,285,1181,290,1003,301,845,318,791,330,762,344,737,368,722,375,722,372,745,370,785,374,844,387,923,415,927,417,925,422,921,420,842,392,784,379,745,376,723,378,717,377,734,363,759,340,789,325,844,313,1003,296,1181,285,1325,280"/>
|
|
<area shape="poly" title=" " alt="" coords="1383,294,1383,410,1378,410,1378,294"/>
|
|
<area shape="poly" title=" " alt="" coords="1326,289,1063,311,717,345,663,351,663,345,716,339,1063,306,1325,283"/>
|
|
<area shape="rect" title=" " alt="" coords="1759,342,1808,370"/>
|
|
<area shape="poly" title=" " alt="" coords="1436,285,1573,304,1744,339,1743,344,1572,310,1436,290"/>
|
|
<area shape="rect" href="PErrorHandler_8hpp.html" title=" " alt="" coords="1207,342,1344,370"/>
|
|
<area shape="poly" title=" " alt="" coords="1363,297,1308,335,1305,331,1360,292"/>
|
|
<area shape="rect" title=" " alt="" coords="1418,342,1556,370"/>
|
|
<area shape="poly" title=" " alt="" coords="1401,292,1458,331,1455,335,1398,297"/>
|
|
<area shape="rect" title=" " alt="" coords="1581,342,1735,370"/>
|
|
<area shape="poly" title=" " alt="" coords="1431,292,1594,335,1593,340,1430,297"/>
|
|
<area shape="rect" title=" " alt="" coords="1832,342,1999,370"/>
|
|
<area shape="poly" title=" " alt="" coords="1436,286,1817,338,1816,344,1436,292"/>
|
|
<area shape="rect" title=" " alt="" coords="773,342,964,370"/>
|
|
<area shape="poly" title=" " alt="" coords="1326,292,976,342,975,337,1325,287"/>
|
|
<area shape="rect" title=" " alt="" coords="989,342,1183,370"/>
|
|
<area shape="poly" title=" " alt="" coords="1328,297,1154,340,1153,335,1327,292"/>
|
|
<area shape="poly" title=" " alt="" coords="1344,361,1406,367,2082,431,2081,436,1406,372,1344,366"/>
|
|
<area shape="poly" title=" " alt="" coords="1226,373,1006,430,1005,425,1224,368"/>
|
|
<area shape="poly" title=" " alt="" coords="1294,368,1354,414,1350,419,1291,372"/>
|
|
<area shape="rect" title=" " alt="" coords="1241,426,1310,454"/>
|
|
<area shape="poly" title=" " alt="" coords="1278,370,1278,411,1273,411,1273,370"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="PmuppScript_8cpp_source.html">Go to the source code of this file.</a></p>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Implementation of the mupp scripting interface for batch processing. </p>
|
|
<p>This file implements the non-interactive scripting system for mupp, enabling automated batch processing of parameter data analysis and plotting tasks.</p>
|
|
<p>Key functionality implemented:</p><ul>
|
|
<li>Script command parsing and execution</li>
|
|
<li>Path management with environment variable expansion</li>
|
|
<li>Data collection loading and selection</li>
|
|
<li>X-Y axis parameter configuration</li>
|
|
<li>Variable expression evaluation and storage</li>
|
|
<li>ROOT macro generation with full plot specification</li>
|
|
<li>Batch mode plot creation via ROOT subprocess</li>
|
|
<li>Label formatting for publication-quality plots</li>
|
|
</ul>
|
|
<p>Script command processing: The executeScript() method processes commands sequentially, maintaining state throughout execution. Each command type (loadPath, load, select, x, y, var, norm, plot, macro) has a dedicated handler method.</p>
|
|
<p>ROOT macro generation: The macro() method creates complete ROOT C++ macros including:</p><ul>
|
|
<li>Data array definitions</li>
|
|
<li>TGraphAsymmErrors objects for error bars</li>
|
|
<li>Canvas and styling setup</li>
|
|
<li>Axis labels and ranges</li>
|
|
<li>Marker and color configuration</li>
|
|
<li>Optional normalization</li>
|
|
</ul>
|
|
<p>Variable system: Variables are mathematical expressions combining collection parameters. The var_cmd() method integrates with <a class="el" href="classPVarHandler.html" title="The PVarHandler class handles variable parsing, evaluation, and data management.">PVarHandler</a> for expression parsing and evaluation, enabling derived quantity calculations. </p>
|
|
|
|
<p class="definition">Definition in file <a class="el" href="PmuppScript_8cpp_source.html">PmuppScript.cpp</a>.</p>
|
|
</div></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
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
|
|
</small></address>
|
|
</div><!-- doc-content -->
|
|
</body>
|
|
</html>
|