Changeset 9290
- Timestamp:
- 02/02/09 17:41:52 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9289 r9290 34 34 - added InterpreteLIQ 35 35 36 * msimcamera/MSimCamera.cc: 37 - added a time-shift uniformly according to the bin-width 38 36 39 37 40 -
trunk/MagicSoft/Mars/NEWS
r9287 r9290 2 2 3 3 == <cvs> == 4 5 ;merpp 6 7 * added support for Arehucas Version >= 200812140 8 4 9 5 10 -
trunk/MagicSoft/Mars/msimcamera/MSimCamera.cc
r9274 r9290 42 42 43 43 #include <TF1.h> 44 #include <TRandom.h> 44 45 45 46 #include "MLog.h" … … 172 173 const Int_t num = fEvt->GetNumPhotons(); 173 174 175 // A random shift, uniformely distributed within one slice, to make sure that 176 // the first photon is not always aligned identically with a sample edge. 177 // FIXME: Make it switchable 178 const Float_t rndm = gRandom->Uniform(); 179 180 // FIXME: Shell we add a random shift of [0,1] samples per channel? 181 // Or maybe per channel and run? 182 174 183 // Simulate pulses 175 184 for (Int_t i=0; i<num; i++) … … 178 187 179 188 const UInt_t idx = ph.GetTag(); 180 const Double_t t = (ph.GetTime()-fStat->GetTimeFirst())*freq ;// - fSpline->GetXmin();189 const Double_t t = (ph.GetTime()-fStat->GetTimeFirst())*freq+rndm;// - fSpline->GetXmin(); 181 190 182 191 // FIXME: Time jitter?
Note:
See TracChangeset
for help on using the changeset viewer.