|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.xal.tools.extlatgen.MadGenerator
MadGenerator generates MAD input file from XAL lattice view. Usage: create a MadGenerator object with an XAL lattice as input, then call the method createMadInput() which one can specify either DESIGN or LIVE data as argument.
| Field Summary | |
protected double[] |
beamci
beam initial condition |
protected java.lang.String |
myLatticeName
|
protected EnvelopeProbe |
myProbe
Probe for initial condition |
protected java.util.List |
mySeqList
|
static int |
PARAMSRC_DESIGN
for design values |
static int |
PARAMSRC_LIVE
for live data from the machine |
protected double |
Q
particle charge in e.u. |
| Constructor Summary | |
MadGenerator(java.util.List seqList,
EnvelopeProbe envProbe)
|
|
MadGenerator(java.lang.String latticeName,
java.util.List seqList,
EnvelopeProbe envProbe)
|
|
| Method Summary | |
Lattice |
createLattice(AcceleratorSeq accSeq)
create an XAL intermediate lattice |
void |
createMadInput(java.lang.String srcSelector)
generate the MAD input file |
java.lang.String |
formatName(java.lang.String name)
replace any "-" or ":" with "_" in the device name or beamline name |
void |
setBeamCI(double[] newBeamCI)
set the beam initial condition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected EnvelopeProbe myProbe
protected java.util.List mySeqList
public static final int PARAMSRC_DESIGN
public static final int PARAMSRC_LIVE
protected java.lang.String myLatticeName
protected double Q
protected double[] beamci
| Constructor Detail |
public MadGenerator(java.util.List seqList,
EnvelopeProbe envProbe)
seqList - sequence listenvProbe - envelope probe
public MadGenerator(java.lang.String latticeName,
java.util.List seqList,
EnvelopeProbe envProbe)
latticeName - lattice name (if there is one)seqList - sequence listenvProbe - envelope probe| Method Detail |
public void setBeamCI(double[] newBeamCI)
public void createMadInput(java.lang.String srcSelector)
throws java.io.IOException
srcSelector - select the data source: design (PARAMSRC_DESIGN) or live (PARAMSRC_LIVE) data
java.io.IOExceptionpublic java.lang.String formatName(java.lang.String name)
public Lattice createLattice(AcceleratorSeq accSeq)
accSeq - accelerator sequence for the lattice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||