1 package org.lcsim.geometry.compact.converter.lcdd.util;
2
3
4
5
6
7
8
9 public class BoxDipole extends Field
10 {
11 public BoxDipole(
12 String name,
13 double x,
14 double y,
15 double z,
16 double dx,
17 double dy,
18 double dz,
19 double bx,
20 double by,
21 double bz)
22 {
23 super("box_dipole", name);
24
25 setAttribute("x", Double.toString(x));
26 setAttribute("y", Double.toString(y));
27 setAttribute("z", Double.toString(z));
28 setAttribute("dx", Double.toString(dx));
29 setAttribute("dy", Double.toString(dy));
30 setAttribute("dz", Double.toString(dz));
31 setAttribute("bx", Double.toString(bx));
32 setAttribute("by", Double.toString(by));
33 setAttribute("bz", Double.toString(bz));
34 }
35 }