Index: trunk/Mars/msimcamera/MSimCalibrationSignal.cc
===================================================================
--- trunk/Mars/msimcamera/MSimCalibrationSignal.cc	(revision 19668)
+++ trunk/Mars/msimcamera/MSimCalibrationSignal.cc	(revision 19670)
@@ -228,5 +228,5 @@
     // We add an additional sample at the end to support a possible shift
     // of the start time of the first event by 0 to 1 sample.
-    const Float_t  win  = (fHeader->GetNumSamplesHiGain()+1)/freq;
+    const Float_t  win  = (fRunHeader->GetNumSamplesHiGain()+1)/freq;
 
     // Length (ns), Pulse position (Units ns)
