Author: [log in to unmask] Date: Wed Jul 8 10:30:37 2015 New Revision: 3249 Log: time offsets are in readout for mc so they can be subtracted away in recon Modified: java/branches/HPSJAVA-ECALGAINCALIB/ecal-readout-sim/src/main/java/org/hps/readout/ecal/FADCEcalReadoutDriver.java Modified: java/branches/HPSJAVA-ECALGAINCALIB/ecal-readout-sim/src/main/java/org/hps/readout/ecal/FADCEcalReadoutDriver.java ============================================================================= --- java/branches/HPSJAVA-ECALGAINCALIB/ecal-readout-sim/src/main/java/org/hps/readout/ecal/FADCEcalReadoutDriver.java (original) +++ java/branches/HPSJAVA-ECALGAINCALIB/ecal-readout-sim/src/main/java/org/hps/readout/ecal/FADCEcalReadoutDriver.java Wed Jul 8 10:30:37 2015 @@ -587,7 +587,7 @@ throw new RuntimeException("trying to add a hit to the analog pipeline, but time seems incorrect"); } for (int i = 0; i < bufferLength; i++) { - eDepBuffer.addToCell(i, energyAmplitude * pulseAmplitude((i + 1) * readoutPeriod + readoutTime() - (ClockSingleton.getTime() + hit.getTime()), hit.getCellID())); + eDepBuffer.addToCell(i, energyAmplitude * pulseAmplitude((i + 1) * readoutPeriod + readoutTime() - (ClockSingleton.getTime() + hit.getTime())-findChannel(hit.getCellID()).getTimeShift().getTimeShift(), hit.getCellID())); } } }