; cleaned up to bare bones on 02/03/2004 based on 110601.in from Harunori Takeda

;--------------------Global Parameters---------------------
NoSFTableout
Power
FullWallPower
RadPctCut 99.9    ! beam.out maximum radius at radpctcut %
Use3DPicnic
NoPlotOut

Run 1 1
Title
*** ORNL April 26,2001 Design***
;linac W0,     Fbunch, Ibeam, Mc^2,     Nq
linac  2.5    402.5  38.00  939.3014, -1

;--------------------Beam Particle Distribution Spec---------

ReadDist -11.15
Startphase -45.
;input -2 100000  -1.9619 18.3140   0.0021824 ! Toutatis 38 mA emittance to 7mm into MEBT
;                 1.7681 16.1030  0.0021856
;                 0.0196 58.2172  0.003088

;input -2 100000  -1.9899 19.6360   0.0017573 ! exact match to rms properties of ReadDist distribution
;                 1.92893 17.778  0.0017572
;                 0.015682 67.0939  0.002420



;  !!! This is the MEBT matched for 38mA situation
; 
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  1, 0,   402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** MEBT by J.Staple 5/31/00
Transport -45.
OldRectangle
Bore 2.5


;quad L, Ra, outputflag, B, errorflag
;cavity 0 ra out, dW, fc, psic
Displace 0 0 0 0 0 90.  ! enable for the readdist
drift    0.  1.5  1  1
chopper 0.6800    ! tentative chopper setting.             !1
drift   0        1.5  1  1                                                   !2
drift  97.5e-1   1.5  1  4         ! the tout38mA dst is 7mm out of vane.    !3
quad   61.e-1   1.5  1    -34.636638e+2   1                    !4
drift  84.e-1   1.5  1  2                                                    !5
quad   61.e-1   1.5  1    +36.812701e+2   1                   !6
drift  84.e-1   1.5  1  2                                                    !7
quad   61.e-1   1.5  1    -28.326559e+2    1                    !8
drift  79.5e-1  1.5  1  2                                                    !9
cavity  0       1.5  1     0.075 402.5 -90.                          !10
drift  79.5e-1  1.5  1  2                                                    !11
quad   61.e-1   1.5  1    +16.119972e+2   1                      !12
drift  114.5e-1 1.5  1  4                                                    !13
drift  175.e-1  1.5  1  10  1  0 0.      1.8 		!14
drift 175.e-1   1.5  1  10  1  0       0. 1.8 		!15
drift 155.e-1   2.0  1  5                                                    !16
cavity  0       1.5  1     0.045 402.5 -90.                          !17
drift  77.e-1   2.0  1  2                                                    !18
quad   66.e-1   2.0  1    -17.e+2      1                              !19
drift  34.e-1   2.0  1  2                                                    !20
quad   66.e-1   2.0  1    +26.20e+2    1                            !21
drift  34.e-1   2.0  1  2                                                    !22
quad   66.e-1   2.0  1    -11.70e+2    1                             !23
drift 137.e-1   2.0  1  4                                                    !24
drift 137.e-1   2.0  1  4                                                    !26
quad   66.e-1   2.0  1    -11.70e+2    1                            !27
drift  34.e-1   2.0  1  2                                                    !28
quad   66.e-1   2.0  1     26.20e+2    1                            !29
drift  34.e-1   2.0  1  2                                                    !30
quad   66.e-1   2.0  1    -17.00e+2    1                            !31
drift  77.e-1   2.0  1  2                                                    !32
cavity  0       1.5  1     0.45772986E-01 402.5 -90.         !33
drift 155.e-1   2.0  1  5                                                    !34
drift  175.e-1  1.5  1  10                                                   !35
drift  175.e-1  1.5  1  10                                                   !37
drift 119.5e-1   1.5  1  4                                                   !38
quad   61.e-1   1.5  1     16.720467e+2   1                        !39
drift  89.e-1   1.5  1  2                                                       !40
quad   61.e-1   1.5  1     -25.960967e+2    1    	!41
drift  74.5e-1   1.5  1  2			!42
cavity  0       1.5  1     0.941416410E-01   402.5 -90.     ! 43 
drift  74.5e-1   1.5  1  2			!44
quad   61.e-1   1.5  1    +27.582012e+2    1                    !45
drift  84.e-1   1.5  1  2				!46
quad   61.e-1   1.5  1    -14.505436e+2    1            	!47
drift 194.5e-1  1.5  1  5			!48
quad   17.5e-1  1.25  0    -37.00e+2   1		!50

elimit 0.5 ! get rid of low energy particles
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  .05     .05     20   40   0      0            1  ! Scheff
scheff  .05     .05     8  10   0      0            1   ! Picninc
output 2 1   1 300 1
prtbeam
begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
;
Structure   2 60  402.5 402.5   -111.7
title
*** ORNL April 26,2001 Design*** .DTL. Tank 1
ForceReadDTL
DTL 1  -60  -45.0  1.13  0.00410   3.80  0   0.  3.  -3.
   3.5  5     5      11     0.    1.25  0.  0   0.   0
    1   1     2      0      0     -25   0   0   0    0
; shift the ends for smooth longitudinal: phases at the end of cell!
phaselaw  1 3  58  60  -30.4361  -32.8243  -35.2124

change 14 2.49 3700.0 101.1 3700.
change 16 3700 1


; 12/2/99 J.Billen (New DTL design for FFODDO lattice)
; Include this file in the PARMILA input file.
; No correction to shunt impedance Z for coupling slots.
; Shunt impedance Z reduced by user-supplied factor =  0.8000.
; Geometric beta column not included.
SFDATA
; Bore = 1.25, DTL
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr
  0.070000  0.563010  0.099403  0.572469  0.022447  0.170421  49.8612      1.000000  0.563010  0.000000
  0.072500  0.581612  0.096563  0.566283  0.025463  0.167853  50.4299      1.000000  0.581612  0.000000
  0.075000  0.599051  0.093822  0.560088  0.028186  0.165729  50.9760      1.000000  0.599051  0.000000
  0.077500  0.615369  0.091189  0.553920  0.030637  0.163998  51.4976      1.000000  0.615369  0.000000
  0.080000  0.630698  0.088647  0.547776  0.032845  0.162626  51.9942      1.000000  0.630698  0.000000
  0.082500  0.644995  0.086223  0.541736  0.034826  0.161560  52.4719      1.000000  0.644995  0.000000
  0.085000  0.658356  0.083904  0.535804  0.036602  0.160788  52.9310      1.000000  0.658356  0.000000
  0.087500  0.670415  0.081808  0.530288  0.038194  0.160238  53.3980      1.000000  0.670415  0.000000
  0.090000  0.682070  0.079703  0.524643  0.039624  0.159948  53.8255      1.000000  0.682070  0.000000
  0.092500  0.692965  0.077700  0.519154  0.040905  0.159869  54.2361      1.000000  0.692965  0.000000
  0.095000  0.703141  0.075794  0.513833  0.042052  0.159983  54.6305      1.000000  0.703141  0.000000
  0.097500  0.713137  0.073850  0.508297  0.043068  0.160303  54.9894      1.000000  0.713137  0.000000
  0.100000  0.722067  0.072120  0.503294  0.043986  0.160757  55.3526      1.000000  0.722067  0.000000
  0.105000  0.740646  0.068346  0.491644  0.045578  0.157853  56.0701      1.000000  0.740646  0.000000
  0.110000  0.756748  0.064987  0.480954  0.046806  0.156429  56.7435      1.000000  0.756748  0.000000
  0.115000  0.770679  0.062011  0.471253  0.047753  0.156250  57.3793      1.000000  0.770679  0.000000
  0.120000  0.782850  0.059350  0.462490  0.048490  0.157125  57.8700      1.000000  0.782850  0.000000
  0.125000  0.793343  0.057036  0.454743  0.049088  0.158742  58.3995      1.000000  0.793343  0.000000
  0.130000  0.802303  0.055025  0.447951  0.049549  0.161141  58.8976      1.000000  0.802303  0.000000 -1

change 14 2.49 3700.0 101.1 3700.
change 16 3700 1

linout 1

elimit 50
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            1    ! Scheff
scheff  0.05  0.05     8   10   0      0            1    ! Picninc
start 1
stop 60
output 2 1  1 300 1
prtbeam
begin


;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  3  0,   402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** BTW tank 1-2
Transport
Bore 2.5
;quad L, Ra, outputflag, B, errorflag
drift 0 1.5 0 4
quad  1.75     0    0 -37.1e2   0
drift 5.817596 1.5  0   4
quad  1.75     0    0   0.e2   0

;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            3    ! Scheff
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
output 2 1   1 300 1
prtbeam
begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure   4 48  402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** .DTL. Tank 2
ForceReadDTL
DTL 1  -48  -26.797  3.052  0.000313   3.61  0  0. 3. -3.
        3.5 5 6 11 0.    1.25  0. 0. 0. 0
        1 1 0 0 0        -25     0 0 0 0

change 14 2.49 3700.0 101.1 3700.
change 16 3700 1

; shift the ends for smooth longitudinal
phaselaw  1 3   0  3  -37.1935  -33.4030  -29.6125  -26.7696
phaselaw  1 3  46 48  -27.3863  -29.7726  -32.1588


; 12/2/99 J.Billen (New DTL design for FFODDO lattice)
; Include this file in the PARMILA input file.
; No correction to shunt impedance Z for coupling slots.
; Shunt impedance Z reduced by user-supplied factor =  0.8000.
; Geometric beta column not included.
SFDATA
; Bore = 1.25, DTL
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr
  0.120000  0.778991  0.060317  0.466523  0.048559  0.162287  57.8122      1.000000  0.778991  0.000000
  0.130000  0.799509  0.055733  0.451016  0.049631  0.164713  58.8334      1.000000  0.799509  0.000000
  0.140000  0.815385  0.052086  0.438488  0.050309  0.168953  59.6421      1.000000  0.815385  0.000000
  0.150000  0.827281  0.049300  0.428965  0.050768  0.174660  60.3401      1.000000  0.827281  0.000000
  0.160000  0.836354  0.047149  0.421776  0.051121  0.180845  60.9217      1.000000  0.836354  0.000000
  0.170000  0.844978  0.045035  0.414221  0.051281  0.184731  61.4827      1.000000  0.844978  0.000000
  0.180000  0.851726  0.043367  0.408444  0.051424  0.189056  61.9558      1.000000  0.851726  0.000000
  0.190000  0.856870  0.042095  0.404318  0.051586  0.193688  62.3813      1.000000  0.856870  0.000000
  0.200000  0.860650  0.041170  0.401695  0.051790  0.198577  62.7566      1.000000  0.860650  0.000000
  0.210000  0.863282  0.040542  0.400410  0.052046  0.203654  63.1073      1.000000  0.863282  0.000000
  0.220000  0.864918  0.040178  0.400336  0.052360  0.208887  63.4450      1.000000  0.864918  0.000000 -1

change 14 2.49 3700.0 101.1 3700.
change 16 3700 1

linout 1

elimit 50.
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            1    ! Scheff
scheff  0.05  0.05     8   10   0      0            1    ! Picninc
start 1
stop 48
output 2 1  1 300 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  5  0,   402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** BTW tank 2-3
Transport
Bore 2.5

;quad L, Ra, outputflag, B, errorflag
drift 0 1.5 0 4
quad   1.75      0    0  0.e2  1
drift 12.467341  1.5  0  4
quad   1.75      0    0 37.071e2  1

;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            3    ! Scheff
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
output 2 1  1 300 1
prtbeam
begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure   6 34  402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** .DTL. Tank 3
ForceReadDTL
DTL 1  -34  -25.  3.61164   0.000   3.61164   0  0. 3. -3.
        3.5 5 1 11 0.    1.25  0. 0  0. 0
        1 1 0 0 0        -25     0 0 0 0

change 14 2.49 3700.0 101.1 3700.
change 16 3700 1

; shift the ends for smooth longitudinal
phaselaw  1 3  0  3  -36.1458  -32.4306  -28.7153  -25.9288
phaselaw  1 3 32 34  -27.7575  -30.5150  -33.2725

; 10/8/99 J.Billen (New DTL design for FFODDO lattice)
; Include this file in the PARMILA input file.
; No correction to shunt impedance Z for coupling slots.
; Shunt impedance Z reduced by user-supplied factor =  0.8000.
; Geometric beta column not included.
SFDATA
; Bore = 1.25, DTL
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr
  0.210000  0.825803  0.051008  0.452184  0.055768  0.250346  61.2875      1.000000  0.825803  0.000000
  0.220000  0.826469  0.050956  0.453806  0.056277  0.255203  61.5794      1.000000  0.826469  0.000000
  0.230000  0.826263  0.051129  0.456330  0.056805  0.260158  61.8343      1.000000  0.826263  0.000000
  0.240000  0.825315  0.051496  0.459632  0.057352  0.265172  62.0547      1.000000  0.825315  0.000000
  0.250000  0.823673  0.052047  0.463638  0.057912  0.270252  62.2506      1.000000  0.823673  0.000000
  0.260000  0.821433  0.052756  0.468247  0.058485  0.275363  62.4257      1.000000  0.821433  0.000000
  0.270000  0.818635  0.053613  0.473405  0.059066  0.280513  62.5754      1.000000  0.818635  0.000000
  0.280000  0.815357  0.054598  0.479017  0.059651  0.285679  62.7118      1.000000  0.815357  0.000000
  0.290000  0.811630  0.055703  0.485024  0.060234  0.290843  62.8402      1.000000  0.811630  0.000000
  0.310000  0.802991  0.058225  0.498012  0.061381  0.301168  63.0706      1.000000  0.802991  0.000000
  0.320000  0.797112  0.059905  0.505959  0.061964  0.307613  63.1470      1.000000  0.797112  0.000000
  0.330000  0.790838  0.061687  0.514142  0.062521  0.314077  63.2166      1.000000  0.790838  0.000000
  0.340000  0.784224  0.063554  0.522480  0.063045  0.320524  63.2886      1.000000  0.784224  0.000000
  0.350000  0.777262  0.065508  0.530966  0.063532  0.326973  63.3575      1.000000  0.777262  0.000000
  0.360000  0.769965  0.067545  0.539575  0.063979  0.333426  63.4276      1.000000  0.769965  0.000000
  0.370000  0.762344  0.069659  0.548279  0.064380  0.339887  63.5009      1.000000  0.762344  0.000000
  0.380000  0.754380  0.071855  0.557084  0.064733  0.346370  63.5815      1.000000  0.754380  0.000000
  0.390000  0.746056  0.074136  0.565989  0.065034  0.352899  63.6736      1.000000  0.746056  0.000000
  0.400000  0.737336  0.076511  0.575012  0.065278  0.359507  63.7706      1.000000  0.737336  0.000000
  0.410000  0.728150  0.078995  0.584197  0.065460  0.366239  63.8834      1.000000  0.728150  0.000000 -1

change 14 2.49 3700.0 101.1 3700.
change 16 3720 1

linout 1
elimit 50.
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            1    ! Scheff
scheff  0.05  0.05     8   10   0      0            1    ! Picninc
start 1
stop 34
output 2 1  1 300 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  7  0,   402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** BTW tank 3-4
Transport
Bore 2.5
;quad L, Ra, outputflag,   B, errorflag
drift 0 1.5 0 4
quad    1.75      0    1 -37.031e2 1
drift  17.406907  1.5  1   4
quad    1.75      0    1   0.e2 1

;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            3    ! Scheff
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
output 2 1   1 300 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure   8 28    402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** .DTL. Tank 4
ForceReadDTL
DTL 1  -28 -25.0  3.6293  0.000    3.6293   0  0. 3. -3.
        3.5 5 6 11 0.    1.25 0. 0  0. 0
        1 1 0 0 0        -25     0 0 0 0

change 14 2.49 3720.0 101.1 3700.

; shift the ends for smooth longitudinal
phaselaw  1 3  0  3  -35.0407  -31.6938  -28.3469  -25.8367
phaselaw  1 3  26 28 -27.7467  -30.4940  -33.2409

; 10/8/99 J.Billen (New DTL design for FFODDO lattice)
; Include this file in the PARMILA input file.
; No correction to shunt impedance Z for coupling slots.
; Shunt impedance Z reduced by user-supplied factor =  0.8000.
; Geometric beta column not included.
SFDATA
; Bore = 1.25, DTL
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr
  0.210000  0.825803  0.051008  0.452184  0.055768  0.250346  61.2875      1.000000  0.825803  0.000000
  0.220000  0.826469  0.050956  0.453806  0.056277  0.255203  61.5794      1.000000  0.826469  0.000000
  0.230000  0.826263  0.051129  0.456330  0.056805  0.260158  61.8343      1.000000  0.826263  0.000000
  0.240000  0.825315  0.051496  0.459632  0.057352  0.265172  62.0547      1.000000  0.825315  0.000000
  0.250000  0.823673  0.052047  0.463638  0.057912  0.270252  62.2506      1.000000  0.823673  0.000000
  0.260000  0.821433  0.052756  0.468247  0.058485  0.275363  62.4257      1.000000  0.821433  0.000000
  0.270000  0.818635  0.053613  0.473405  0.059066  0.280513  62.5754      1.000000  0.818635  0.000000
  0.280000  0.815357  0.054598  0.479017  0.059651  0.285679  62.7118      1.000000  0.815357  0.000000
  0.290000  0.811630  0.055703  0.485024  0.060234  0.290843  62.8402      1.000000  0.811630  0.000000
  0.310000  0.802991  0.058225  0.498012  0.061381  0.301168  63.0706      1.000000  0.802991  0.000000
  0.320000  0.797112  0.059905  0.505959  0.061964  0.307613  63.1470      1.000000  0.797112  0.000000
  0.330000  0.790838  0.061687  0.514142  0.062521  0.314077  63.2166      1.000000  0.790838  0.000000
  0.340000  0.784224  0.063554  0.522480  0.063045  0.320524  63.2886      1.000000  0.784224  0.000000
  0.350000  0.777262  0.065508  0.530966  0.063532  0.326973  63.3575      1.000000  0.777262  0.000000
  0.360000  0.769965  0.067545  0.539575  0.063979  0.333426  63.4276      1.000000  0.769965  0.000000
  0.370000  0.762344  0.069659  0.548279  0.064380  0.339887  63.5009      1.000000  0.762344  0.000000
  0.380000  0.754380  0.071855  0.557084  0.064733  0.346370  63.5815      1.000000  0.754380  0.000000
  0.390000  0.746056  0.074136  0.565989  0.065034  0.352899  63.6736      1.000000  0.746056  0.000000
  0.400000  0.737336  0.076511  0.575012  0.065278  0.359507  63.7706      1.000000  0.737336  0.000000
  0.410000  0.728150  0.078995  0.584197  0.065460  0.366239  63.8834      1.000000  0.728150  0.000000 -1

;change 14 2.49 3700.0 101.1 2600.
change 14 2.49 3700.0 101.1 3700.
change 16 3720 1

linout 1
elimit 50.
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            1    ! Scheff
scheff  0.05  0.05     8   10   0      0            1    ! Picninc
start 1
stop 28
output 2 1  1 300 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  9  0,   402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** BTW tank 4-5
Transport
Bore 2.5

;quad   L,  Ra, outputflag, B, errorflag
drift 0 1.5 0 4
quad    1.75      0     1 -36.999e2 1
drift  21.117754  1.5   1   4
quad    1.75      1     1 -36.993e2 1

;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            3    ! Scheff
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
output 2 1   1 300 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure   10 24    402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** .DTL. Tank 5
;ForceReadDTL
DTL 1  -24 -25.0  3.658  0.000    3.658  0.  0. 3. -3.
        3.5 5 5 11 0.    1.25 0. 0. 0. 0
        1 1 0 0 0        -25

change 14 2.49 3700.0 101.1 3700.
change 16 3700 1

; shift the ends for smooth longitudinal
phaselaw  1 3  0  3  -34.9851  -31.6567  -28.3284  -25.8321
phaselaw  1 3  22 24 -28.3706  -31.7412  -35.1117


; 10/8/99 J.Billen (New DTL design for FFODDO lattice)
; Include this file in the PARMILA input file.
; No correction to shunt impedance Z for coupling slots.
; Shunt impedance Z reduced by user-supplied factor =  0.8000.
; Geometric beta column not included.
SFDATA
; Bore = 1.25, DTL
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr
  0.210000  0.825803  0.051008  0.452184  0.055768  0.250346  61.2875      1.000000  0.825803  0.000000
  0.220000  0.826469  0.050956  0.453806  0.056277  0.255203  61.5794      1.000000  0.826469  0.000000
  0.230000  0.826263  0.051129  0.456330  0.056805  0.260158  61.8343      1.000000  0.826263  0.000000
  0.240000  0.825315  0.051496  0.459632  0.057352  0.265172  62.0547      1.000000  0.825315  0.000000
  0.250000  0.823673  0.052047  0.463638  0.057912  0.270252  62.2506      1.000000  0.823673  0.000000
  0.260000  0.821433  0.052756  0.468247  0.058485  0.275363  62.4257      1.000000  0.821433  0.000000
  0.270000  0.818635  0.053613  0.473405  0.059066  0.280513  62.5754      1.000000  0.818635  0.000000
  0.280000  0.815357  0.054598  0.479017  0.059651  0.285679  62.7118      1.000000  0.815357  0.000000
  0.290000  0.811630  0.055703  0.485024  0.060234  0.290843  62.8402      1.000000  0.811630  0.000000
  0.310000  0.802991  0.058225  0.498012  0.061381  0.301168  63.0706      1.000000  0.802991  0.000000
  0.320000  0.797112  0.059905  0.505959  0.061964  0.307613  63.1470      1.000000  0.797112  0.000000
  0.330000  0.790838  0.061687  0.514142  0.062521  0.314077  63.2166      1.000000  0.790838  0.000000
  0.340000  0.784224  0.063554  0.522480  0.063045  0.320524  63.2886      1.000000  0.784224  0.000000
  0.350000  0.777262  0.065508  0.530966  0.063532  0.326973  63.3575      1.000000  0.777262  0.000000
  0.360000  0.769965  0.067545  0.539575  0.063979  0.333426  63.4276      1.000000  0.769965  0.000000
  0.370000  0.762344  0.069659  0.548279  0.064380  0.339887  63.5009      1.000000  0.762344  0.000000
  0.380000  0.754380  0.071855  0.557084  0.064733  0.346370  63.5815      1.000000  0.754380  0.000000
  0.390000  0.746056  0.074136  0.565989  0.065034  0.352899  63.6736      1.000000  0.746056  0.000000
  0.400000  0.737336  0.076511  0.575012  0.065278  0.359507  63.7706      1.000000  0.737336  0.000000
  0.410000  0.728150  0.078995  0.584197  0.065460  0.366239  63.8834      1.000000  0.728150  0.000000 -1

change 14 2.49 3700.0 101.1 3700.

linout 1
elimit 50.
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            1    ! Scheff
scheff  0.05  0.05     8   10   0      0            1    ! Picninc
start 1
stop 24
output 2 1  2 300 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  11  0,   402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** BTW tank 5-6
Transport
Bore 2.5

;quad   L,    Ra, outputflag, B, errorflag
drift 0 1.5 0 4
quad    1.75     0    1 -36.952e2  1
drift  24.034962 1.5  1   4
quad    1.75     0    1   0.e+2 0

;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            3    ! Scheff
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
output 2 1   1 300 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure   12 22    402.5 402.5  0.
title
*** ORNL April 26,2001 Design*** .DTL. Tank 6
;ForceReadDTL
DTL 1  -22 -25.0   3.6085   -0.000    3.6085  0.  0. 3. -3.
        3.5 5 6 11 0.    1.25 0. 0. 0. 0
        1 0 0 0 0        -25

phaselaw 1 1   1  22    -27  -36
change 14 2.49 3700.0 101.1 3700.
change 16 3700 1
change 2 22 0.

; shift the ends for smooth longitudinal
phaselaw  1 3  0  3  -37.1006  -34.0194  -30.9382  -28.6273
phaselaw  1 3  19  22  -37.4660  -40.6460  -44.8860  -49.1260

; 10/8/99 J.Billen (New DTL design for FFODDO lattice)
; Include this file in the PARMILA input file.
; No correction to shunt impedance Z for coupling slots.
; Shunt impedance Z reduced by user-supplied factor =  0.8000.
; Geometric beta column not included.
SFDATA
; Bore = 1.25, DTL
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr
  0.210000  0.825803  0.051008  0.452184  0.055768  0.250346  61.2875      1.000000  0.825803  0.000000
  0.220000  0.826469  0.050956  0.453806  0.056277  0.255203  61.5794      1.000000  0.826469  0.000000
  0.230000  0.826263  0.051129  0.456330  0.056805  0.260158  61.8343      1.000000  0.826263  0.000000
  0.240000  0.825315  0.051496  0.459632  0.057352  0.265172  62.0547      1.000000  0.825315  0.000000
  0.250000  0.823673  0.052047  0.463638  0.057912  0.270252  62.2506      1.000000  0.823673  0.000000
  0.260000  0.821433  0.052756  0.468247  0.058485  0.275363  62.4257      1.000000  0.821433  0.000000
  0.270000  0.818635  0.053613  0.473405  0.059066  0.280513  62.5754      1.000000  0.818635  0.000000
  0.280000  0.815357  0.054598  0.479017  0.059651  0.285679  62.7118      1.000000  0.815357  0.000000
  0.290000  0.811630  0.055703  0.485024  0.060234  0.290843  62.8402      1.000000  0.811630  0.000000
  0.310000  0.802991  0.058225  0.498012  0.061381  0.301168  63.0706      1.000000  0.802991  0.000000
  0.320000  0.797112  0.059905  0.505959  0.061964  0.307613  63.1470      1.000000  0.797112  0.000000
  0.330000  0.790838  0.061687  0.514142  0.062521  0.314077  63.2166      1.000000  0.790838  0.000000
  0.340000  0.784224  0.063554  0.522480  0.063045  0.320524  63.2886      1.000000  0.784224  0.000000
  0.350000  0.777262  0.065508  0.530966  0.063532  0.326973  63.3575      1.000000  0.777262  0.000000
  0.360000  0.769965  0.067545  0.539575  0.063979  0.333426  63.4276      1.000000  0.769965  0.000000
  0.370000  0.762344  0.069659  0.548279  0.064380  0.339887  63.5009      1.000000  0.762344  0.000000
  0.380000  0.754380  0.071855  0.557084  0.064733  0.346370  63.5815      1.000000  0.754380  0.000000
  0.390000  0.746056  0.074136  0.565989  0.065034  0.352899  63.6736      1.000000  0.746056  0.000000
  0.400000  0.737336  0.076511  0.575012  0.065278  0.359507  63.7706      1.000000  0.737336  0.000000
  0.410000  0.728150  0.078995  0.584197  0.065460  0.366239  63.8834      1.000000  0.728150  0.000000 -1

change 14 2.49 3700.0 101.1 3700.
change 16 3700 1
change 2 22 0.
linout 1
elimit 50.
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            1    ! Scheff
scheff  0.05  0.05     8   10   0      0            1    ! Picninc
start 1
stop 22
output 2 1  1 300 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  13  0,   805. 805.
title
*** ORNL April 26,2001 Design*** BTW tank 6-CCL
Transport
Bore 1.5

;quad L, Ra, outputflag, B, errorflag
drift  0.      1.25  1   4
drift  2.699285 1.25  1   4
drift  8.53    1.25  1   4
quad   4.0     0     1 -32.612121e2 1
quad   4.0     0     1 -32.612121e2 1
drift  5.5631 1.25  1   4
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  0.05  0.05    20    40  0      0            3    ! Scheff
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
output 2 1   1 300 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
;Structure  14 224   805. 805. 18.0817
Structure  14 224   805. 805. 19.2048
title
*** ORNL April 26,2001 Design*** .CCL1a. ***

;ccl Wf,  Phid,  E0,  Ncav,Nbeta  B,  Lquad Quad     Quad     Quad  Lattice,Dds,Polarity
;                          lamb             Sequence Location entry Type
;The Quad length increased. The default B field should be set. Inherited value is not correct.
ccl 145.0 -30.  3.06  8   2.5    2667.0  8.  1010     1         0    1
Bore  1.5
SymDesign 8 1
;QuadLocs (ExitCavface to Quad Entry face (cm))
Extquad 14 92.6    2.667e+3 139.7 2.020e+3  ! for CCDTL
Extquad 10 0 -32.612121e+2 8. 1
Extquad 10 8  31.367575e+2 8. 1
Extquad 10 16 -32.507826e+2 8. 1
Extquad 10 24  29.669232e+2 8. 1
QuadLocs 8.97164
QuadLoc 0 8.97164     ! preceding quad positioning
QuadLoc 8 18.64384 16 14.32914 24 11.20664 32 9.27432 40 8.52999 48 8.97164
SetBetaRamp  1        0       0      0    0
E0Ramp 0. 3.772 0.08875

; Include this file in the PARMILA input file.
; Shunt impedance Z corresponds to coupling =  5.0000%
; No other reduction in shunt impedance Z applied.
; Geometric beta column not included.
SFDATAQ
; Bore = 1.5, external CCL
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr
  0.400000  0.881357  0.035161  0.364339  0.047953  0.126063  43.6543      1.000000  0.881357  0.016578
  0.410000  0.883145  0.034698  0.362649  0.047945  0.129492  44.6338      0.999999  0.883145  0.015313
  0.420000  0.884830  0.034261  0.361084  0.047941  0.132834  45.5973      1.000000  0.884830  0.014142
  0.430000  0.886299  0.033881  0.359843  0.047962  0.136114  46.5253      0.999998  0.886299  0.013091
  0.440000  0.887568  0.033556  0.358868  0.048001  0.139297  47.4295      0.999999  0.887568  0.012152
  0.450000  0.888666  0.033276  0.358158  0.048059  0.142409  48.2989      0.999999  0.888666  0.011284
  0.460000  0.889557  0.033054  0.357741  0.048141  0.145486  49.1487      1.000001  0.889557  0.010512
  0.470000  0.890420  0.032838  0.357387  0.048226  0.148395  49.9562      1.000001  0.890420  0.009754
  0.480000  0.891072  0.032680  0.357327  0.048334  0.151286  50.7522      1.000000  0.891072  0.009104
  0.490000  0.891574  0.032564  0.357496  0.048461  0.154136  51.5243      1.000000  0.891575  0.008509
  0.510000  0.892301  0.032409  0.358264  0.048750  0.159611  52.9874      0.999999  0.892301  0.007455
  0.520000  0.892509  0.032375  0.358887  0.048915  0.162262  53.6829      1.000001  0.892509  0.006977
  0.530000  0.892610  0.032370  0.359657  0.049090  0.164868  54.3607      0.999999  0.892610  0.006559
  0.540000  0.892644  0.032385  0.360538  0.049275  0.167399  55.0125      1.000000  0.892644  0.006150
  0.550000  0.892575  0.032428  0.361561  0.049472  0.169901  55.6480      1.000001  0.892575  0.005792
  0.560000  0.892444  0.032488  0.362684  0.049676  0.172341  56.2593      1.000001  0.892444  0.005445 -1
SFDATAE
; Bore = 1.5, internal CCL
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr
  0.400000  0.887244  0.033823  0.360501  0.048387  0.126062  42.2686      1.000000  0.887244  0.000000
  0.410000  0.888527  0.033466  0.359065  0.048322  0.129491  43.2778      1.000001  0.888527  0.000000
  0.420000  0.889664  0.033152  0.357883  0.048283  0.132833  44.2496      0.999999  0.889664  0.000000
  0.430000  0.890661  0.032878  0.356950  0.048268  0.136113  45.1913      1.000001  0.890661  0.000000
  0.440000  0.891521  0.032644  0.356252  0.048277  0.139295  46.1037      1.000000  0.891521  0.000000
  0.450000  0.892241  0.032450  0.355802  0.048311  0.142409  46.9885      0.999999  0.892241  0.000000
  0.460000  0.892844  0.032291  0.355557  0.048366  0.145485  47.8444      0.999999  0.892844  0.000000
  0.470000  0.893378  0.032151  0.355380  0.048425  0.148393  48.6777      1.000000  0.893378  0.000000
  0.480000  0.893767  0.032054  0.355514  0.048517  0.151283  49.4742      0.999999  0.893767  0.000000
  0.490000  0.894063  0.031983  0.355808  0.048626  0.154134  50.2512      1.000000  0.894063  0.000000
  0.500000  0.894268  0.031939  0.356257  0.048750  0.156903  50.9968      1.000001  0.894268  0.000000
  0.510000  0.894372  0.031925  0.356878  0.048890  0.159610  51.7210      1.000000  0.894372  0.000000
  0.520000  0.894414  0.031928  0.357591  0.049040  0.162261  52.4256      1.000001  0.894414  0.000000
  0.530000  0.894364  0.031958  0.358476  0.049207  0.164867  53.1032      0.999999  0.894364  0.000000
  0.540000  0.894257  0.032005  0.359442  0.049381  0.167397  53.7550      1.000001  0.894257  0.000000
  0.550000  0.894067  0.032076  0.360554  0.049569  0.169900  54.3901      0.999999  0.894067  0.000000
  0.560000  0.893821  0.032163  0.361743  0.049765  0.172340  55.0068      0.999999  0.893821  0.000000 -1

;QuadLocs (ExitCavface to Quad Entry face (cm))
QuadLocs 8.97164
QuadLoc 0 8.97164     ! preceding quad positioning
QuadLoc 1 18.64384 2 14.32914 3 11.20664 4 9.27432 5 8.52999 6 8.97164

Extquad 14 92.6    2.667e+3 139.7 2.020e+3  ! for CCDTL
Extquad 10 0 -32.612121e+2 8. 1
Extquad 10 8  31.367575e+2 8. 1
Extquad 10 16 -32.507826e+2 8. 1
Extquad 10 24  29.669232e+2 8. 1
linout
elimit   2.0
;scheff 0.15  0.20  20  40 0 0 3
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
start  1
stop 224
prtbeam
output 2 1  8 3000 1

begin

;------------------------------------------------------------
;ramp down the phase from -30 deg to -25 deg
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  15 160   805. 805.
title
*** ORNL April 26,2001 Design*** .CCL1b.

;ccl Wf,  Phid,  E0,  Ncav,Nbeta  B,  Lquad Quad     Quad     Quad  Lattice,Dds,Polarity
;                          lamb             Sequence Location entry Type
;The Quad length increased. The default B field should be set. Inherited value is not correct.
ccl 190.0 -30.  3.772 8   2.5    2020.0  8.  1010     1         1    1
Bore  1.5
SymDesign 8 1
Extquad 14 139.6539 2.020e+3 183.2480 1.5e+3
Extquad 10 160  1.e-12 8. 1
Extquad 10 144  -13.881e+2 8. 1   !new
Extquad 10 152  +9.057e+2 8. 1    !new
QuadLocs 8.97164
QuadLoc 0 8.97164     ! preceding quad positioning
SetBetaRamp  1        0       0      0    0
PhaseRamp 0. -25. +0.15789

; 6/13/00 data
; Include this file in the PARMILA input file.
; Shunt impedance Z corresponds to coupling =  5.0000%
; No other reduction in shunt impedance Z applied.
; Geometric beta column not included.
SFDATAQ
; Bore = 1.5, external CCL
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr
  0.400000  0.881357  0.035161  0.364339  0.047953  0.126063  43.6543      1.000000  0.881357  0.016578
  0.410000  0.883145  0.034698  0.362649  0.047945  0.129492  44.6338      0.999999  0.883145  0.015313
  0.420000  0.884830  0.034261  0.361084  0.047941  0.132834  45.5973      1.000000  0.884830  0.014142
  0.430000  0.886299  0.033881  0.359843  0.047962  0.136114  46.5253      0.999998  0.886299  0.013091
  0.440000  0.887568  0.033556  0.358868  0.048001  0.139297  47.4295      0.999999  0.887568  0.012152
  0.450000  0.888666  0.033276  0.358158  0.048059  0.142409  48.2989      0.999999  0.888666  0.011284
  0.460000  0.889557  0.033054  0.357741  0.048141  0.145486  49.1487      1.000001  0.889557  0.010512
  0.470000  0.890420  0.032838  0.357387  0.048226  0.148395  49.9562      1.000001  0.890420  0.009754
  0.480000  0.891072  0.032680  0.357327  0.048334  0.151286  50.7522      1.000000  0.891072  0.009104
  0.490000  0.891574  0.032564  0.357496  0.048461  0.154136  51.5243      1.000000  0.891575  0.008509
  0.510000  0.892301  0.032409  0.358264  0.048750  0.159611  52.9874      0.999999  0.892301  0.007455
  0.520000  0.892509  0.032375  0.358887  0.048915  0.162262  53.6829      1.000001  0.892509  0.006977
  0.530000  0.892610  0.032370  0.359657  0.049090  0.164868  54.3607      0.999999  0.892610  0.006559
  0.540000  0.892644  0.032385  0.360538  0.049275  0.167399  55.0125      1.000000  0.892644  0.006150
  0.550000  0.892575  0.032428  0.361561  0.049472  0.169901  55.6480      1.000001  0.892575  0.005792
  0.560000  0.892444  0.032488  0.362684  0.049676  0.172341  56.2593      1.000001  0.892444  0.005445 -1
SFDATAE
; Bore = 1.5, internal CCL
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr
  0.400000  0.887244  0.033823  0.360501  0.048387  0.126062  42.2686      1.000000  0.887244  0.000000
  0.410000  0.888527  0.033466  0.359065  0.048322  0.129491  43.2778      1.000001  0.888527  0.000000
  0.420000  0.889664  0.033152  0.357883  0.048283  0.132833  44.2496      0.999999  0.889664  0.000000
  0.430000  0.890661  0.032878  0.356950  0.048268  0.136113  45.1913      1.000001  0.890661  0.000000
  0.440000  0.891521  0.032644  0.356252  0.048277  0.139295  46.1037      1.000000  0.891521  0.000000
  0.450000  0.892241  0.032450  0.355802  0.048311  0.142409  46.9885      0.999999  0.892241  0.000000
  0.460000  0.892844  0.032291  0.355557  0.048366  0.145485  47.8444      0.999999  0.892844  0.000000
  0.470000  0.893378  0.032151  0.355380  0.048425  0.148393  48.6777      1.000000  0.893378  0.000000
  0.480000  0.893767  0.032054  0.355514  0.048517  0.151283  49.4742      0.999999  0.893767  0.000000
  0.490000  0.894063  0.031983  0.355808  0.048626  0.154134  50.2512      1.000000  0.894063  0.000000
  0.500000  0.894268  0.031939  0.356257  0.048750  0.156903  50.9968      1.000001  0.894268  0.000000
  0.510000  0.894372  0.031925  0.356878  0.048890  0.159610  51.7210      1.000000  0.894372  0.000000
  0.520000  0.894414  0.031928  0.357591  0.049040  0.162261  52.4256      1.000001  0.894414  0.000000
  0.530000  0.894364  0.031958  0.358476  0.049207  0.164867  53.1032      0.999999  0.894364  0.000000
  0.540000  0.894257  0.032005  0.359442  0.049381  0.167397  53.7550      1.000001  0.894257  0.000000
  0.550000  0.894067  0.032076  0.360554  0.049569  0.169900  54.3901      0.999999  0.894067  0.000000
  0.560000  0.893821  0.032163  0.361743  0.049765  0.172340  55.0068      0.999999  0.893821  0.000000 -1


;QuadLocs (ExitCavface to Quad Entry face (cm))
QuadLocs 8.97164
QuadLoc 0 8.97164     ! preceding quad positioning
Extquad 14 139.6539 2.020e+3 183.2480 1.5e+3
Extquad 10 160  1.e-12 8. 1
Extquad 10 144  -13.881e+2 8. 1   !new
Extquad 10 152  +9.057e+2 8. 1    !new

linout
elimit   2.0
;scheff 0.15  0.20  20  40 0 0 3
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
start  1
stop 160
prtbeam
output 2 1  1 3000 1

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  16  0   805. 805.
title
*** ORNL April 26,2001 Design*** BTW CCL-SC2
Transport
Bore 2.13     ! According to Lucie 10/16/00 1.68" ID

;quad   L,        Ra,outputflag, B,  errorflag
drift   0.         5.0  1   4
drift  70.0284     5.0  1   8
quad    8.0        0    1 -24.294e+2  1    
drift  42.         5.0  1   8
quad    8.0        0    1 +23.495e+2  1    
drift  94.       5.0    1   8
drift  58.6976   5.0    1   8

;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  .05     .05     20   40   0      0            3
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
output 2 1   1 3000 1
prtbeam

begin

;------------------------------------------------------------
; --SC2 1a--
; the some (2) cavities phase and amp will be specified manually to match to CCL
;        ID Nlst f0  fsh deltaphi
Structure 17 126   805. 805. 5.7864
title
*** ORNL April 26,2001 Design*** SC2 1a ***
;    Wf    Phi Nlo Ncel LaTyp  Qentry BetS     DWseg  Nsq    Dseg  Dqs
SC2 342.0  -20.5 7    6    2      0    0.5550  3.3633  3     51.00 175.420123
                                       0.5790  3.3633  3     51.00 175.420123
                                       0.5929  3.3633  3     51.00 175.420123
                                       0.6078  3.3633  3     51.00 175.420123
                                       0.6223  3.3633  3     51.00 175.420123
                                       0.6361  3.3633  3     51.00 175.420123
                                       0.6497  3.3633  3     51.00 175.420123
AutoStructPhase
;         The betg=0.61, 0.81 cavities with correct E0
ConstESuper 14.933872

QuadDoublet 4.490e2  40.0 50.0 0   2
            4.481e2  40.0 50.0 0   2
            4.472e2  40.0 50.0 0   2
            4.463e2  40.0 50.0 0   2
            4.454e2  40.0 50.0 0   2
            4.445e2  40.0 50.0 0   2
            4.436e2  40.0 50.0 0   2


Bore  4.0

SetBetaRamp  0        0       0      0    0


;SetSuperCav Seg# SpecPhase SpecE0
;                   (deg)    (MV/m)

SetSuperCav    1 -20.5       14.9339
SetSuperCav    2 -18.167     14.71925
SetSuperCav    3 -20.5       14.9339
SetSuperCav    4 -20.5       14.9339
SetSuperCav    5 -9.023      14.16350
SetSuperCav    6 -20.5       14.9339

ExtDquad 10  18 -4.4376e+2 40.0 1 50.0
ExtDquad 10  36 -4.6001e+2 40.0 1 50.0
ExtDquad 10  54 -4.7172e+2 40.0 1 50.0
ExtDquad 10  72 -4.7933e+2 40.0 1 50.0
ExtDquad 10  90 -4.835e+2 40.0 1 50.0
ExtDquad 10 108 -4.8523e+2 40.0 1 50.0
ExtDquad 10 126 -4.8523e+2 40.0 1 50.0

; 11/27/00 J. Billen
; Include this file in the PARMILA input file.
; No correction to shunt impedance Z for coupling slots.
; No other reduction in shunt impedance Z applied.
; Geometric beta column included for superconducting linac.
; Geometric beta = 0.61008.
SFDATAQ
; Created by SFO for problem file D:\PROJECTS\NSNS\SC\BETA.61\INFN\AVG\6C61E1.AF
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr     Beta(g)
  0.400000  0.287263  0.110554  0.591548  0.024328  0.079069 0.973360E+07  1.214877  0.052442  0.658340  0.610075
  0.410000  0.304506  0.111668  0.596891  0.020454  0.077141 0.973360E+07  1.214877  0.059560  0.707658  0.610075
  0.420000  0.321477  0.112458  0.601356  0.016663  0.075304 0.973360E+07  1.214877  0.060299  0.752982  0.610075
  0.430000  0.338144  0.112961  0.605025  0.012972  0.073553 0.973360E+07  1.214877  0.053378  0.794798  0.610075
  0.440000  0.354482  0.113210  0.607952  0.009395  0.071881 0.973360E+07  1.214877  0.038101  0.833517  0.610075
  0.450000  0.370471  0.113234  0.610201  0.005942  0.070284 0.973360E+07  1.214877  0.014342  0.869481  0.610075
  0.460000  0.386099  0.113058  0.611860  0.002612  0.068756 0.973360E+07  1.214877  0.017510  0.902985  0.610075
  0.470000  0.401354  0.112707  0.612969  0.000587  0.067293 0.973360E+07  1.214877  0.056647  0.934277  0.610075
  0.480000  0.416231  0.112201  0.613552  0.003651  0.065891 0.973360E+07  1.214877  0.101946  0.963573  0.610075
  0.490000  0.430728  0.111558  0.613706  0.006588  0.064546 0.973360E+07  1.214877  0.152076  0.991060  0.610075
  0.500000  0.444841  0.110797  0.613405  0.009387  0.063255 0.973360E+07  1.214877  0.205603  1.016901  0.610075
  0.510000  0.458574  0.109931  0.612759  0.012063  0.062015 0.973360E+07  1.214877  0.261068  1.041238  0.610075
  0.520000  0.471930  0.108975  0.611732  0.014606  0.060822 0.973360E+07  1.214877  0.317063  1.064198  0.610075
  0.530000  0.484911  0.107941  0.610423  0.017029  0.059675 0.973360E+07  1.214877  0.372280  1.085892  0.610075
  0.540000  0.497524  0.106839  0.608801  0.019327  0.058570 0.973360E+07  1.214877  0.425549  1.106418  0.610075
  0.550000  0.509776  0.105680  0.606936  0.021511  0.057505 0.973360E+07  1.214877  0.475864  1.125866  0.610075
  0.560000  0.521672  0.104472  0.604844  0.023582  0.056478 0.973360E+07  1.214877  0.522386  1.144315  0.610075
  0.570000  0.533222  0.103223  0.602520  0.025541  0.055487 0.973360E+07  1.214877  0.564454  1.161836  0.610075
  0.580000  0.544432  0.101941  0.600024  0.027397  0.054530 0.973360E+07  1.214877  0.601572  1.178495  0.610075
  0.590000  0.555311  0.100631  0.597358  0.029152  0.053606 0.973360E+07  1.214877  0.633402  1.194350  0.610075
  0.600000  0.565868  0.099300  0.594522  0.030807  0.052713 0.973360E+07  1.214877  0.659748  1.209454  0.610075
  0.610000  0.576111  0.097952  0.591561  0.032371  0.051849 0.973360E+07  1.214877  0.680540  1.223855  0.610075
  0.620000  0.586050  0.096592  0.588489  0.033848  0.051012 0.973360E+07  1.214877  0.695816  1.237599  0.610075
  0.630000  0.595692  0.095224  0.585286  0.035236  0.050203 0.973360E+07  1.214877  0.705706  1.250727  0.610075
  0.640000  0.605047  0.093853  0.581993  0.036543  0.049418 0.973360E+07  1.214877  0.710415  1.263275  0.610075
  0.650000  0.614123  0.092479  0.578622  0.037774  0.048658 0.973360E+07  1.214877  0.710205  1.275278  0.610075
  0.660000  0.622928  0.091108  0.575185  0.038932  0.047921 0.973360E+07  1.214877  0.705387  1.286769  0.610075
  0.670000  0.631472  0.089741  0.571668  0.040017  0.047205 0.973360E+07  1.214877  0.696300  1.297775  0.610075
  0.680000  0.639763  0.088381  0.568095  0.041035  0.046511 0.973360E+07  1.214877  0.683308  1.308326  0.610075
  0.690000  0.647808  0.087029  0.564481  0.041990  0.045837 0.973360E+07  1.214877  0.666783  1.318445  0.610075
  0.700000  0.655615  0.085687  0.560832  0.042884  0.045182 0.973360E+07  1.214877  0.647103  1.328157  0.610075
  0.710000  0.663193  0.084357  0.557155  0.043721  0.044546 0.973360E+07  1.214877  0.624643  1.337484  0.610075
  0.720000  0.670548  0.083041  0.553438  0.044501  0.043927 0.973360E+07  1.214877  0.599768  1.346445  0.610075
  0.730000  0.677689  0.081738  0.549699  0.045229  0.043326 0.973360E+07  1.214877  0.572831  1.355059  0.610075
  0.740000  0.684621  0.080450  0.545949  0.045907  0.042740 0.973360E+07  1.214877  0.544170  1.363345  0.610075
  0.750000  0.691353  0.079179  0.542191  0.046539  0.042170 0.973360E+07  1.214877  0.514103  1.371320  0.610075
  0.760000  0.697890  0.077924  0.538430  0.047126  0.041615 0.973360E+07  1.214877  0.482928  1.378997  0.610075
  0.770000  0.704239  0.076687  0.534669  0.047671  0.041075 0.973360E+07  1.214877  0.450924  1.386393  0.610075
  0.780000  0.710407  0.075467  0.530902  0.048174  0.040548 0.973360E+07  1.214877  0.418346  1.393521  0.610075
  0.790000  0.716400  0.074265  0.527136  0.048639  0.040035 0.973360E+07  1.214877  0.385429  1.400393  0.610075
  0.800000  0.722222  0.073082  0.523381  0.049067  0.039535 0.973360E+07  1.214877  0.352384  1.407023  0.610075 -1
SFDATAE
; Created by SFO for problem file D:\PROJECTS\NSNS\SC\BETA.61\INFN\AVG\6C61E1.AF
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr     Beta(g)
  0.400000  0.531624  0.119044  0.651673  0.035810  0.071525 0.973360E+07  0.892541  0.052442  0.000000  0.610075
  0.410000  0.549842  0.115788  0.645879  0.038829  0.069781 0.973360E+07  0.892541  0.059560  0.000000  0.610075
  0.420000  0.567130  0.112571  0.639793  0.041526  0.068119 0.973360E+07  0.892541  0.060299  0.000000  0.610075
  0.430000  0.583540  0.109407  0.633473  0.043933  0.066535 0.973360E+07  0.892541  0.053378  0.000000  0.610075
  0.440000  0.599119  0.106306  0.626970  0.046076  0.065023 0.973360E+07  0.892541  0.038101  0.000000  0.610075
  0.450000  0.613916  0.103275  0.620327  0.047980  0.063578 0.973360E+07  0.892541  0.014342  0.000000  0.610075
  0.460000  0.627974  0.100321  0.613583  0.049668  0.062196 0.973360E+07  0.892541  0.017510  0.000000  0.610075
  0.470000  0.641335  0.097446  0.606769  0.051158  0.060873 0.973360E+07  0.892541  0.056647  0.000000  0.610075
  0.480000  0.654041  0.094654  0.599913  0.052472  0.059605 0.973360E+07  0.892541  0.101946  0.000000  0.610075
  0.490000  0.666128  0.091946  0.593039  0.053624  0.058388 0.973360E+07  0.892541  0.152076  0.000000  0.610075
  0.500000  0.677632  0.089321  0.586167  0.054629  0.057220 0.973360E+07  0.892541  0.205603  0.000000  0.610075
  0.510000  0.688588  0.086781  0.579315  0.055503  0.056098 0.973360E+07  0.892541  0.261068  0.000000  0.610075
  0.520000  0.699025  0.084324  0.572496  0.056257  0.055020 0.973360E+07  0.892541  0.317063  0.000000  0.610075
  0.530000  0.708975  0.081949  0.565723  0.056902  0.053981 0.973360E+07  0.892541  0.372280  0.000000  0.610075
  0.540000  0.718464  0.079654  0.559008  0.057448  0.052982 0.973360E+07  0.892541  0.425549  0.000000  0.610075
  0.550000  0.727520  0.077437  0.552357  0.057906  0.052019 0.973360E+07  0.892541  0.475864  0.000000  0.610075
  0.560000  0.736165  0.075297  0.545779  0.058283  0.051090 0.973360E+07  0.892541  0.522386  0.000000  0.610075
  0.570000  0.744424  0.073232  0.539280  0.058586  0.050193 0.973360E+07  0.892541  0.564454  0.000000  0.610075
  0.580000  0.752317  0.071238  0.532865  0.058823  0.049328 0.973360E+07  0.892541  0.601572  0.000000  0.610075
  0.590000  0.759865  0.069313  0.526537  0.059000  0.048492 0.973360E+07  0.892541  0.633402  0.000000  0.610075
  0.600000  0.767086  0.067457  0.520299  0.059123  0.047684 0.973360E+07  0.892541  0.659748  0.000000  0.610075
  0.610000  0.773998  0.065664  0.514155  0.059196  0.046902 0.973360E+07  0.892541  0.680540  0.000000  0.610075
  0.620000  0.780619  0.063935  0.508105  0.059225  0.046145 0.973360E+07  0.892541  0.695816  0.000000  0.610075
  0.630000  0.786962  0.062266  0.502152  0.059213  0.045413 0.973360E+07  0.892541  0.705706  0.000000  0.610075
  0.640000  0.793043  0.060655  0.496294  0.059165  0.044703 0.973360E+07  0.892541  0.710415  0.000000  0.610075
  0.650000  0.798876  0.059100  0.490535  0.059083  0.044016 0.973360E+07  0.892541  0.710205  0.000000  0.610075
  0.660000  0.804473  0.057599  0.484872  0.058972  0.043349 0.973360E+07  0.892541  0.705387  0.000000  0.610075
  0.670000  0.809847  0.056149  0.479306  0.058834  0.042702 0.973360E+07  0.892541  0.696300  0.000000  0.610075
  0.680000  0.815008  0.054749  0.473837  0.058672  0.042074 0.973360E+07  0.892541  0.683308  0.000000  0.610075
  0.690000  0.819968  0.053396  0.468463  0.058488  0.041464 0.973360E+07  0.892541  0.666783  0.000000  0.610075
  0.700000  0.824736  0.052090  0.463185  0.058285  0.040872 0.973360E+07  0.892541  0.647103  0.000000  0.610075
  0.710000  0.829322  0.050827  0.458000  0.058063  0.040296 0.973360E+07  0.892541  0.624643  0.000000  0.610075
  0.720000  0.833735  0.049607  0.452908  0.057826  0.039736 0.973360E+07  0.892541  0.599768  0.000000  0.610075
  0.730000  0.837983  0.048427  0.447907  0.057575  0.039192 0.973360E+07  0.892541  0.572831  0.000000  0.610075
  0.740000  0.842074  0.047287  0.442996  0.057311  0.038662 0.973360E+07  0.892541  0.544170  0.000000  0.610075
  0.750000  0.846015  0.046183  0.438174  0.057036  0.038147 0.973360E+07  0.892541  0.514103  0.000000  0.610075
  0.760000  0.849814  0.045116  0.433439  0.056751  0.037645 0.973360E+07  0.892541  0.482928  0.000000  0.610075
  0.770000  0.853477  0.044083  0.428790  0.056458  0.037156 0.973360E+07  0.892541  0.450924  0.000000  0.610075
  0.780000  0.857010  0.043084  0.424225  0.056156  0.036680 0.973360E+07  0.892541  0.418346  0.000000  0.610075
  0.790000  0.860420  0.042116  0.419742  0.055848  0.036215 0.973360E+07  0.892541  0.385429  0.000000  0.610075
  0.800000  0.863711  0.041179  0.415341  0.055534  0.035763 0.973360E+07  0.892541  0.352384  0.000000  0.610075 -1

QuadDoublet 4.490e2  40.0 50.0 0   2
            4.481e2  40.0 50.0 0   2
            4.472e2  40.0 50.0 0   2
            4.463e2  40.0 50.0 0   2
            4.454e2  40.0 50.0 0   2
            4.445e2  40.0 50.0 0   2
            4.436e2  40.0 50.0 0   2
ExtDquad 10  18 -4.4376e+2 40.0 1 50.0
ExtDquad 10  36 -4.6001e+2 40.0 1 50.0
ExtDquad 10  54 -4.7172e+2 40.0 1 50.0
ExtDquad 10  72 -4.7933e+2 40.0 1 50.0
ExtDquad 10  90 -4.8355e+2 40.0 1 50.0
ExtDquad 10 108 -4.8523e+2 40.0 1 50.0
ExtDquad 10 126 -4.8523e+2 40.0 1 50.0

linout  1
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff 0.05      0.05   20  40   0        0           3
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
start 1
stop 126
output 2 1  1 3000 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  18  0   805. 805.
title
*** ORNL April 26,2001 Design*** BTW SC2 1a--SC2 1b
Transport
Bore 4.0

;quad L, Ra, outputflag, B, errorflag
drift   0.     5.0  1  4
drift  25.0    5.0  1  8
quad   40.0    0    1 +485.23  1
drift  15.0     5.0  1  8
drift  58.71007 5.0  1  8

;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  .05     .05     20   40   0      0            3
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
output 2 1   1 3000 1
prtbeam

begin

;------------------------------------------------------------
; --SC2 1b--
;        ID Nlst f0  fsh deltaphi

Structure 19 72  805. 805. -54.7697
title
*** ORNL April 26,2001 Design*** SC2 1b ***
;    Wf    Phi Nlo Ncel LaTyp  Qentry BetS     DWseg  Nsq    Dseg  Dqs
SC2 410.0 -22.0 4    6    2      0     0.6000  3.3633  3     51.00 175.420123
                                       0.6840  3.3633  3     51.00 175.420123
                                       0.6940  3.3633  3     51.00 175.420123
                                       0.7040  3.3633  3     51.00 175.420123
AutoStructPhase
ConstESuper 14.933872


SetSuperCav    1 -20.5       14.9339  10
SetSuperCav    11 -21.5      14.9339
SetSuperCav    12 -22.5      14.9339


;            (G/cm)    Lq   dds  pol Qloc
QuadDoublet 4.436e2  40.0 50.0 0   2
            4.436e2  40.0 50.0 0   2
            4.436e2  40.0 50.0 0   2
            4.436e2  40.0 50.0 0   2

ExtDquad 10 18 -4.8433e+2 40.0 1 50.0
ExtDquad 10 36 -4.8306e+2 40.0 1 50.0
ExtDquad 10 54 -4.6790e+2 40.0 1 50.0
ExtDQuad 16 54  4.6569e+2 0
ExtDquad 10 72 -5.3098e+2 40.0 1 50.0
ExtDQuad 16 72  5.2050e+2 0


Bore  4.0
;         delaycmi delaypsi endcmi endpsi endw
SetBetaRamp  0        0       0      0    0

SetSuperCav    12 -23.000     14.933872


; 11/27/00 J. Billen
; Include this file in the PARMILA input file.
; No correction to shunt impedance Z for coupling slots.
; No other reduction in shunt impedance Z applied.
; Geometric beta column included for superconducting linac.
; Geometric beta = 0.61008.
SFDATAQ
; Created by SFO for problem file D:\PROJECTS\NSNS\SC\BETA.61\INFN\AVG\6C61E1.AF
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr     Beta(g)
  0.400000  0.287263  0.110554  0.591548  0.024328  0.079069 0.973360E+07  1.214877  0.052442  0.658340  0.610075
  0.410000  0.304506  0.111668  0.596891  0.020454  0.077141 0.973360E+07  1.214877  0.059560  0.707658  0.610075
  0.420000  0.321477  0.112458  0.601356  0.016663  0.075304 0.973360E+07  1.214877  0.060299  0.752982  0.610075
  0.430000  0.338144  0.112961  0.605025  0.012972  0.073553 0.973360E+07  1.214877  0.053378  0.794798  0.610075
  0.440000  0.354482  0.113210  0.607952  0.009395  0.071881 0.973360E+07  1.214877  0.038101  0.833517  0.610075
  0.450000  0.370471  0.113234  0.610201  0.005942  0.070284 0.973360E+07  1.214877  0.014342  0.869481  0.610075
  0.460000  0.386099  0.113058  0.611860  0.002612  0.068756 0.973360E+07  1.214877  0.017510  0.902985  0.610075
  0.470000  0.401354  0.112707  0.612969  0.000587  0.067293 0.973360E+07  1.214877  0.056647  0.934277  0.610075
  0.480000  0.416231  0.112201  0.613552  0.003651  0.065891 0.973360E+07  1.214877  0.101946  0.963573  0.610075
  0.490000  0.430728  0.111558  0.613706  0.006588  0.064546 0.973360E+07  1.214877  0.152076  0.991060  0.610075
  0.500000  0.444841  0.110797  0.613405  0.009387  0.063255 0.973360E+07  1.214877  0.205603  1.016901  0.610075
  0.510000  0.458574  0.109931  0.612759  0.012063  0.062015 0.973360E+07  1.214877  0.261068  1.041238  0.610075
  0.520000  0.471930  0.108975  0.611732  0.014606  0.060822 0.973360E+07  1.214877  0.317063  1.064198  0.610075
  0.530000  0.484911  0.107941  0.610423  0.017029  0.059675 0.973360E+07  1.214877  0.372280  1.085892  0.610075
  0.540000  0.497524  0.106839  0.608801  0.019327  0.058570 0.973360E+07  1.214877  0.425549  1.106418  0.610075
  0.550000  0.509776  0.105680  0.606936  0.021511  0.057505 0.973360E+07  1.214877  0.475864  1.125866  0.610075
  0.560000  0.521672  0.104472  0.604844  0.023582  0.056478 0.973360E+07  1.214877  0.522386  1.144315  0.610075
  0.570000  0.533222  0.103223  0.602520  0.025541  0.055487 0.973360E+07  1.214877  0.564454  1.161836  0.610075
  0.580000  0.544432  0.101941  0.600024  0.027397  0.054530 0.973360E+07  1.214877  0.601572  1.178495  0.610075
  0.590000  0.555311  0.100631  0.597358  0.029152  0.053606 0.973360E+07  1.214877  0.633402  1.194350  0.610075
  0.600000  0.565868  0.099300  0.594522  0.030807  0.052713 0.973360E+07  1.214877  0.659748  1.209454  0.610075
  0.610000  0.576111  0.097952  0.591561  0.032371  0.051849 0.973360E+07  1.214877  0.680540  1.223855  0.610075
  0.620000  0.586050  0.096592  0.588489  0.033848  0.051012 0.973360E+07  1.214877  0.695816  1.237599  0.610075
  0.630000  0.595692  0.095224  0.585286  0.035236  0.050203 0.973360E+07  1.214877  0.705706  1.250727  0.610075
  0.640000  0.605047  0.093853  0.581993  0.036543  0.049418 0.973360E+07  1.214877  0.710415  1.263275  0.610075
  0.650000  0.614123  0.092479  0.578622  0.037774  0.048658 0.973360E+07  1.214877  0.710205  1.275278  0.610075
  0.660000  0.622928  0.091108  0.575185  0.038932  0.047921 0.973360E+07  1.214877  0.705387  1.286769  0.610075
  0.670000  0.631472  0.089741  0.571668  0.040017  0.047205 0.973360E+07  1.214877  0.696300  1.297775  0.610075
  0.680000  0.639763  0.088381  0.568095  0.041035  0.046511 0.973360E+07  1.214877  0.683308  1.308326  0.610075
  0.690000  0.647808  0.087029  0.564481  0.041990  0.045837 0.973360E+07  1.214877  0.666783  1.318445  0.610075
  0.700000  0.655615  0.085687  0.560832  0.042884  0.045182 0.973360E+07  1.214877  0.647103  1.328157  0.610075
  0.710000  0.663193  0.084357  0.557155  0.043721  0.044546 0.973360E+07  1.214877  0.624643  1.337484  0.610075
  0.720000  0.670548  0.083041  0.553438  0.044501  0.043927 0.973360E+07  1.214877  0.599768  1.346445  0.610075
  0.730000  0.677689  0.081738  0.549699  0.045229  0.043326 0.973360E+07  1.214877  0.572831  1.355059  0.610075
  0.740000  0.684621  0.080450  0.545949  0.045907  0.042740 0.973360E+07  1.214877  0.544170  1.363345  0.610075
  0.750000  0.691353  0.079179  0.542191  0.046539  0.042170 0.973360E+07  1.214877  0.514103  1.371320  0.610075
  0.760000  0.697890  0.077924  0.538430  0.047126  0.041615 0.973360E+07  1.214877  0.482928  1.378997  0.610075
  0.770000  0.704239  0.076687  0.534669  0.047671  0.041075 0.973360E+07  1.214877  0.450924  1.386393  0.610075
  0.780000  0.710407  0.075467  0.530902  0.048174  0.040548 0.973360E+07  1.214877  0.418346  1.393521  0.610075
  0.790000  0.716400  0.074265  0.527136  0.048639  0.040035 0.973360E+07  1.214877  0.385429  1.400393  0.610075
  0.800000  0.722222  0.073082  0.523381  0.049067  0.039535 0.973360E+07  1.214877  0.352384  1.407023  0.610075 -1
SFDATAE
; Created by SFO for problem file D:\PROJECTS\NSNS\SC\BETA.61\INFN\AVG\6C61E1.AF
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr     Beta(g)
  0.400000  0.531624  0.119044  0.651673  0.035810  0.071525 0.973360E+07  0.892541  0.052442  0.000000  0.610075
  0.410000  0.549842  0.115788  0.645879  0.038829  0.069781 0.973360E+07  0.892541  0.059560  0.000000  0.610075
  0.420000  0.567130  0.112571  0.639793  0.041526  0.068119 0.973360E+07  0.892541  0.060299  0.000000  0.610075
  0.430000  0.583540  0.109407  0.633473  0.043933  0.066535 0.973360E+07  0.892541  0.053378  0.000000  0.610075
  0.440000  0.599119  0.106306  0.626970  0.046076  0.065023 0.973360E+07  0.892541  0.038101  0.000000  0.610075
  0.450000  0.613916  0.103275  0.620327  0.047980  0.063578 0.973360E+07  0.892541  0.014342  0.000000  0.610075
  0.460000  0.627974  0.100321  0.613583  0.049668  0.062196 0.973360E+07  0.892541  0.017510  0.000000  0.610075
  0.470000  0.641335  0.097446  0.606769  0.051158  0.060873 0.973360E+07  0.892541  0.056647  0.000000  0.610075
  0.480000  0.654041  0.094654  0.599913  0.052472  0.059605 0.973360E+07  0.892541  0.101946  0.000000  0.610075
  0.490000  0.666128  0.091946  0.593039  0.053624  0.058388 0.973360E+07  0.892541  0.152076  0.000000  0.610075
  0.500000  0.677632  0.089321  0.586167  0.054629  0.057220 0.973360E+07  0.892541  0.205603  0.000000  0.610075
  0.510000  0.688588  0.086781  0.579315  0.055503  0.056098 0.973360E+07  0.892541  0.261068  0.000000  0.610075
  0.520000  0.699025  0.084324  0.572496  0.056257  0.055020 0.973360E+07  0.892541  0.317063  0.000000  0.610075
  0.530000  0.708975  0.081949  0.565723  0.056902  0.053981 0.973360E+07  0.892541  0.372280  0.000000  0.610075
  0.540000  0.718464  0.079654  0.559008  0.057448  0.052982 0.973360E+07  0.892541  0.425549  0.000000  0.610075
  0.550000  0.727520  0.077437  0.552357  0.057906  0.052019 0.973360E+07  0.892541  0.475864  0.000000  0.610075
  0.560000  0.736165  0.075297  0.545779  0.058283  0.051090 0.973360E+07  0.892541  0.522386  0.000000  0.610075
  0.570000  0.744424  0.073232  0.539280  0.058586  0.050193 0.973360E+07  0.892541  0.564454  0.000000  0.610075
  0.580000  0.752317  0.071238  0.532865  0.058823  0.049328 0.973360E+07  0.892541  0.601572  0.000000  0.610075
  0.590000  0.759865  0.069313  0.526537  0.059000  0.048492 0.973360E+07  0.892541  0.633402  0.000000  0.610075
  0.600000  0.767086  0.067457  0.520299  0.059123  0.047684 0.973360E+07  0.892541  0.659748  0.000000  0.610075
  0.610000  0.773998  0.065664  0.514155  0.059196  0.046902 0.973360E+07  0.892541  0.680540  0.000000  0.610075
  0.620000  0.780619  0.063935  0.508105  0.059225  0.046145 0.973360E+07  0.892541  0.695816  0.000000  0.610075
  0.630000  0.786962  0.062266  0.502152  0.059213  0.045413 0.973360E+07  0.892541  0.705706  0.000000  0.610075
  0.640000  0.793043  0.060655  0.496294  0.059165  0.044703 0.973360E+07  0.892541  0.710415  0.000000  0.610075
  0.650000  0.798876  0.059100  0.490535  0.059083  0.044016 0.973360E+07  0.892541  0.710205  0.000000  0.610075
  0.660000  0.804473  0.057599  0.484872  0.058972  0.043349 0.973360E+07  0.892541  0.705387  0.000000  0.610075
  0.670000  0.809847  0.056149  0.479306  0.058834  0.042702 0.973360E+07  0.892541  0.696300  0.000000  0.610075
  0.680000  0.815008  0.054749  0.473837  0.058672  0.042074 0.973360E+07  0.892541  0.683308  0.000000  0.610075
  0.690000  0.819968  0.053396  0.468463  0.058488  0.041464 0.973360E+07  0.892541  0.666783  0.000000  0.610075
  0.700000  0.824736  0.052090  0.463185  0.058285  0.040872 0.973360E+07  0.892541  0.647103  0.000000  0.610075
  0.710000  0.829322  0.050827  0.458000  0.058063  0.040296 0.973360E+07  0.892541  0.624643  0.000000  0.610075
  0.720000  0.833735  0.049607  0.452908  0.057826  0.039736 0.973360E+07  0.892541  0.599768  0.000000  0.610075
  0.730000  0.837983  0.048427  0.447907  0.057575  0.039192 0.973360E+07  0.892541  0.572831  0.000000  0.610075
  0.740000  0.842074  0.047287  0.442996  0.057311  0.038662 0.973360E+07  0.892541  0.544170  0.000000  0.610075
  0.750000  0.846015  0.046183  0.438174  0.057036  0.038147 0.973360E+07  0.892541  0.514103  0.000000  0.610075
  0.760000  0.849814  0.045116  0.433439  0.056751  0.037645 0.973360E+07  0.892541  0.482928  0.000000  0.610075
  0.770000  0.853477  0.044083  0.428790  0.056458  0.037156 0.973360E+07  0.892541  0.450924  0.000000  0.610075
  0.780000  0.857010  0.043084  0.424225  0.056156  0.036680 0.973360E+07  0.892541  0.418346  0.000000  0.610075
  0.790000  0.860420  0.042116  0.419742  0.055848  0.036215 0.973360E+07  0.892541  0.385429  0.000000  0.610075
  0.800000  0.863711  0.041179  0.415341  0.055534  0.035763 0.973360E+07  0.892541  0.352384  0.000000  0.610075 -1

QuadDoublet 4.436e2  40.0 50.0 0   2
            4.436e2  40.0 50.0 0   2
            4.436e2  40.0 50.0 0   2
            4.436e2  40.0 50.0 0   2

ExtDquad 10 18 -4.8433e+2 40.0 1 50.0
ExtDquad 10 36 -4.8306e+2 40.0 1 50.0
ExtDquad 10 54 -4.6790e+2 40.0 1 50.0
ExtDQuad 16 54  4.6569e+2 0
ExtDquad 10 72 -5.3098e+2 40.0 1 50.0
ExtDQuad 16 72  5.2050e+2 0

linout  1
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff 0.05      0.05   20  40   0        0           3
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
start 1
stop 72
output 2 1  1 3000 1
prtbeam

begin

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  20  100   805. 805.
title
*** ORNL April 26,2001 Design*** BTW Sc2 1b-SC2 2a
Transport -20
Bore 4.0

drift   0.     5.0   0    4
drift  25.      5.0   0    6
quad   40.0    0     0 +5.2050e+2 1
drift  15.0     5.0   0    6
drift  61.844565 5.0   0   10 ! Changed because ORNL wants 160 cm in between uniformly

;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  .05     .05     20   40   0      0            3
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
output 2 1   1 3000 1
prtbeam

begin

;------------------------------------------------------------


; --SC2 2a--
;        ID Nlst f0  fsh  deltaphi
Structure 21 360 805. 805. -19.9955
title
*** ORNL April 26,2001 Design*** SC2 2a ***
;    Wf    Phi  Nlo Ncel LaTyp  Qentry BetS    DWseg   Nsq Dseg  Dqs
SC2 1020 -19.5 1    6    2      0     0.60   3.3633  4  47.67024 188.34865

AutoStructPhase

ConstESuper 22.807


;         delaycmi delaypsi endcmi endpsi endw
SetBetaRamp  0        0       0      0    0


;SetSuperCav Seg# SpecPhase SpecE0
;                   (deg)    (MV/m)
SetSuperCav    1  -9.17        21.875
SetSuperCav    4  -15.        22.260

SetSuperCav     49   -0.001      0.00001
SetSuperCav     50   -0.001      0.00001
SetSuperCav     51   -0.001      0.00001
SetSuperCav     52   -0.001      0.00001
SetSuperCav     53   -0.001      0.00001
SetSuperCav     54   -0.001      0.00001
SetSuperCav     55   -0.001      0.00001
SetSuperCav     56   -0.001      0.00001
SetSuperCav     57   -0.001      0.00001
SetSuperCav     58   -0.001      0.00001
SetSuperCav     59   -0.001      0.00001
SetSuperCav     60   -0.001      0.00001

;            (G/cm) Lq   dds  pol Qloc
QuadDoublet  542.    40.0 50.0  0   2
Bore 4.0

ExtDquad 10  24 -5.5790e+2 40.0 1 50.0
ExtDquad 10  48 -5.7865e+2 40.0 1 50.0
ExtDquad 10  72 -5.9430e+2 40.0 1 50.0
ExtDquad 10  96 -6.0505e+2 40.0 1 50.0
ExtDquad 10 120 -6.1144e+2 40.0 1 50.0
ExtDquad 10 144 -6.1441e+2 40.0 1 50.0
ExtDquad 10 168 -6.1474e+2 40.0 1 50.0
ExtDquad 10 192 -6.1319e+2 40.0 1 50.0
ExtDquad 10 216 -6.1040e+2 40.0 1 50.0
ExtDquad 10 240 -6.0685e+2 40.0 1 50.0
ExtDquad 10 264 -6.0291e+2 40.0 1 50.0
ExtDquad 10 288 -6.0291e+2 40.0 1 50.0
ExtDquad 10 312 -6.0291e+2 40.0 1 50.0
ExtDquad 10 336 -6.0291e+2 40.0 1 50.0
ExtDquad 10 360 -6.0291e+2 40.0 1 50.0


; 11/27/00 J. Billen
; Include this file in the PARMILA input file.
; No correction to shunt impedance Z for coupling slots.
; No other reduction in shunt impedance Z applied.
; Geometric beta column included for superconducting linac.
; Geometric beta = 0.81093.
SFDATAQ
; Created by SFO for problem file D:\PROJECTS\NSNS\SC\BETA.81\INFN\AVG\6C81E1.AF
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr     Beta(g)
  0.600000  0.409788  0.117490  0.626462  0.003558  0.061622 0.153192E+08  1.165348  0.015447  0.973434  0.810928
  0.610000  0.421957  0.116844  0.626481  0.006133  0.060612 0.153192E+08  1.165348  0.010901  0.998619  0.810928
  0.620000  0.433858  0.116116  0.626188  0.008604  0.059634 0.153192E+08  1.165348  0.041723  1.022465  0.810928
  0.630000  0.445492  0.115314  0.625648  0.010981  0.058687 0.153192E+08  1.165348  0.076466  1.045074  0.810928
  0.640000  0.456860  0.114447  0.624847  0.013258  0.057770 0.153192E+08  1.165348  0.114500  1.066542  0.810928
  0.650000  0.467965  0.113523  0.623827  0.015442  0.056882 0.153192E+08  1.165348  0.155151  1.086950  0.810928
  0.660000  0.478808  0.112548  0.622599  0.017534  0.056020 0.153192E+08  1.165348  0.197722  1.106375  0.810928
  0.670000  0.489395  0.111529  0.621168  0.019535  0.055184 0.153192E+08  1.165348  0.241519  1.124884  0.810928
  0.680000  0.499728  0.110472  0.619572  0.021450  0.054372 0.153192E+08  1.165348  0.285872  1.142538  0.810928
  0.690000  0.509811  0.109381  0.617805  0.023279  0.053584 0.153192E+08  1.165348  0.330141  1.159394  0.810928
  0.700000  0.519650  0.108262  0.615885  0.025025  0.052819 0.153192E+08  1.165348  0.373739  1.175502  0.810928
  0.710000  0.529248  0.107119  0.613836  0.026694  0.052075 0.153192E+08  1.165348  0.416129  1.190910  0.810928
  0.720000  0.538611  0.105957  0.611659  0.028285  0.051352 0.153192E+08  1.165348  0.456838  1.205660  0.810928
  0.730000  0.547743  0.104777  0.609358  0.029800  0.050648 0.153192E+08  1.165348  0.495453  1.219790  0.810928
  0.740000  0.556649  0.103585  0.606959  0.031245  0.049964 0.153192E+08  1.165348  0.531626  1.233338  0.810928
  0.750000  0.565335  0.102383  0.604470  0.032622  0.049297 0.153192E+08  1.165348  0.565073  1.246336  0.810928
  0.760000  0.573805  0.101173  0.601884  0.033930  0.048649 0.153192E+08  1.165348  0.595566  1.258816  0.810928
  0.770000  0.582065  0.099958  0.599217  0.035175  0.048017 0.153192E+08  1.165348  0.622938  1.270805  0.810928
  0.780000  0.590120  0.098740  0.596485  0.036359  0.047401 0.153192E+08  1.165348  0.647072  1.282331  0.810928
  0.790000  0.597975  0.097522  0.593692  0.037484  0.046801 0.153192E+08  1.165348  0.667900  1.293417  0.810928
  0.800000  0.605634  0.096305  0.590838  0.038553  0.046216 0.153192E+08  1.165348  0.685398  1.304087  0.810928
  0.810000  0.613104  0.095091  0.587926  0.039565  0.045646 0.153192E+08  1.165348  0.699579  1.314362  0.810928
  0.820000  0.620388  0.093882  0.584971  0.040526  0.045089 0.153192E+08  1.165348  0.710491  1.324262  0.810928
  0.830000  0.627493  0.092677  0.581979  0.041437  0.044546 0.153192E+08  1.165348  0.718211  1.333805  0.810928
  0.840000  0.634421  0.091480  0.578953  0.042301  0.044016 0.153192E+08  1.165348  0.722838  1.343009  0.810928
  0.850000  0.641180  0.090290  0.575896  0.043118  0.043498 0.153192E+08  1.165348  0.724495  1.351891  0.810928
  0.860000  0.647772  0.089110  0.572804  0.043890  0.042992 0.153192E+08  1.165348  0.723319  1.360465  0.810928
  0.870000  0.654202  0.087939  0.569692  0.044620  0.042498 0.153192E+08  1.165348  0.719461  1.368745  0.810928
  0.880000  0.660475  0.086778  0.566562  0.045309  0.042015 0.153192E+08  1.165348  0.713079  1.376746  0.810928
  0.890000  0.666595  0.085629  0.563419  0.045960  0.041543 0.153192E+08  1.165348  0.704342  1.384480  0.810928
  0.900000  0.672567  0.084491  0.560264  0.046574  0.041081 0.153192E+08  1.165348  0.693419  1.391959  0.810928
  0.910000  0.678394  0.083365  0.557101  0.047153  0.040630 0.153192E+08  1.165348  0.680483  1.399194  0.810928
  0.920000  0.684080  0.082253  0.553924  0.047697  0.040188 0.153192E+08  1.165348  0.665706  1.406196  0.810928
  0.930000  0.689630  0.081152  0.550744  0.048208  0.039756 0.153192E+08  1.165348  0.649260  1.412975  0.810928
  0.940000  0.695047  0.080066  0.547562  0.048688  0.039333 0.153192E+08  1.165348  0.631311  1.419541  0.810928
  0.950000  0.700335  0.078992  0.544382  0.049138  0.038919 0.153192E+08  1.165348  0.612024  1.425902  0.810928
  0.960000  0.705497  0.077933  0.541205  0.049560  0.038514 0.153192E+08  1.165348  0.591557  1.432067  0.810928
  0.970000  0.710537  0.076887  0.538034  0.049955  0.038117 0.153192E+08  1.165348  0.570061  1.438044  0.810928
  0.980000  0.715459  0.075856  0.534869  0.050324  0.037728 0.153192E+08  1.165348  0.547682  1.443841  0.810928
  0.990000  0.720265  0.074839  0.531712  0.050669  0.037347 0.153192E+08  1.165348  0.524558  1.449465  0.810928 -1
SFDATAE
; Created by SFO for problem file D:\PROJECTS\NSNS\SC\BETA.81\INFN\AVG\6C81E1.AF
;   Beta       T         TP        S         SP       g/bl      Z            E/E0      Tave     dZctr     Beta(g)
  0.600000  0.610055  0.104261  0.623682  0.047911  0.057100 0.153192E+08  0.917319  0.015447  0.000000  0.810928
  0.610000  0.620767  0.102020  0.618637  0.049222  0.056164 0.153192E+08  0.917319  0.010901  0.000000  0.810928
  0.620000  0.631078  0.099823  0.613546  0.050417  0.055258 0.153192E+08  0.917319  0.041723  0.000000  0.810928
  0.630000  0.641005  0.097672  0.608422  0.051506  0.054381 0.153192E+08  0.917319  0.076466  0.000000  0.810928
  0.640000  0.650565  0.095569  0.603276  0.052496  0.053531 0.153192E+08  0.917319  0.114500  0.000000  0.810928
  0.650000  0.659775  0.093512  0.598118  0.053394  0.052708 0.153192E+08  0.917319  0.155151  0.000000  0.810928
  0.660000  0.668649  0.091503  0.592956  0.054206  0.051909 0.153192E+08  0.917319  0.197722  0.000000  0.810928
  0.670000  0.677202  0.089542  0.587799  0.054939  0.051134 0.153192E+08  0.917319  0.241519  0.000000  0.810928
  0.680000  0.685448  0.087628  0.582654  0.055599  0.050382 0.153192E+08  0.917319  0.285872  0.000000  0.810928
  0.690000  0.693400  0.085761  0.577527  0.056189  0.049652 0.153192E+08  0.917319  0.330141  0.000000  0.810928
  0.700000  0.701071  0.083941  0.572423  0.056717  0.048943 0.153192E+08  0.917319  0.373739  0.000000  0.810928
  0.710000  0.708473  0.082167  0.567347  0.057185  0.048254 0.153192E+08  0.917319  0.416129  0.000000  0.810928
  0.720000  0.715617  0.080437  0.562303  0.057598  0.047583 0.153192E+08  0.917319  0.456838  0.000000  0.810928
  0.730000  0.722515  0.078753  0.557295  0.057961  0.046932 0.153192E+08  0.917319  0.495453  0.000000  0.810928
  0.740000  0.729177  0.077112  0.552326  0.058276  0.046297 0.153192E+08  0.917319  0.531626  0.000000  0.810928
  0.750000  0.735613  0.075513  0.547400  0.058547  0.045680 0.153192E+08  0.917319  0.565073  0.000000  0.810928
  0.760000  0.741833  0.073956  0.542517  0.058777  0.045079 0.153192E+08  0.917319  0.595566  0.000000  0.810928
  0.770000  0.747845  0.072440  0.537682  0.058970  0.044494 0.153192E+08  0.917319  0.622938  0.000000  0.810928
  0.780000  0.753658  0.070964  0.532894  0.059127  0.043923 0.153192E+08  0.917319  0.647072  0.000000  0.810928
  0.790000  0.759280  0.069527  0.528156  0.059252  0.043367 0.153192E+08  0.917319  0.667900  0.000000  0.810928
  0.800000  0.764720  0.068127  0.523469  0.059346  0.042825 0.153192E+08  0.917319  0.685398  0.000000  0.810928
  0.810000  0.769984  0.066765  0.518835  0.059412  0.042296 0.153192E+08  0.917319  0.699579  0.000000  0.810928
  0.820000  0.775080  0.065438  0.514252  0.059451  0.041781 0.153192E+08  0.917319  0.710491  0.000000  0.810928
  0.830000  0.780015  0.064146  0.509724  0.059467  0.041277 0.153192E+08  0.917319  0.718211  0.000000  0.810928
  0.840000  0.784794  0.062888  0.505249  0.059460  0.040786 0.153192E+08  0.917319  0.722838  0.000000  0.810928
  0.850000  0.789425  0.061663  0.500829  0.059432  0.040306 0.153192E+08  0.917319  0.724495  0.000000  0.810928
  0.860000  0.793912  0.060470  0.496463  0.059384  0.039837 0.153192E+08  0.917319  0.723319  0.000000  0.810928
  0.870000  0.798262  0.059308  0.492152  0.059319  0.039379 0.153192E+08  0.917319  0.719461  0.000000  0.810928
  0.880000  0.802480  0.058176  0.487895  0.059237  0.038932 0.153192E+08  0.917319  0.713079  0.000000  0.810928
  0.890000  0.806572  0.057073  0.483692  0.059140  0.038494 0.153192E+08  0.917319  0.704342  0.000000  0.810928
  0.900000  0.810541  0.055999  0.479545  0.059028  0.038067 0.153192E+08  0.917319  0.693419  0.000000  0.810928
  0.910000  0.814392  0.054953  0.475451  0.058903  0.037648 0.153192E+08  0.917319  0.680483  0.000000  0.810928
  0.920000  0.818130  0.053933  0.471410  0.058766  0.037239 0.153192E+08  0.917319  0.665706  0.000000  0.810928
  0.930000  0.821760  0.052940  0.467423  0.058618  0.036839 0.153192E+08  0.917319  0.649260  0.000000  0.810928
  0.940000  0.825285  0.051971  0.463490  0.058459  0.036447 0.153192E+08  0.917319  0.631311  0.000000  0.810928
  0.950000  0.828709  0.051027  0.459608  0.058291  0.036063 0.153192E+08  0.917319  0.612024  0.000000  0.810928
  0.960000  0.832036  0.050107  0.455779  0.058114  0.035688 0.153192E+08  0.917319  0.591557  0.000000  0.810928
  0.970000  0.835269  0.049210  0.452001  0.057929  0.035320 0.153192E+08  0.917319  0.570061  0.000000  0.810928
  0.980000  0.838412  0.048335  0.448274  0.057736  0.034959 0.153192E+08  0.917319  0.547682  0.000000  0.810928
  0.990000  0.841468  0.047482  0.444597  0.057536  0.034606 0.153192E+08  0.917319  0.524558  0.000000  0.810928 -1

ExtDquad 10  24 -5.5790e+2 40.0 1 50.0
ExtDquad 10  48 -5.7865e+2 40.0 1 50.0
ExtDquad 10  72 -5.9430e+2 40.0 1 50.0
ExtDquad 10  96 -6.0505e+2 40.0 1 50.0
ExtDquad 10 120 -6.1144e+2 40.0 1 50.0
ExtDquad 10 144 -6.1441e+2 40.0 1 50.0
ExtDquad 10 168 -6.1474e+2 40.0 1 50.0
ExtDquad 10 192 -6.1319e+2 40.0 1 50.0
ExtDquad 10 216 -6.1040e+2 40.0 1 50.0
ExtDquad 10 240 -6.0685e+2 40.0 1 50.0
ExtDquad 10 264 -6.0291e+2 40.0 1 50.0
ExtDquad 10 288 -6.0291e+2 40.0 1 50.0
ExtDquad 10 312 -6.0291e+2 40.0 1 50.0
ExtDquad 10 336 -6.0291e+2 40.0 1 50.0
ExtDquad 10 360 -6.0291e+2 40.0 1 50.0

linout  1
;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff 0.05      0.05   20  40   0        0           3
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
start 1
stop 360
prtbeam
output 2 1  1 3000 1

begin
end

;------------------------------------------------------------
;Structure id,Nlast,F0,Fsf,deltaphi
Structure  22  0   805. 805.  -144.5293  ! this brings to -90 deg for ref. design
title
*** ORNL Aug. 24,2001 HEBT design for 38 mA After SC2-2a.***
Transport -90.
Bore 4.0
OldRectangle
MPoles  0 500 1.4   3   0.02e-2     -60  4  0.01e-2   -45  5  0.02e-2    -36.  6  0.52e-2 0. 10 0.22e-2 0
;quad L, Ra, outputflag, B, errorflag
drift    0.       5.0   1    1
drift   25.0      5.0   1    3
quad    40.0      5     1   +602.9     1  1
drift   15.0      5.0   1    4
;1st
drift  629.1      5.0   1  100                    !  (5)*
drift   15.0      5.0   1    4
quad    40.0      5     1   -602.9     1  1
drift   50.       5.0   1    5
quad    40.0      5     1   +602.9     1  1
drift   15.0      5.0   1    4                    ! (10)*
;2nd
drift  629.1      5.0   1  100
drift   15.0      5.0   1    4
quad    40.0      5     1   -602.9     1  1
drift   50.       5.0   1    5
quad    40.0      5     1   +602.9     1  1       ! (15)*
drift   15.0      5.0   1    4
;3rd
drift  629.1      5.0   1  100
drift   15.0      5.0   1    4
quad    40.0      5     1   -602.9     1  1
drift   50.       5.0   1    5                    ! (20)*
quad    40.0      5     1   +602.9     1  1
drift   15.0      5.0   1    4
;4th
drift  629.1      5.0   1  100
drift   15.0      5.0   1    4
;;quad 40.0 5 1 -542.0 1  1
quad    40.0      5     1  -337.32250  1  1       ! (25)*
drift   50.       5.0   1    5
;;quad 40.0 5 1 +542.0 1  1
quad    40.0      5     1   +325.55992 1  1
drift   15.0      5.0   1    4
;5th
drift  629.1      5.0   1  100
drift   15.0      5.0   1    4                    ! (30)*
;;quad 40.0 5 1 -542.0 1  1
quad   40.0       5     1   -360.80700 1  1
drift   50.       5.0   1    5
;;quad 40.0 5 1 +542.0 1  1
quad   40.0       5     1   +429.83600 1  1
drift   15.0      5.0   1    4
;6th
drift  629.1      5.0   1  100                    ! (35)*
drift   15.0      5.0   1    4
;;quad 40.0 5 1 -542.0 1  1
quad    40.0      5     1   -551.98600 1  1
;drift  15.     5.0   1  3

drift   50.       5.    1    3
quad    40.       5.    1     447.03100  1
drift   15.0      5.    1    2                    ! (40)
drift  673.64666  5.    1   67                 !<         >
quad    25.0      6.    1    0.          1     !<         >
quad    25.0      6.    1    418.09270   1     !<         >  Q1
drift  175.00000  6.    1    17                !<         >  include steerer
drift  175.00000  6.    1    17                !<         >
quad    50.0      6.    1   -418.09270   1     !<         >  Q2    (45)
drift  175.00000  6.    1    17                !<         >
drift  175.00000  6.    1    17                !<         >
quad    50.0      6.    1   +418.09270   1     !<         >  Q3
drift  175.00000  6.    1    17                !<         >
drift  175.00000  6.    1    17                !<         >
quad    50.0      6.    1   -418.09270   1     !<         >  Q4
drift   325.00000 6.    1    30                !<         >        (50)
rectangle 0       0     1    6.0   1.3
drift    25.00000 6.    1    3                 !<         >
quad     50.0    20.    1   +418.09270   1     !<         >  Q5
;drift   0.00000   6.    1    1
drift   325.0000  6.    1    30                                   !(55)
rectangle 0       0     1    1.7   6.0
drift    25.0000  6.    1     2
quad    50.0      6.    1   -418.09270   1     !             Q6
;drift   0.00000   6.    1    1
drift   325.0000  6.    1    32                                   !(60)
rectangle 0       0     1    6.0   1.3
drift    25.0000  6.    1    1
quad    50.0      6.    1   +418.09270   1     !             Q7
;drift   0.00000   6.    1    1                                   !(65)
steerer 0         0     1    0.  0.
drift   325.0000  6.    1    32
rectangle 0       0     1    1.7   6.0
drift    25.0000  6.    1    35        !
quad     50.0     6.    1   -358.36000   1     !             Q8   !(70)
steerer 0         0     1    0.  0.
drift   350.0000  6.    1    35
quad     50.0     6.    1    319.61400   1     !             Q9   !(75)
;drift   0.00000   6.    1    1
drift   350.0000  6.    1    35
quad     50.0     6.    1   -297.24100   1     !             Q10
;drift   0.00000   6.    1    1        !
drift   69.67110  6.    1    7                                    !(80)
drift   21.721483 2.4   1    2
;cavity  0         6     1    0.3  805.0 -90. 6 0.5300  0!      Bun --no phase feed forward example
cavity  0         6     1    0.3  805.0 -90. 6 0.5300  1!      Bun --with phase feed forward
drift   43.442967 2.4   1    4
;cavity  0         6     1    0.3  805.0 -90. 6 0.5300  0!      Bun --no phase feed forward example
cavity  0         6     1    0.3  805.0 -90. 6 0.5300  1!      Bun --with phase feed forward
drift   43.442967 2.4   1    4                                    !(85)
;cavity  0         6     1    0.3  805.0 -90. 6 0.5300  0!      Bun --no phase feed forward example
cavity  0         6     1    0.3  805.0 -90. 6 0.5300  1!      Bun --with phase feed forward
drift   43.442967 2.4   1    4
;cavity  0         6     1    0.3  805.0 -90. 6 0.5300  0!      Bun --no phase feed forward example
cavity  0         6     1    0.3  805.0 -90. 6 0.5300  1!      Bun --with phase feed forward
drift   43.442967 2.4   1    4
;cavity  0         6     1    0.3  805.0 -90. 6 0.5300  0!      Bun --no phase feed forward example
cavity  0         6     1    0.3  805.0 -90. 6 0.5300  1!      Bun  !(90) --with phase feed forward
drift   43.442967 2.4   1    1
;cavity  0         6     1    0.3  805.0 -90. 6 0.5300  0!      Bun --no phase feed forward example
cavity  0         6     1    0.3  805.0 -90. 6 0.5300  1!      Bun --with phase feed forward
drift   21.721483 2.4   1    2
drift   69.67110  6.    1    7
quad     25.0     6.    1   278.92100   1             !      Q11  !(95)
quad     25.0    10.    1   214.43500   1
drift   50.0000  10.    1    5
displace 0        0     0    0 0 +180.
bend     0.      4.0    1   11.250 +2716.4  0.  0.  0.45 2.8 !B1
displace 0        0     0    0 0 -180.
drift  100.0000  10.    1    10                                   !(100)
quad     50.0    10.    1   -222.60500  1     !              Q12
drift    50.0000 10.    1    5
displace 0        0     0    0 0 +180.
bend     0.      4.0    1   11.250 +2716.4  0.  0.  0.45 2.8 !B2
displace 0        0     0    0 0 -180.
drift  100.0000  10.    1    10
quad     50.0    10.    1   +214.43500  1      !             Q13   (105)
drift   50.0000  10.    1    3
displace 0        0     0    0 0 +180.
bend     0.      4.0    1   11.250 +2716.4  0.  0.  0.45 2.8 !B1
displace 0        0     0    0 0 -180.
rectangle 0       0     1    1.7  10.                             !(110)
drift  100.0000  10.    1    10
steerer 0         0     1    0.  0.
quad     50.0    10.    1   -222.605 1      !                Q14
drift   50.0000  10.    1    3
displace 0        0     0    0 0 +180.
bend     0.      4.0    1   11.250 +2716.4  0.  0.  0.45 2.8 !B4
displace 0        0     0    0 0 -180.
drift  100.0000  10.    1    10
steerer 0         0     1    0.  0.                               !(115)
quad     50.0    10.    1   +214.43500 1      !              Q15
drift   50.0000  10.    1    3
displace 0        0     0    0 0 +180.
bend     0.      4.0    1   11.250 +2716.4  0.  0.  0.45 2.8 !B1
drift  100.0000  10.    1    10
displace 0        0     0    0 0 -180.
steerer 0         0     1    0.  0.
;drift   0.00000   6.    1    1                                   !(120)
quad     50.0    10.    1   -222.60500 1      !              Q16
;drift   0.00000   6.    1    1
drift   50.0000  10.    1    5
displace 0        0     0    0 0 +180.
bend     0.      4.0    1   11.250 +2716.4  0.  0. 0.45 2.8 ! B2
displace 0        0     0    0 0 -180.
drift  100.0000  10.    1    10                                   !(125)
steerer 0         0     1    0.  0.
quad     50.0    10.    1   +214.43500 1      !              Q17
;drift   0.00000   6.    1    1
drift   50.0000  10.    1    3
displace 0        0     0    0 0 +180.
bend     0.      4.0    1   11.250 +2716.4  0.  0.  0.45 2.8 !B1  !(130)
displace 0        0     0    0 0 -180.
drift  100.0000  10.    1    10
steerer 0         0     1    0.  0.
quad     50.0    10.    1   -222.60500 1      !              Q18
;drift   0.00000   6.    1    1
drift   50.0000  10.    1    3                                  ! (134)*
displace 0        0     0    0 0 +180.
bend     0.      4.0    1   11.250 +2716.4  0.  0.  0.45 2.8 !B2
displace 0        0     0    0 0 -180.
drift  100.0000  10.    1    10
quad     50.0    10.    1   +214.43500 1      !              Q19
steerer 0         0     1    0.  0.
;drift   0.00000   6.    1    1    (id 18 ?)
drift  500.0000   6.    1    50               ! E spreader sits here !(140)
quad     50.0     6.    1   -258.55460 1  !                  Q20
drift  450.0000   6.    1    45
quad     50.0     6.    1   272.37900  1  !                  Q21
steerer 0         0     1    0.  0.
drift  400.0000   6.    1    40            !                         !(145)
quad     50.0     6.    1   -313.88410 1  !                  Q22
steerer 0         0     1    0.  0.
drift  400.0000   6.    1    40
quad     50.0     6.    1   296.02060 1   !                  Q23
steerer 0         0     1    0.  0.                                  !(150)
;drift   0.00000   6.    1    1    (id 19) !
drift  400.0000   6.    1    40
quad     50.0     6.    1   -363.93200    !                  Q24
;drift   0.00000   6.    1    1
steerer 0         0     1    0.  0.                                  !(155)
drift  350.0000   6.    1    35
quad     50.0     6.    1   344.15600 1   !                  Q25NewRing

;drift   0.00000   6.    1    1    (id 19) ! (160)
drift  100.0000   6.    1    10
displace 0        0     0    0 0 +180.
bend     0.      4.0    1   8.7550 +2716.4  0.  0.  0.45 2.8  !BT    !(160)
displace 0        0     0    0 0 -180.
drift  50.0000   6.    1    5
quad     50.0     6.    1   -343.2900    !                  Q26NewRing
steerer 0         0     1    0.  0.
drift  350.0000   6.    1    33
quad     50.0     6.    1   344.156 1   !                  Q27     !(165)NewRing
drift  350.0000   6.    1    33           !   (166)*
quad     50.0     6.    1  -343.2900     !                  Q28NewRing
steerer 0         0     1    0.  0.
;drift   0.00000   6.    1    1    (id 19)
drift  350.0000   6.    1    35                                      !(170)
quad     50.0     6.    1   344.15600 1    !                 Q29NewRing
steerer 0         0     1    0.  0.        !
;drift   0.00000   6.    1    1    (id 19)
drift  300.0000   6.    1    35                                      !(175)
quad     50.0     6.    1   -429.3200     !                 Q30NewRing
;drift   0.00000   6.    1    1    (id 19)
steerer 0         0     1    0.  0.
drift  350.0000   6.    1    7
quad     50.0     6.    1   344.15600 1    !                 Q31NewRing
;drift   0.00000   6.    1    1    (id 19)                           !(180)
steerer 0         0     1    0.  0.
drift  350.0000   6.    1    35
quad     50.0     6.    1   -343.2900     !                 Q32NewRing
;drift   0.00000   6.    1    1    (id 19)
drift  611.50000   6.    1    61                                     !(185)
quad     50.0     6.    1   560.9200 1    ! (186)*          Q33NewRing
;drift   0.00000   6.    1    1    (id 19)
drift  36.0000   6.    1    4
quad     50.0     6.    1   -517.50200     !                 Q34NewRing
drift  125.0000   6.    1    12                                      !(190)
bend     0.      4.0    1   -6.3510000 2763.80  0.  0.  0.45 2.8  !         BS
drift  238.416    6.    1    23
bend     0.      4.0    1   -2.48      1835.30  0.  0.  0.45 2.8
drift   0.00000   6.    1    1

;scheff deltaR. deltaZ, Nr, Nz, Nbunch, Nbetalambda, Remesh
;scheff  .05     .05     20   40   0      0            3
scheff  0.05  0.05     8   10   0      0            3    ! Picninc
output 2 1   1 3000 1
prtbeam

begin
end

; --------This is the end of Deepak HEBT transport line---------