View Javadoc

1   package org.lcsim.geometry.compact.converter.lcdd.util;
2   
3   import org.jdom.Element;
4   
5   /**
6    * 
7    * @author tonyj
8    */
9   public class SensitiveDetector extends RefElement
10  {
11     public SensitiveDetector(String type, String name)
12     {
13        super(type,name);
14        setAttribute("ecut","0.0");
15        setAttribute("eunit","MeV");
16        setAttribute("verbose","0");
17     }  
18     public void setIDSpec(IDSpec spec)
19     {
20        Element element = new Element("idspecref");
21        element.setAttribute("ref",spec.getRefName());
22        addContent(element);
23     }
24     public void setHitsCollection(String name)
25     {
26        setAttribute("hits_collection",name);
27     }
28  }