Ignore:
Timestamp:
09/23/19 18:20:27 (5 years ago)
Author:
tbretz
Message:
Adapted unit conversion to intended trigger position in nanoseconds, and trigge rposition in nanoseconds.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimcamera/MSimReadout.cc

    r17209 r19666  
    181181
    182182    // Get the intended pulse position and convert it to slices
    183     const Float_t pulpos = fPulsePos->GetVal()*fRunHeader->GetFreqSampling()/1000.;
    184 
    185     // Get trigger position and correct for intended pulse position
    186     const Int_t trig = TMath::CeilNint(fTrigger->GetVal()-pulpos);
     183    const Float_t pulpos = fPulsePos->GetVal();
     184
     185    // Get trigger position and correct for intended pulse position (convert from ns to samples)
     186    const Int_t trig = TMath::CeilNint((fTrigger->GetVal()-pulpos)*fRunHeader->GetFreqSampling()/1000.);
    187187
    188188    // Check if the position is valid
Note: See TracChangeset for help on using the changeset viewer.