Commit in hps-java/src/main on MAIN | |||
java/org/lcsim/hps/util/HPSTwoTrackFilterDriver.java | +5 | 1.1 -> 1.2 | |
/HPSLCIOFilterDriver.java | +5 | -1 | 1.1 -> 1.2 |
resources/org/lcsim/hps/steering/LCIOEventFilter.lcsim | +3 | -1 | 1.1 -> 1.2 |
+13 | -2 |
Added debug
diff -u -r1.1 -r1.2 --- HPSTwoTrackFilterDriver.java 10 Jan 2013 18:11:46 -0000 1.1 +++ HPSTwoTrackFilterDriver.java 15 Jan 2013 18:55:17 -0000 1.2 @@ -31,6 +31,11 @@
if(!event.hasCollection(Track.class, trackCollectionName)) { throw new RuntimeException("Error, event doesn't have the track collection"); }
+ + if(this.debug) { + System.out.printf("%s: %d tracks in this event\n",this.getClass().getSimpleName(),event.get(Track.class, trackCollectionName).size()); + } +
if (event.get(Track.class, trackCollectionName).size()>1) { try { writer.write(event);
diff -u -r1.1 -r1.2 --- HPSLCIOFilterDriver.java 10 Jan 2013 18:11:17 -0000 1.1 +++ HPSLCIOFilterDriver.java 15 Jan 2013 18:55:17 -0000 1.2 @@ -16,7 +16,7 @@
public abstract class HPSLCIOFilterDriver extends Driver { protected String outputFile; protected LCIOWriter writer;
-
+ protected boolean debug = false;
public HPSLCIOFilterDriver() { }
@@ -25,6 +25,10 @@
this.outputFile = output; }
+ public void setDebug(boolean debug) { + this.debug = debug; + } +
abstract boolean eventFilter(EventHeader event); private void setupWriter() {
diff -u -r1.1 -r1.2 --- LCIOEventFilter.lcsim 10 Jan 2013 18:12:05 -0000 1.1 +++ LCIOEventFilter.lcsim 15 Jan 2013 18:55:17 -0000 1.2 @@ -22,6 +22,7 @@
<drivers> <driver name="TwoTrackFilter" type="org.lcsim.hps.util.HPSTwoTrackFilterDriver">
+ <debug>false</debug>
<outputFilePath>${outFile}</outputFilePath> </driver> <driver name="EventMarkerDriver"
@@ -29,7 +30,8 @@
<eventInterval>1000</eventInterval> </driver> <driver name="HPSCalibrationDriver" type="org.lcsim.hps.monitoring.HPSCalibrationDriver">
- <runNumber>1351</runNumber>
+ <runNumber>-10</runNumber>
+ <!-- <runNumber>1351</runNumber> -->
</driver> <driver name="RawTrackerHitSensorSetup" type="org.lcsim.recon.tracking.digitization.sisim.config.RawTrackerHitSensorSetup"/> <driver name="RawTrackerHitFitterDriver" type="org.lcsim.hps.recon.tracking.HPSRawTrackerHitFitterDriver">
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