Commit in lcsim/src/org/lcsim/recon/tracking/digitization/sisim/config on MAIN
StripDigiSetupDriver.java+8-31.2 -> 1.3
Corrected the logic for creating and modifying the daughter SimTrackerHitReadoutDriver

lcsim/src/org/lcsim/recon/tracking/digitization/sisim/config
StripDigiSetupDriver.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- StripDigiSetupDriver.java	25 Aug 2009 00:01:59 -0000	1.2
+++ StripDigiSetupDriver.java	10 Jul 2012 07:27:56 -0000	1.3
@@ -56,6 +56,8 @@
 	private double fourClusterErr;
 	private double fiveClusterErr;
 	
+	private SimTrackerHitReadoutDriver readoutDriver;
+	
 	// List of sensors to process.
 	Set<SiSensor> sensorsToProcess = new HashSet<SiSensor>();	
 	
@@ -69,7 +71,10 @@
 	private boolean wasSetup = false;
 	
 	public StripDigiSetupDriver()
-	{}
+	{
+		readoutDriver = new SimTrackerHitReadoutDriver();
+		add(readoutDriver);
+	}
 	
 	public void setReadoutChipType(String readoutChipType)
 	{
@@ -171,7 +176,7 @@
 	{
 		return trackerHitsCollectionName;
 	}
-		
+	
 	public void detectorChanged(Detector detector)
 	{			
 		setupReadoutDriver(detector);
@@ -186,7 +191,7 @@
 		{
 			readouts.add(detector.getSubdetector(subdetectorName).getReadout().getName());
 		}
-		add(new SimTrackerHitReadoutDriver(readouts));
+		readoutDriver.setCollections(readouts.toArray(new String[] {}));
 	}
 		
 	public void setupDigi()
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