Commit in projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/tracker/silicon on MAIN | |||
HpsSiSensor.java | +11 | 3361 -> 3362 |
Use the detector volume and sensor layer to set whether it's orientation is axial or stereo.
--- projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/tracker/silicon/HpsSiSensor.java 2014-10-13 07:47:02 UTC (rev 3361) +++ projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/tracker/silicon/HpsSiSensor.java 2014-10-14 06:39:06 UTC (rev 3362) @@ -66,6 +66,17 @@
IIdentifier id) { super(sensorid, name, parent, support, id);
+ + // Set the default sensor orientation using the layer number. For sensors + // belonging to the top volume, odd (even) layers are axial (stereo). + // For sensors belonging to the bottom, even (odd) layers are axial (stereo). + if(this.isTopLayer() && this.getLayerNumber()%2 == 1){ + this.setAxial(true); + } else if(this.isBottomLayer() && this.getLayerNumber()%2 == 0){ + this.setAxial(true); + } else { + this.setStereo(true); + }
} /**
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