View Javadoc

1   package org.lcsim.geometry.compact.converter.lcdd.util;
2   
3   /**
4    * The element for box_dipole in LCDD. 
5    * 
6    * @author Jeremy McCormick <jeremym@slac.stanford.edu>
7    * @version $Id: BoxDipole.java,v 1.1 2011/06/24 22:17:13 jeremy Exp $
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  }