Print

Print


Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking on MAIN
HPSSVTSensorSetup.java+14-81.6 -> 1.7
minor modifications; remove debug print

hps-java/src/main/java/org/lcsim/hps/recon/tracking
HPSSVTSensorSetup.java 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- HPSSVTSensorSetup.java	1 Mar 2012 22:30:21 -0000	1.6
+++ HPSSVTSensorSetup.java	16 Mar 2012 19:12:09 -0000	1.7
@@ -27,13 +27,14 @@
  * @author Mathew Graham <[log in to unmask]>
  * @author Omar Moreno   <[log in to unmask]>
  * @author Jeremy McCormick <[log in to unmask]>
- * @version $Id: HPSSVTSensorSetup.java,v 1.6 2012/03/01 22:30:21 jeremy Exp $
+ * @version $Id: HPSSVTSensorSetup.java,v 1.7 2012/03/16 19:12:09 jeremy Exp $
  */
 public class HPSSVTSensorSetup extends Driver {
 	
-    String subdetectorName = "Tracker";
-    boolean debug = true;
+    boolean debug = false;
     
+    String subdetectorName = "Tracker";
+        
     // Sensor Characteristics
     private double readoutStripPitch = 0.060;    // micro-m
     private double senseStripPitch   = 0.030;    // micro-m
@@ -84,9 +85,10 @@
     private void configureSensors(Set<SiSensor> sensors) {
         // Loop through all the sensors in the set.
         for(SiSensor sensor : sensors) {
-            System.out.println("setting up sensor " + sensor.getName());
-            // Set the sensor Id
-            //setSensorId(sensor);
+            
+            if (debug) {
+                System.out.println(this.getClass().getSimpleName() + " - setting up sensor " + sensor.getName());
+            }
         
             Box sensorSolid = (Box) sensor.getGeometry().getLogicalVolume().getSolid();
             
@@ -110,8 +112,8 @@
             SiStrips senseElectrodes = new SiStrips(ChargeCarrier.HOLE, senseStripPitch, (readoutElectrodes.getNCells()*2-1), sensor, electrodesTransform);
             
             if (debug) {
-            	System.out.println(this.getClass().getName() + ": The number of readout strips are " + readoutElectrodes.getNCells());
-            	System.out.println(this.getClass().getName() + ": The number of sense strips are " + senseElectrodes.getNCells());
+            	System.out.println("The number of readout strips is " + readoutElectrodes.getNCells());
+            	System.out.println("The number of sense strips is " + senseElectrodes.getNCells());
             }
 
             // Set the strip capacitance.
@@ -127,6 +129,10 @@
             // Set the charge transfer efficiency.
             double[][] transferEfficiencies = {{readoutTransferEfficiency, senseTransferEfficiency}};
             sensor.setTransferEfficiencies(ChargeCarrier.HOLE, new BasicMatrix(transferEfficiencies));
+            
+            if (debug) {
+                System.out.println("----------------------------");
+            }
         }
     }
     
CVSspam 0.2.12


Use REPLY-ALL to reply to list

To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1