Commit in projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/geometry/compact/converter on MAIN | |||
SurveyVolume.java | +11 | -4 | 3372 -> 3373 |
Add alignment corrections to local volume in constructor.
--- projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/geometry/compact/converter/SurveyVolume.java 2014-10-17 23:03:49 UTC (rev 3372) +++ projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/geometry/compact/converter/SurveyVolume.java 2014-10-17 23:27:44 UTC (rev 3373) @@ -31,16 +31,20 @@
private Hep3Vector boxDim; private AlignmentCorrection alignmentCorrections;
- public SurveyVolume(String name, SurveyVolume m) {
+ public SurveyVolume(String name, SurveyVolume m, AlignmentCorrection alignmentCorrection) {
setName(name); setMother(m);
+ setAlignmentCorrection(alignmentCorrection);
}
- public SurveyVolume(String name, SurveyVolume m, SurveyVolume ref) {
+ + public SurveyVolume(String name, SurveyVolume m, AlignmentCorrection alignmentCorrection, SurveyVolume ref) {
setName(name); setMother(m);
+ setAlignmentCorrection(alignmentCorrection);
addReferenceGeom(ref); }
- public SurveyVolume(String name, SurveyVolume m, List<SurveyVolume> ref) {
+ + public SurveyVolume(String name, SurveyVolume m, AlignmentCorrection alignmentCorrection, List<SurveyVolume> ref) {
setName(name); setMother(m); addReferenceGeom(ref);
@@ -113,7 +117,10 @@
}
- public void setBallPos(double x, double y, double z) {
+ private void setAlignmentCorrection(AlignmentCorrection alignmentCorrection) { + this.alignmentCorrections = alignmentCorrection; + } + public void setBallPos(double x, double y, double z) {
ballPos = new BasicHep3Vector(x,y,z); } public void setVeePos(double x, double y, double z) {
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