View Javadoc

1   package org.lcsim.detector;
2   
3   import org.lcsim.detector.material.IMaterial;
4   import org.lcsim.detector.solids.ISolid;
5   
6   /**
7    * An interface to logical volume information.
8    * 
9    * This interface borrows concepts from the Geant4 class G4LogicalVolume,
10   * but does not include regions, sensitive detectors, or the magnetic
11   * field.
12   * 
13   * @author Jeremy McCormick <jeremym@slac.stanford.edu>
14   *
15   */
16  public interface ILogicalVolume 
17  {
18  	public String getName();
19  	public ISolid getSolid();
20  	public IMaterial getMaterial();
21  	public IPhysicalVolumeContainer getDaughters();
22  	public int getNumberOfDaughters();
23  	public void addDaughter(IPhysicalVolume physvol); 
24  	public IPhysicalVolume getDaughter(int i);
25  	public boolean isDaughter(IPhysicalVolume physvol);
26  	public boolean isAncestor(IPhysicalVolume physvol);
27  }