diff --git a/common-tools/clas-jcsg/src/main/java/org/jlab/detector/geant4/v2/RICHGeant4Factory.java b/common-tools/clas-jcsg/src/main/java/org/jlab/detector/geant4/v2/RICHGeant4Factory.java index cead781bc6..4ab3639e96 100644 --- a/common-tools/clas-jcsg/src/main/java/org/jlab/detector/geant4/v2/RICHGeant4Factory.java +++ b/common-tools/clas-jcsg/src/main/java/org/jlab/detector/geant4/v2/RICHGeant4Factory.java @@ -21,6 +21,7 @@ /** * Building the RICH PMTs * @author Goodwill, kenjo + * modfied by gangel */ public final class RICHGeant4Factory extends Geant4Factory { @@ -52,6 +53,7 @@ public final class RICHGeant4Factory extends Geant4Factory { // list containing the pmts private List pmts = new ArrayList(); private List photocatodes = new ArrayList(); + private List stlvolumes = new ArrayList(); public RICHGeant4Factory() { @@ -62,6 +64,7 @@ public RICHGeant4Factory() { ClassLoader cloader = getClass().getClassLoader(); G4Stl gasVolume = new G4Stl("OpticalGasVolume", cloader.getResourceAsStream("rich/cad/OpticalGasVolume.stl"), Length.mm / Length.cm); gasVolume.setMother(motherVolume); + stlvolumes.add(gasVolume); for (String name : new String[]{"AerogelTiles", "Aluminum", "CFRP", "Glass", "TedlarWrapping"}) { G4Stl component = new G4Stl(String.format("%s", name), @@ -69,6 +72,7 @@ public RICHGeant4Factory() { Length.mm / Length.cm); component.setMother(gasVolume); + stlvolumes.add(component); } @@ -175,4 +179,14 @@ public G4Box GetPhotocatode(int i) } + /** + * @author: gangel + * @param i the STL volume + * 0 OpticalGasVolume - 1 AerogelTiles,2 Aluminum,3 CFRP,4 Glass,5 TedlarWrapping + * @return: the Photocatodes volumes inside the PMT + */ + public G4Stl GetStl(int i) + { + return stlvolumes.get(i-1); + } }