Home > at > atphysics > radiationoff.m

radiationoff

PURPOSE ^

RADIATIONOFF turns classical radiation OFF

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

RADIATIONOFF turns classical radiation  OFF
  Switch all magnets currently set to use pass-methods
  'BndMPoleSymplectic4RadPass' and  'StrMPoleSymplectic4RadPass'
  to their equivalents without radiation
  'BndMPoleSymplectic4Pass' and  'StrMPoleSymplectic4Pass'
    
   See also RADIATIONON, CAVITYON, CAVITYOFF

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %RADIATIONOFF turns classical radiation  OFF
0002 %  Switch all magnets currently set to use pass-methods
0003 %  'BndMPoleSymplectic4RadPass' and  'StrMPoleSymplectic4RadPass'
0004 %  to their equivalents without radiation
0005 %  'BndMPoleSymplectic4Pass' and  'StrMPoleSymplectic4Pass'
0006 %
0007 %   See also RADIATIONON, CAVITYON, CAVITYOFF
0008 
0009 
0010 if ~isglobal(THERING)
0011    error('Global variable THERING could not be found');
0012 end
0013 localindex = findcells(THERING,'PassMethod','StrMPoleSymplectic4RadPass');
0014 THERING = setcellstruct(THERING,'PassMethod',localindex, 'StrMPoleSymplectic4Pass');
0015 totalswitched = length(localindex);
0016 
0017 localindex = findcells(THERING,'PassMethod','BndMPoleSymplectic4RadPass');
0018 THERING = setcellstruct(THERING,'PassMethod',localindex, 'BndMPoleSymplectic4Pass');
0019 totalswitched = totalswitched + length(localindex);
0020 
0021 disp(['PassMethod was changed to NOT include radiation in ',num2str(totalswitched),  ' elements'])     
0022 clear localindex totalswitched

Generated on Mon 21-May-2007 15:26:45 by m2html © 2003