Commit in lcsim/src/org/lcsim/recon/tracking/digitization/sisim/config on MAIN | |||
ReadoutCleanupDriver.java | +16 | -13 | 1.1 -> 1.2 |
add method to set collection names; add no arg constructor
diff -u -r1.1 -r1.2 --- ReadoutCleanupDriver.java 24 Aug 2009 23:07:39 -0000 1.1 +++ ReadoutCleanupDriver.java 25 Apr 2012 14:27:00 -0000 1.2 @@ -1,5 +1,7 @@
package org.lcsim.recon.tracking.digitization.sisim.config;
+import java.util.Arrays; +import java.util.HashSet;
import java.util.List; import org.lcsim.event.EventHeader;
@@ -13,33 +15,34 @@
* others. * * @author jeremym
- * @version $Id: ReadoutCleanupDriver.java,v 1.1 2009/08/24 23:07:39 jeremy Exp $
+ * @version $Id: ReadoutCleanupDriver.java,v 1.2 2012/04/25 14:27:00 jeremy Exp $
*/ public class ReadoutCleanupDriver extends CollectionHandler {
- public ReadoutCleanupDriver(List<String> collectionNames) - {
+ public ReadoutCleanupDriver() + {} + + public ReadoutCleanupDriver(List<String> collectionNames) {
super(collectionNames); }
- public ReadoutCleanupDriver(String[] collectionNames) - {
+ public ReadoutCleanupDriver(String[] collectionNames) {
super(collectionNames); }
+ public void setCollectionNames(String[] collectionNames) { + this.collections = new HashSet<String>(Arrays.asList(collectionNames)); + } +
protected void process(EventHeader event) { Detector detector = event.getDetector();
- for (Subdetector subdet : detector.getSubdetectors().values()) - { - if (subdet.getReadout() != null) - { - if (canHandle(subdet.getReadout().getName())) - { - if (subdet.getDetectorElement() != null) - {
+ for (Subdetector subdet : detector.getSubdetectors().values()) { + if (subdet.getReadout() != null) { + if (canHandle(subdet.getReadout().getName())) { + if (subdet.getDetectorElement() != null) {
subdet.getDetectorElement().clearReadouts(); } }
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