source: MML/trunk/mml/at/doc_html/at/getenergymodel.html @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 3.7 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2                "http://www.w3.org/TR/REC-html40/loose.dtd">
3<html>
4<head>
5  <title>Description of getenergymodel</title>
6  <meta name="keywords" content="getenergymodel">
7  <meta name="description" content="GETENERGYMODEL - Returns the model energy in GeV">
8  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
9  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
10  <meta name="robots" content="index, follow">
11  <link type="text/css" rel="stylesheet" href="../m2html.css">
12</head>
13<body>
14<a name="_top"></a>
15<div><a href="../index.html">Home</a> &gt;  <a href="index.html">at</a> &gt; getenergymodel.m</div>
16
17<!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td>
18<td align="right"><a href="index.html">Index for at&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>-->
19
20<h1>getenergymodel
21</h1>
22
23<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
24<div class="box"><strong>GETENERGYMODEL - Returns the model energy in GeV</strong></div>
25
26<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
27<div class="box"><strong>function GeV = getenergymodel </strong></div>
28
29<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
30<div class="fragment"><pre class="comment">GETENERGYMODEL - Returns the model energy in GeV
31 GeV = getenergymodel
32
33 OUTPUTS
34 1. GeV - Energy in GeV
35
36 See Also getenergy</pre></div>
37
38<!-- crossreference -->
39<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
40This function calls:
41<ul style="list-style-image:url(../matlabicon.gif)">
42</ul>
43This function is called by:
44<ul style="list-style-image:url(../matlabicon.gif)">
45<li><a href="getpvmodel.html" class="code" title="function [AM, tout, DataTime, ErrorFlag] = getpvmodel(varargin)">getpvmodel</a>       GETPVMODEL - Get the model value</li><li><a href="setpvmodel.html" class="code" title="function ErrorFlag = setpvmodel(varargin)">setpvmodel</a>        SETPVMODEL - Sets the model</li></ul>
46<!-- crossreference -->
47
48
49<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
50<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function GeV = getenergymodel</a>
510002 <span class="comment">%GETENERGYMODEL - Returns the model energy in GeV</span>
520003 <span class="comment">% GeV = getenergymodel</span>
530004 <span class="comment">%</span>
540005 <span class="comment">% OUTPUTS</span>
550006 <span class="comment">% 1. GeV - Energy in GeV</span>
560007 <span class="comment">%</span>
570008 <span class="comment">% See Also getenergy</span>
580009
590010 <span class="comment">%</span>
600011 <span class="comment">%  Written by Gregory J. Portmann</span>
610012
620013 GeV = [];
630014
640015 <span class="keyword">global</span> THERING
650016
660017 <span class="comment">% Look for .Energy</span>
670018 ATCavityIndex = findcells(THERING, <span class="string">'Energy'</span>);
680019
690020 <span class="keyword">if</span> ~isempty(ATCavityIndex)
700021     GeV = THERING{ATCavityIndex(1)}.Energy / 1e+009;
710022 <span class="keyword">end</span>
720023
730024 <span class="keyword">if</span> isempty(GeV)
740025     <span class="comment">% Note: this will be obsolete in the future</span>
750026     <span class="keyword">global</span> GLOBVAL
760027     GeV = GLOBVAL.E0 / 1e+009;
770028 <span class="keyword">end</span></pre></div>
78<hr><address>Generated on Fri 18-May-2007 17:13:39 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
79</body>
80</html>
Note: See TracBrowser for help on using the repository browser.