Class Geant4Basic

java.lang.Object
org.jlab.detector.volume.Geant4Basic
Direct Known Subclasses:
G4Box, G4Operation, G4Pgon, G4Stl, G4Trap, G4Trd, G4Tubs, G4World

public abstract class Geant4Basic extends Object
Author:
kenjo
  • Field Details

    • volumeName

      protected String volumeName
    • volumeType

      protected String volumeType
    • rgb

      protected int[] rgb
    • sensitivity

      protected boolean sensitivity
    • abstraction

      protected boolean abstraction
    • volumeCSG

      protected CSG volumeCSG
    • volumeSolid

      protected final Primitive volumeSolid
    • rotationOrder

      protected String rotationOrder
    • volumeDimensions

      protected List<Measurement> volumeDimensions
  • Constructor Details

    • Geant4Basic

      protected Geant4Basic(Primitive volumeSolid)
  • Method Details

    • setDimensions

      protected final void setDimensions(Measurement... pars)
    • getDimensions

      protected final List<Measurement> getDimensions()
    • makeSensitive

      public final void makeSensitive()
    • isSensitive

      public boolean isSensitive()
    • makeAbstract

      public final void makeAbstract()
    • isAbstract

      public boolean isAbstract()
    • setName

      public final void setName(String name)
    • setType

      protected final void setType(String type)
    • setMother

      public void setMother(Geant4Basic motherVol)
    • getMother

      public Geant4Basic getMother()
    • getName

      public String getName()
    • getType

      public String getType()
    • getChildren

      public List<Geant4Basic> getChildren()
    • getGlobalPosition

      public Vector3d getGlobalPosition()
    • getLocalPosition

      public Vector3d getLocalPosition()
    • getLocalRotationOrder

      public String getLocalRotationOrder()
    • getLocalRotation

      public double[] getLocalRotation()
    • getId

      public int[] getId()
    • getLocalTransform

      public Transform getLocalTransform()
    • getGlobalTransform

      public Transform getGlobalTransform()
    • translate

      public Geant4Basic translate(double x, double y, double z)
    • scale

      public Geant4Basic scale(double scalefactor)
    • translate

      public Geant4Basic translate(Vector3d pos)
    • rotate

      public Geant4Basic rotate(String order, double r1, double r2, double r3)
    • setId

      public void setId(int... id)
    • gemcString

      public String gemcString()
    • gemcStringRecursive

      public String gemcStringRecursive()
    • toCSG

      public final CSG toCSG()
    • getComponents

      public List<Geant4Basic> getComponents()
    • getAllVolumes

      public List<Geant4Basic> getAllVolumes()
    • getPrimitive

      public Primitive getPrimitive()
    • getIntersections

      public List<DetHit> getIntersections(Straight line)
    • getIntersectedHits

      protected List<DetHit> getIntersectedHits(Straight line)
    • getLineX

      public Line3d getLineX()
    • getLineY

      public Line3d getLineY()
    • getLineZ

      public Line3d getLineZ()
    • setPosition

      public void setPosition(double x, double y, double z)
    • setPosition

      public void setPosition(Vector3d position)
    • getLocal

      public Vector3d getLocal(Vector3d vec)