plotfunctions#

Functions

CurlyH()

function [H,Hv]=CurlyH(RING,dp,ind)

CurlyHlindata()

function [H,Hv]=CurlyHlindata(lindata)

plBeamSize()

Plot H and V beam size

plClosedOrbit()

Plots H and V 4x4 closed orbit

plCorrectorStrength()

Plot PolynomB

plEmitContrib()

Plot H/rho³ at every dipole

plPolynomBComp()

PlotBn coefficient with normalization

plPolynomBSxtOct()

Plots Bn for sextupole and octupole magnets

plSigmaSigmap()

Plots beam sizes and divergences

plenvelope()

Plot beam envelope

plotAperture()

Plots x and y aperture.

plotB0curlyh()

Plot B and H

plotERAperture()

Plot RApertures EApertures

plotRDT()

plotWdispP()

plotWdispP Plot W functions

plot_betabeat()

function plot_betabeat(THERING_ref,THERING_mod)

plot_trajectory()

Plots particle trajectories

plotbetadisp()

function [s,plotdata]=plotbetadisp(ring,dpp,plotfun,varargin)

plotbetadispcurlyh()

Plot beta, dispersion and H

plotsqrtbetadispcurlyh()

Plot sqrt(beta), dispersion and H

pltouschek()

Plots Touschek lifetime contribution

plxi()

plotdata=plxi(lindata,ring,dpp)

CurlyH()#
function [H,Hv]=CurlyH(RING,dp,ind)
computes Curly H (dispersion invariant)
RING :at lattice
dp : energy deviation
ind : reference positions
output
H : horizontal dispersion invariant
Hv : vertical dispersion invariant
CurlyHlindata()#
function [H,Hv]=CurlyHlindata(lindata)
computes Curly H (dispersion invariant)
lindata is the first ouptut of [lindata,~,~]=atlinopt(…)
(include at least 2 ouptut arguments for dispersion computation)
output
H : horizontal dispersion invariant
Hv : vertical dispersion invariant
plBeamSize()#
Plot H and V beam size
USAGE:
>> atbaseplot(ring,@**plBeamSize**);
>> atplot(ring,@**plBeamSize**); (obsolete)
See also atbaseplot()
plClosedOrbit()#
Plots H and V 4x4 closed orbit
Helper function for atplot: plot
- H and V closed orbits on left axis
- Dispersion on right axis
EXAMPLEs
>> atbaseplot(ring,@**plClosedOrbit**,{‘dp’,0.01});
>> atplot(ring,@**plClosedOrbit**,’dp’,0.01); (obsolete)
plCorrectorStrength()#
Plot PolynomB
Helper function for atplot: plot
- PolynomB(1), PolynomA(1), PolynomA(2), PolynomA(2) on the left axis
EXAMPLEs
>> atbaseplot(ring,’synopt’,false,@**plCorrectorStrength**);
>> atplot(ring,@**plCorrectorStrength**,’synopt’,false); (obsolete)
plEmitContrib()#
Plot H/rho³ at every dipole
USAGE:
>> atbaseplot(ring,@**plEmitContrib**);
>> atplot(ring,@**plEmitContrib**); (obsolete)
See also atbaseplot()
plPolynomBComp()#
PlotBn coefficient with normalization
plPolynomBComp default plotting function for ATPLOT
Plots polynomB for ring and ring1
plPolynomBSxtOct()#
Plots Bn for sextupole and octupole magnets
DEFAULTPLOT Default plotting function for ATPLOT
Plots polynomB for ring and ring1
plSigmaSigmap()#
Plots beam sizes and divergences
Plots sigmax and sigmay on left axis and
sigmax’ and sigmay’ on right axis
plenvelope()#
Plot beam envelope
Helper function for atplot: plot
- H and V beam envelopes on left axis
USAGE:
>> atbaseplot(ring,@**plenvelope**);
>> atplot(ring,@**plenvelope**); (obsolete)
See also atbaseplot()
plotAperture()#
Plots x and y aperture.
Helper function for atplot: plot the physical aperture
USAGE:
>> atbaseplot(ring,@**plotAperture**);
>> atplot(ring,@**plotAperture**); (obsolete)
plotB0curlyh()#
Plot B and H
USAGE:
>> atbaseplot(ring,@**plotB0curlyh**);
>> atplot(ring,@**plotB0curlyh**); (obsolete)
See also atbaseplot()
plotERAperture()#
Plot RApertures EApertures
Helper function for atplot:
plot the Elliptic and Rectangular physical apertures
USAGE:
>> atbaseplot(ring,@**plotERAperture**);
>> atplot(ring,@**plotERAperture**); (obsolete)
plotRDT()#
plotRDT plots the absolute value of the hamiltonian terms
plotRDT must be used with atplot:
atplot(ring,@**plotRDT**,’geometric1’) plots the first order geometric terms
atplot(ring,@**plotRDT**,’chromatic’) plots the chromatic terms
atplot(ring,@**plotRDT**,’geometric2’) plots the second order geometric terms
atplot(ring,@**plotRDT**,’coupling’) plots the coupling terms
see also: computeRDT, atplot
plotWdispP()#
plotWdispP Plot W functions
Helper function for atplot: plot
- W functions (derivatives of beta-functions versus momentum) on left axis
- derivative of dispersion on right axis
plot_betabeat()#
function plot_betabeat(THERING_ref,THERING_mod)
returns plot of beta beat of THERING_mod respect to THERING_ref
plot_trajectory()#
Plots particle trajectories
Helper function for atplot: plot
- H and V trajectories on the left axis
USAGE:
>> atbaseplot(ring,@**plot_trajectory**,{INPUT_COORDS);
>> atplot(ring,@**plot_trajectory**,INPUT_COORDS); (obsolete)
See also atbaseplot()
plotbetadisp()#
function [s,plotdata]=plotbetadisp(ring,dpp,plotfun,varargin)
plotbetadisp Plot beta functions and dispersion
Helper function for tplot:
- beta functions on the left axis
- diespersion on the right axis
USAGE:
>> atbaseplot(ring,@**plotbetadisp**);
>> atplot(ring,@**plotbetadisp**); (obsolete)
plotbetadispcurlyh()#
Plot beta, dispersion and H
USAGE:
>> atbaseplot(ring,@**plotbetadispcurlyh**);
>> atplot(ring,@**plotbetadispcurlyh**); (obsolete)
See also atbaseplot()
plotsqrtbetadispcurlyh()#
Plot sqrt(beta), dispersion and H
USAGE:
>> atbaseplot(ring,@**plotsqrtbetadispcurlyh**);
>> atplot(ring,@**plotsqrtbetadispcurlyh**); (obsolete)
See also atbaseplot()
pltouschek(lindata, ring, dpp)#
Plots Touschek lifetime contribution
plotdata=pltouschek(lindata,ring,dpp)
plots curly H function and also 1/(sigx sigy) to understand local scattering rate
plxi()#
plotdata=plxi(lindata,ring,dpp)
xi function in Touschek formula gives trans. velocity in beam frame