[430] | 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
---|
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
| 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
| 4 | |
---|
| 5 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
| 6 | |
---|
| 7 | <head> |
---|
| 8 | <meta http-equiv=Content-Type content="text/html; charset=iso-8889-2"> |
---|
| 9 | <meta name=Generator content="NEdit"> |
---|
| 10 | <meta name=Originator content="Skowron"> |
---|
| 11 | <link rel="stylesheet" type="text/css" href="../ptc_general/madxdoc_ps.css" /> |
---|
| 12 | <title>PTC_MOMENTS</title> |
---|
| 13 | <style> |
---|
| 14 | </style> |
---|
| 15 | </head> |
---|
| 16 | |
---|
| 17 | <body bgcolor="#ffffff"'> |
---|
| 18 | |
---|
| 19 | <div style="text-align:center;"> |
---|
| 20 | <center> |
---|
| 21 | EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH |
---|
| 22 | <IMG SRC="http://cern.ch/madx/icons/mx7_25.gif" align="right"> |
---|
| 23 | <h1>PTC_MOMENTS</h1> |
---|
| 24 | |
---|
| 25 | </center> |
---|
| 26 | </div> |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | <!-- ########################################################## --> |
---|
| 30 | |
---|
| 31 | <div class="madxdocContent"> |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | <!-- ########################################################## --> |
---|
| 35 | <!-- ########################################################## --> |
---|
| 36 | <!-- ########################################################## --> |
---|
| 37 | |
---|
| 38 | <h3 align=center style='margin-top:0cm;text-align:left;text-indent:0cm'> |
---|
| 39 | <span> |
---|
| 40 | USER MANUAL |
---|
| 41 | </span> |
---|
| 42 | </h3> |
---|
| 43 | |
---|
| 44 | <div> |
---|
| 45 | |
---|
| 46 | <!-- ########################################################## --> |
---|
| 47 | |
---|
| 48 | <h4>SYNOPSIS</h4> |
---|
| 49 | |
---|
| 50 | <pre> |
---|
| 51 | <big> |
---|
| 52 | PTC_MOMENTS, |
---|
| 53 | no = [i, 1], |
---|
| 54 | xdistr = [s, gauss, gauss], |
---|
| 55 | ydistr = [s, gauss, gauss], |
---|
| 56 | zdistr = [s, gauss, gauss], |
---|
| 57 | |
---|
| 58 | </big> |
---|
| 59 | </pre> |
---|
| 60 | |
---|
| 61 | </div> |
---|
| 62 | |
---|
| 63 | <!-- ########################################################## --> |
---|
| 64 | |
---|
| 65 | <h4> Description </h4> |
---|
| 66 | |
---|
| 67 | <div> |
---|
| 68 | Calculates moments previously selected with the |
---|
| 69 | <a href="PTC_SelectMoment.html">ptc_select_moment</a> command. |
---|
| 70 | It uses maps saved by the ptc_twiss command, hence, the savemaps switch of |
---|
| 71 | ptc_twiss must be set to true (default) to be able to calculate moments. |
---|
| 72 | |
---|
| 73 | </div> |
---|
| 74 | |
---|
| 75 | <h4> Examples</h4> |
---|
| 76 | |
---|
| 77 | <a href="http://cern.ch/frs/mad-X_examples/ptc_madx_interface/moments/moments.madx"> ATF2 </a> |
---|
| 78 | |
---|
| 79 | <!-- ########################################################## --> |
---|
| 80 | |
---|
| 81 | <h4> Command parameters and switches </h4> |
---|
| 82 | <div> |
---|
| 83 | |
---|
| 84 | <dl> |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | <dt><b> no </b></dt> |
---|
| 88 | <dd> |
---|
| 89 | <i> integer </i> |
---|
| 90 | <p> order of the calculation, maximally twise the order of the last twiss |
---|
| 91 | </dd> |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | <dt><b> xdistr, ydistr, zdistr </b></dt> |
---|
| 95 | <dd> |
---|
| 96 | <i> string defining type of distribution for x, y, z dimension, respectively, |
---|
| 97 | <ol> |
---|
| 98 | <li> <b>gauss</b> - Gaussian</li> |
---|
| 99 | <li> <b>flat5</b> - flat distribution in the first of variables (dp over p) of a given dimension |
---|
| 100 | and Delta Dirac in the second one (T) </li> |
---|
| 101 | <li> <b>flat56</b> - flat rectangular distribution </li> |
---|
| 102 | </ol> |
---|
| 103 | |
---|
| 104 | |
---|
| 105 | </i> |
---|
| 106 | <p> |
---|
| 107 | </dd> |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | </dl> |
---|
| 111 | |
---|
| 112 | <h4> </h4> |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | <!-- ############################################################ --> |
---|
| 116 | <!-- ############################################################ --> |
---|
| 117 | <!-- ############################################################ --> |
---|
| 118 | <!-- |
---|
| 119 | <h3> PROGRAMMERS MANUAL </h3> |
---|
| 120 | |
---|
| 121 | <p> |
---|
| 122 | The command is implemented pro_ptc_SELECT function in madxn.c and |
---|
| 123 | by subroutine xxxx in madx_ptc_xxx.f90. |
---|
| 124 | <p> |
---|
| 125 | Sopecified range is resolved with help of get_range command. Number of the element in the current sequence |
---|
| 126 | is resolved and passed as the parameter to the fortran routine. It allows to resolve uniquely the corresponding |
---|
| 127 | element in the PTC layout. |
---|
| 128 | <p> |
---|
| 129 | |
---|
| 130 | --> |
---|
| 131 | |
---|
| 132 | </div> |
---|
| 133 | |
---|
| 134 | </body> |
---|
| 135 | |
---|
| 136 | </html> |
---|