projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/geometry/compact/converter/lcdd
--- projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/geometry/compact/converter/lcdd/HPSTestRunTracker2014Builder.java (rev 0)
+++ projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/geometry/compact/converter/lcdd/HPSTestRunTracker2014Builder.java 2014-07-24 23:00:40 UTC (rev 3200)
@@ -0,0 +1,88 @@
+/**
+ *
+ */
+package org.lcsim.geometry.compact.converter.lcdd;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ *
+ * Class used to encapsulates building the basic geometry building blocks.
+ *
+ * @author Per Hansson Adrian <[log in to unmask]>
+ *
+ */
+public class HPSTestRunTracker2014Builder {
+
+ // general members
+ private boolean debug = true;
+
+ //Geometry members
+ protected HPSTestRunTracker2014GeomDef.TrackingBase tracking;
+ protected HPSTestRunTracker2014GeomDef.Base base;
+ protected HPSTestRunTracker2014GeomDef.BasePlate basePlate;
+ protected HPSTestRunTracker2014GeomDef.CSupport cSupport;
+ protected HPSTestRunTracker2014GeomDef.SupportBottom supportBottom;
+ protected HPSTestRunTracker2014GeomDef.SupportPlateBottom supportPlateBottom;
+ protected HPSTestRunTracker2014GeomDef.SupportTop supportTop;
+ protected HPSTestRunTracker2014GeomDef.SupportPlateTop supportPlateTop;
+ protected List<HPSTestRunTracker2014GeomDef.TestRunModule> modules;
+
+
+
+ /**
+ * Default constructor.
+ */
+ public HPSTestRunTracker2014Builder(boolean debugFlag) {
+ setDebug(debugFlag);
+
+ if(isDebug()) System.out.printf("%s: constructing the geometry objects\n", this.getClass().getSimpleName());
+
+ tracking = new HPSTestRunTracker2014GeomDef.TrackingBase("trackingVolume",null);
+ base = new HPSTestRunTracker2014GeomDef.Base("base",tracking);
+ basePlate = new HPSTestRunTracker2014GeomDef.BasePlate("baseplate",base, "Aluminum");
+ cSupport = new HPSTestRunTracker2014GeomDef.CSupport("c_support", base);
+ supportBottom = new HPSTestRunTracker2014GeomDef.SupportBottom("support_bottom", base, cSupport);
+ supportPlateBottom = new HPSTestRunTracker2014GeomDef.SupportPlateBottom("support_plate_bottom", supportBottom, "Aluminum");
+ supportTop = new HPSTestRunTracker2014GeomDef.SupportTop("support_top", base, cSupport);
+ supportPlateTop= new HPSTestRunTracker2014GeomDef.SupportPlateTop("support_plate_top", supportTop, "Aluminum");
+ modules = new ArrayList<HPSTestRunTracker2014GeomDef.TestRunModule>();
+
+ if(isDebug()) System.out.printf("%s: DONE constructing the geometry objects\n", this.getClass().getSimpleName());
+
+ }
+ protected HPSTestRunTracker2014GeomDef.TrackingBase getTracking() {
+ return tracking;
+ }
+ protected HPSTestRunTracker2014GeomDef.Base getBase() {
+ return base;
+ }
+ protected HPSTestRunTracker2014GeomDef.BasePlate getBasePlate() {
+ return basePlate;
+ }
+ protected HPSTestRunTracker2014GeomDef.CSupport getcSupport() {
+ return cSupport;
+ }
+ protected HPSTestRunTracker2014GeomDef.SupportBottom getSupportBottom() {
+ return supportBottom;
+ }
+ protected HPSTestRunTracker2014GeomDef.SupportPlateBottom getSupportPlateBottom() {
+ return supportPlateBottom;
+ }
+ protected HPSTestRunTracker2014GeomDef.SupportTop getSupportTop() {
+ return supportTop;
+ }
+ protected HPSTestRunTracker2014GeomDef.SupportPlateTop getSupportPlateTop() {
+ return supportPlateTop;
+ }
+ protected List<HPSTestRunTracker2014GeomDef.TestRunModule> getModules() {
+ return modules;
+ }
+ protected boolean isDebug() {
+ return debug;
+ }
+ protected void setDebug(boolean debug) {
+ this.debug = debug;
+ }
+}