Author: [log in to unmask] Date: Fri May 15 04:41:46 2015 New Revision: 2973 Log: print more stuff Modified: java/trunk/users/src/main/java/org/hps/users/meeg/SVTSmallHitsDriver.java Modified: java/trunk/users/src/main/java/org/hps/users/meeg/SVTSmallHitsDriver.java ============================================================================= --- java/trunk/users/src/main/java/org/hps/users/meeg/SVTSmallHitsDriver.java (original) +++ java/trunk/users/src/main/java/org/hps/users/meeg/SVTSmallHitsDriver.java Fri May 15 04:41:46 2015 @@ -22,6 +22,8 @@ Map<HpsSiSensor, Set<Integer>> hitMap; double dtSumWith = 0; double dtSumWithout = 0; + double nHitsWith = 0; + double nHitsWithout = 0; int nWith = 0; int nWithout = 0; @@ -68,12 +70,14 @@ } if (smallHitCount > 5) { dtSumWith += event.getTimeStamp() - previousTimestamp; + nHitsWith += smallHitCount; nWith++; } else { dtSumWithout += event.getTimeStamp() - previousTimestamp; + nHitsWithout += smallHitCount; nWithout++; } - System.out.format("%f ns with small hits,\t%f ns without small hits\n",dtSumWith,nWith,dtSumWith/nWith,dtSumWithout,nWithout,dtSumWithout/nWithout); + System.out.format("%f ns with small hits (%d events with %f small hits),\t%f ns without small hits (%d events with %f small hits)\n", dtSumWith / nWith, nWith, nHitsWith / nWith, dtSumWithout / nWithout, nWithout, nHitsWithout / nWithout); System.out.format("%d %d %d %d ", event.getEventNumber(), event.getTimeStamp(), event.getTimeStamp() - previousTimestamp, smallHitCount);