Index: /trunk/Mars/msimcamera/MSimReadout.cc
===================================================================
--- /trunk/Mars/msimcamera/MSimReadout.cc	(revision 19665)
+++ /trunk/Mars/msimcamera/MSimReadout.cc	(revision 19666)
@@ -181,8 +181,8 @@
 
     // Get the intended pulse position and convert it to slices
-    const Float_t pulpos = fPulsePos->GetVal()*fRunHeader->GetFreqSampling()/1000.;
-
-    // Get trigger position and correct for intended pulse position
-    const Int_t trig = TMath::CeilNint(fTrigger->GetVal()-pulpos);
+    const Float_t pulpos = fPulsePos->GetVal();
+
+    // Get trigger position and correct for intended pulse position (convert from ns to samples)
+    const Int_t trig = TMath::CeilNint((fTrigger->GetVal()-pulpos)*fRunHeader->GetFreqSampling()/1000.);
 
     // Check if the position is valid
