Commit in projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/tracker/silicon on MAIN | |||
HpsSiSensor.java | +14 | -1 | 3359 -> 3360 |
Add a method to retrieve the side of the detector the sensor is on (e+ or e-).
--- projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/tracker/silicon/HpsSiSensor.java 2014-10-11 19:04:14 UTC (rev 3359) +++ projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/tracker/silicon/HpsSiSensor.java 2014-10-13 05:49:33 UTC (rev 3360) @@ -30,6 +30,9 @@
public final static int T0_INDEX = 1; public final static int TP_INDEX = 2;
+ public final static String ELECTRON_SIDE = "ELECTRON"; + public final static String POSITRON_SIDE = "ELECTRON"; +
protected int febID; protected int febHybridID; protected double t0Shift = 0;
@@ -242,8 +245,18 @@
public double getT0Shift() { return t0Shift; }
-
+ /** + * Get the sensor side (ELECTRON or POSITRON). For single sensor + * half-modules, the side will always be ELECTRON. + * + * @return The side the sensor is on (ELECTRON or POSITRON) + */ + public String getSide(){ + return this.getModuleNumber() < 2 ? ELECTRON_SIDE : POSITRON_SIDE; + } + +
/** * Generate an ID for a channel (strip) on a sensor. *
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