MAD82MADX#
Functions
converts mad8 sequence files to madX |
- mad8TOmadx(seqfilemad8)#
- converts mad8 sequence files to madXfunction [seqfilemadx]=mad8TOmadx(seqfilemad8)This procedure reads a saved sequence inmad8 (SAVE,FILE=’seqfilemad8’;)and converts it to madx sequenceevery = goes to :=the order of the declarations is the same in the two files.works also with single mad8 files not containing comands, onlydefinitions.does not translate call to files since those may change nameparameters:- seqdilemad8=name of the mad8 lattice file- periodname (optional)= name of the period to use in madx (default is the filename)Simone Maria Liuzzo PhD@LNF 25-11-2011update 29-2-2012 : corrected a bug that would not translate correctlymarkers, kickers and monitor declared only by element name (“BPM: monitor” would not convet properly)