Commit in lcsim/src/org/lcsim/recon/tracking/digitization/sisim/config on MAIN
PixelDigiSetupDriver.java+17-21.1 -> 1.2
Automatically creates a SimTrackerHitReadoutDriver for the corresponding collections

lcsim/src/org/lcsim/recon/tracking/digitization/sisim/config
PixelDigiSetupDriver.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- PixelDigiSetupDriver.java	24 Aug 2009 23:07:39 -0000	1.1
+++ PixelDigiSetupDriver.java	10 Jul 2012 07:22:43 -0000	1.2
@@ -56,6 +56,8 @@
     double fourClusterErr = 1 / 2;
     double fiveClusterErr = 1;
 	
+    private SimTrackerHitReadoutDriver readoutDriver;
+    
 	// List of sensors to process.
 	Set<SiSensor> sensorsToProcess = new HashSet<SiSensor>();	
 	
@@ -69,7 +71,10 @@
 	private boolean wasSetup = false;
 	
 	public PixelDigiSetupDriver()
-	{}
+	{
+		readoutDriver = new SimTrackerHitReadoutDriver();
+		add(readoutDriver);
+	}
 	
 	public void setReadoutChipType(String readoutChipType)
 	{
@@ -169,11 +174,21 @@
 		
 	public void detectorChanged(Detector detector)
 	{
-		//setupReadoutDriver(detector);
+		setupReadoutDriver(detector);
 		setupDigi();
 		super.detectorChanged(detector);
 	}
 	
+	private void setupReadoutDriver(Detector detector)
+	{
+		List<String> readouts = new ArrayList<String>();
+		for (String subdetectorName : subdetectorNames)
+		{
+			readouts.add(detector.getSubdetector(subdetectorName).getReadout().getName());
+		}
+		readoutDriver.setCollections(readouts.toArray(new String[] {}));
+	}
+	
 	public void setupDigi()
 	{
 		if (wasSetup)
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