Commit in projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/solids on MAIN | |||
Box.java | +4 | 3343 -> 3344 | |
Trap.java | +4 | -1 | 3343 -> 3344 |
Trd.java | +5 | -1 | 3343 -> 3344 |
Tube.java | +6 | -1 | 3343 -> 3344 |
+19 | -3 |
added toString method to enable printout
--- projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/solids/Box.java 2014-09-23 23:02:02 UTC (rev 3343) +++ projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/solids/Box.java 2014-09-25 22:34:28 UTC (rev 3344) @@ -144,4 +144,8 @@
return vertices; }
+ public String toString() + { + return this.getClass().getSimpleName()+" "+name+" : xHalf= "+xHalf+ " yHalf= "+yHalf+" zHalf= "+zHalf; + }
}
\ No newline at end of file
--- projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/solids/Trap.java 2014-09-23 23:02:02 UTC (rev 3343) +++ projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/solids/Trap.java 2014-09-25 22:34:28 UTC (rev 3344) @@ -238,5 +238,8 @@
return points; }
-
+ public String toString() + { + return this.getClass().getSimpleName()+" "+name; + }
}
\ No newline at end of file
--- projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/solids/Trd.java 2014-09-23 23:02:02 UTC (rev 3343) +++ projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/solids/Trd.java 2014-09-25 22:34:28 UTC (rev 3344) @@ -153,5 +153,9 @@
return points; }
-
+ + public String toString() + { + return this.getClass().getSimpleName()+" "+name+" : x1= "+dx1+ " x2= "+dx2+" y1= "+dy1+" y2="+dy2+ " z= "+dz; + }
}
\ No newline at end of file
--- projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/solids/Tube.java 2014-09-23 23:02:02 UTC (rev 3343) +++ projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/solids/Tube.java 2014-09-25 22:34:28 UTC (rev 3344) @@ -98,5 +98,10 @@
} return inside;
- }
+ } + + public String toString() + { + return this.getClass().getSimpleName()+" "+name+" : innerRadius= "+innerRadius+ " outerRadius= "+outerRadius+" zHalfLength= "+zHalfLength; + }
}
\ No newline at end of file
Use REPLY-ALL to reply to list
To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1