Changeset 9290


Ignore:
Timestamp:
02/02/09 17:41:52 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9289 r9290  
    3434     - added InterpreteLIQ
    3535
     36   * msimcamera/MSimCamera.cc:
     37     - added a time-shift uniformly according to the bin-width
     38
    3639
    3740
  • trunk/MagicSoft/Mars/NEWS

    r9287 r9290  
    22
    33== <cvs> ==
     4
     5 ;merpp
     6
     7   * added support for Arehucas Version >= 200812140
     8
    49
    510
  • trunk/MagicSoft/Mars/msimcamera/MSimCamera.cc

    r9274 r9290  
    4242
    4343#include <TF1.h>
     44#include <TRandom.h>
    4445
    4546#include "MLog.h"
     
    172173    const Int_t num = fEvt->GetNumPhotons();
    173174
     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
    174183    // Simulate pulses
    175184    for (Int_t i=0; i<num; i++)
     
    178187
    179188        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();
    181190
    182191        // FIXME: Time jitter?
Note: See TracChangeset for help on using the changeset viewer.