[4] | 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 radiationoff</title> |
---|
| 6 | <meta name="keywords" content="radiationoff"> |
---|
| 7 | <meta name="description" content="RADIATIONOFF turns classical radiation OFF"> |
---|
| 8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
| 9 | <meta name="generator" content="m2html © 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> > <a href="../index.html">at</a> > <a href="index.html">atphysics</a> > radiationoff.m</div> |
---|
| 16 | |
---|
| 17 | <!--<table width="100%"><tr><td align="left"><a href="../../index.html"><img alt="<" border="0" src="../../left.png"> Master index</a></td> |
---|
| 18 | <td align="right"><a href="index.html">Index for at/atphysics <img alt=">" border="0" src="../../right.png"></a></td></tr></table>--> |
---|
| 19 | |
---|
| 20 | <h1>radiationoff |
---|
| 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>RADIATIONOFF turns classical radiation OFF</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>This is a script file. </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">RADIATIONOFF turns classical radiation OFF |
---|
| 31 | Switch all magnets currently set to use pass-methods |
---|
| 32 | 'BndMPoleSymplectic4RadPass' and 'StrMPoleSymplectic4RadPass' |
---|
| 33 | to their equivalents without radiation |
---|
| 34 | 'BndMPoleSymplectic4Pass' and 'StrMPoleSymplectic4Pass' |
---|
| 35 | |
---|
| 36 | See also <a href="radiationon.html" class="code" title="">RADIATIONON</a>, <a href="cavityon.html" class="code" title="function varargout = cavityon(varargin)">CAVITYON</a>, <a href="cavityoff.html" class="code" title="">CAVITYOFF</a></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> |
---|
| 40 | This function calls: |
---|
| 41 | <ul style="list-style-image:url(../../matlabicon.gif)"> |
---|
| 42 | </ul> |
---|
| 43 | This function is called by: |
---|
| 44 | <ul style="list-style-image:url(../../matlabicon.gif)"> |
---|
| 45 | </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 <span class="comment">%RADIATIONOFF turns classical radiation OFF</span> |
---|
| 51 | 0002 <span class="comment">% Switch all magnets currently set to use pass-methods</span> |
---|
| 52 | 0003 <span class="comment">% 'BndMPoleSymplectic4RadPass' and 'StrMPoleSymplectic4RadPass'</span> |
---|
| 53 | 0004 <span class="comment">% to their equivalents without radiation</span> |
---|
| 54 | 0005 <span class="comment">% 'BndMPoleSymplectic4Pass' and 'StrMPoleSymplectic4Pass'</span> |
---|
| 55 | 0006 <span class="comment">%</span> |
---|
| 56 | 0007 <span class="comment">% See also RADIATIONON, CAVITYON, CAVITYOFF</span> |
---|
| 57 | 0008 |
---|
| 58 | 0009 |
---|
| 59 | 0010 <span class="keyword">if</span> ~isglobal(THERING) |
---|
| 60 | 0011 error(<span class="string">'Global variable THERING could not be found'</span>); |
---|
| 61 | 0012 <span class="keyword">end</span> |
---|
| 62 | 0013 localindex = findcells(THERING,<span class="string">'PassMethod'</span>,<span class="string">'StrMPoleSymplectic4RadPass'</span>); |
---|
| 63 | 0014 THERING = setcellstruct(THERING,<span class="string">'PassMethod'</span>,localindex, <span class="string">'StrMPoleSymplectic4Pass'</span>); |
---|
| 64 | 0015 totalswitched = length(localindex); |
---|
| 65 | 0016 |
---|
| 66 | 0017 localindex = findcells(THERING,<span class="string">'PassMethod'</span>,<span class="string">'BndMPoleSymplectic4RadPass'</span>); |
---|
| 67 | 0018 THERING = setcellstruct(THERING,<span class="string">'PassMethod'</span>,localindex, <span class="string">'BndMPoleSymplectic4Pass'</span>); |
---|
| 68 | 0019 totalswitched = totalswitched + length(localindex); |
---|
| 69 | 0020 |
---|
| 70 | 0021 disp([<span class="string">'PassMethod was changed to NOT include radiation in '</span>,num2str(totalswitched), <span class="string">' elements'</span>]) |
---|
| 71 | 0022 clear localindex totalswitched</pre></div> |
---|
| 72 | <hr><address>Generated on Mon 21-May-2007 15:26:45 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
| 73 | </body> |
---|
| 74 | </html> |
---|