Changeset 9342 for trunk/MagicSoft/Mars/msimcamera
- Timestamp:
- 02/15/09 15:52:47 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msimcamera/MSimGeomCam.cc
r9332 r9342 181 181 const Int_t ns = fHeader->GetNumSamplesHiGain()+1; 182 182 183 const Float_t first = cnt>0 ? fEvt->Get First()->GetTime() : 0;184 const Float_t last = cnt>0 ? fEvt->Get Last()->GetTime() : ns*freq;183 const Float_t first = cnt>0 ? fEvt->GetTimeFirst() : 0; 184 const Float_t last = cnt>0 ? fEvt->GetTimeLast() : ns*freq; 185 185 186 186 // Length (ns), Pulse position (Units ns) … … 188 188 const Float_t pw = fPulse->GetPulseWidth(); 189 189 190 fStat->SetTimeMedDev(fEvt->GetTimeMedianDev()); 190 191 fStat->SetTime(first-pp-pw, last-pp+pw + ns*freq); 192 fStat->SetLength(last-first); 191 193 fStat->SetMaxIndex(fGeom->GetNumPixels()-1); 192 194 fStat->SetReadyToSave();
Note:
See TracChangeset
for help on using the changeset viewer.