#  bets-2 type config with 15cm space
#  type  matter  c    de maxpath / x0   y0   z0   a  b  c
---------------------------------------------------------
#eq  a 28
#eq  b 28 
#eq  side1x  -1.5            side anti origx
#eq  side1y  -3.0                      origy
#eq  sideth   1.5            side anti thickness
#eq  sidelen  32.5           side anti length  	
#eq  side2x   31.        28+3
#eq  side2y  -1.5
#eq  side3x   29.5
#eq  side3y   31
#eq  side4x   -3
#eq  side4y   29.5

#eq  emth  0.006
#eq  pbth 0.1
#eq  scifith  0.1
#eq  scinth   1

#subd emplate
c    emulsion 0
1 box g5 2 0 0 / 0 0 0 a b emth
2 box Gten 0 0 0 / 0 0 + = = .05
3 box g5 2 0 0 / 0 0 + = = emth
4 box_w sp 0 0 0 / 0 0 0
#end emplate

#subd withpb
1 box Pb 0 0 0 / 0 0 0 a b pbth
2 emplate sp 0 0 0 / 0 0 +
3 box_w sp 0 0 0 / 0 0 0
#end withpb

  
#subd xybelt
1 box scin 0 2 0 / 0 0 0 a b scifith
2 box scin 0 2 0 / 0 0 + a b =
3 box_w sp 0 0 0 / 0 0 0
#end xybelt


#subd fourxy
1 xybelt sp 0 0 0 / 0 0 0
2 xybelt sp 0 0 0 / 0 0 +
3 box_w sp 0 0 0 / 0 0 0
#end fourxy

#subd sideanti
1 box scin 0 2 0 / 0 0 0 sidelen sideth 15
2 box_w sp 0 0 0 / 0 0 0
#end sideanti


c    top trigger to select vertical showers
1 box scin 0 2 0 / 0 0 0 a b scinth
c      space  dummy space 0.001 means no space
2 box sp 0 0 0 / 0 0 + a b 15.
3 sideanti 0 0 0 / side1x side1y =
4 sideanti 0 0 0 / side2x side2y = 0 1 0 -1 0 0
5 sideanti 0 0 0 / side3x side3y = -1 0 0 0 -1 0
6 sideanti 0 0 0 / side4x side4y = 0 -1 0 1 0 0
c    emulsion 0
7 emplate sp 0 0 0 / 0 0 +
c    fiber xy 0 4layes
8 fourxy sp 0 0 0 / 0 0 +
c    emulsion 1-6
9 emplate sp 0 0 0 / 0 0 +
10 withpb sp 0 0 0 / 0 0 +
11 withpb sp 0 0 0 / 0 0 +
12 withpb sp 0 0 0 / 0 0 +
13 withpb sp 0 0 0 / 0 0 +
14 withpb sp 0 0 0 / 0 0 +
c    fiber xy 1 4 layers
15 fourxy sp 0 0 0 / 0 0 +
c    emulsion 7-12
16 emplate sp 0 0 0 / 0 0 +
17 withpb sp 0 0 0 / 0 0 +
18 withpb sp 0 0 0 / 0 0 +
19 withpb sp 0 0 0 / 0 0 +
20 withpb sp 0 0 0 / 0 0 +
21 withpb sp 0 0 0 / 0 0 +
c    fiber xy 2 4layers
22 fourxy sp 0 0 0 / 0 0 +
c     2nd   trigger scinti
23 box scin 0 0 0 / 0 0 + a b scinth
c    emulsion 13
24 withpb sp 0 0 0 / 0 0 +
25 withpb sp 0 0 0 / 0 0 +
c    fiber xy 3
26 xybelt sp 0 0 0 / 0 0 +
27 withpb sp 0 0 0 / 0 0 +
c    fiber xy 3
28 xybelt sp 0 0 0 / 0 0 +
29 withpb sp 0 0 0 / 0 0 +
c    fiber xy 3
30 xybelt sp 0 0 0 / 0 0 +
31 withpb sp 0 0 0 / 0 0 +
c    fiber xy 3
32 xybelt sp 0 0 0 / 0 0 +
33 withpb sp 0 0 0 / 0 0 +
c    fiber xy 3
34 xybelt sp 0 0 0 / 0 0 +
35 withpb sp 0 0 0 / 0 0 +
c    fiber xy 3
36 xybelt sp 0 0 0 / 0 0 +
c    trigger
37 box scin 0 0 0 / 0 0 + a b scinth
38 box_w sp 0 0 0 / -8 -8 0 45 45 0
--------------------------------------------------------

