Ignore:
Timestamp:
02/11/09 12:36:28 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msimcamera/MSimCalibrationSignal.cc

    r9306 r9317  
    160160Bool_t MSimCalibrationSignal::CallReInit()
    161161{
    162     if (GetNumExecutions()>0)
     162    if (GetNumExecutions()!=1)
    163163        return kTRUE;
    164164
     
    170170    }
    171171
     172    fRunHeader->SetReadyToSave();
     173
    172174    return tlist->ReInit(fParList);
    173175}
     
    190192        for (UInt_t idx=0; idx<fGeom->GetNumPixels(); idx++)
    191193        {
     194            const Int_t num = TMath::Nint(gRandom->Gaus(fNumPhotons, fNumPhotons/10));
     195
    192196            // FIXME: How does the distribution look like? Poissonian?
    193             for (UInt_t i=0; i<fNumPhotons; i++)
     197            for (Int_t i=0; i<num; i++)
    194198            {
    195199                MPhotonData &ph = fEvt->Add(cnt++);
     
    212216    // -------------------- MSimGeomCam ---------------------
    213217
     218    // =====> Move to MSimReadoutWindow ?
     219
    214220    const Double_t freq = fRunHeader->GetFreqSampling()/1000.;
    215221
     
    230236
    231237    // FIXME: Jitter! (Own class?)
    232     fTrigger->SetVal(pp*freq);
     238    fTrigger->SetVal((pp+pw)*freq);
    233239    fTrigger->SetReadyToSave();
    234240
     
    236242    const UInt_t p = fRunHeader->IsCalibrationRun() ? MTriggerPattern::kCalibration : MTriggerPattern::kPedestal;
    237243    fEvtHeader->SetTriggerPattern(~(p | (p<<8)));
     244    fEvtHeader->SetCalibrationPattern(0/*BIT(16)<<16*/); // CT1 Pulser, see MCalibrationPatternDecode
    238245    fEvtHeader->SetReadyToSave();
    239246
Note: See TracChangeset for help on using the changeset viewer.