Ignore:
Timestamp:
09/02/15 11:13:15 (9 years ago)
Author:
Jens Buss
Message:
Reintegrated private branch for the simulation of a gapd time jitter to the trunk
Location:
trunk/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars

  • trunk/Mars/msimcamera/MSimCamera.cc

    r18129 r18333  
    188188    }
    189189
     190    // Get GapdTimeJitter from parameter list
     191    fGapdTimeJitter = (MParameterD*)pList->FindObject("GapdTimeJitter");
     192    if (!fGapdTimeJitter)
     193    {
     194        *fLog << err << "GapdTimeJitter [MParameterD] not found... aborting." << endl;
     195        return kFALSE;
     196    }
     197
    190198    // Create it here to make sure that MGeomApply will set the correct size
    191199    fElectronicNoise = (MPedestalCam*)pList->FindCreateObj("MPedestalCam", "ElectronicNoise");
     
    423431    //--------------------------------------------------------------------------
    424432
     433    // Get the ResidualTimeSpread Parameter
     434    const Double_t gapdTimeJitter = fGapdTimeJitter->GetVal();
    425435   
    426436    // Simulate pulses
     
    444454
    445455        // FIXME: Time jitter?
     456        // Jens Buss on GapdTimeJitter
     457        // add also a time offset to arrival times of single photons
     458        // TODO: change to ns, use: fRunHeader->GetFreqSampling()
     459        Double_t timeJitter = gRandom->Gaus(0.0, gapdTimeJitter);
     460        t = t + timeJitter;
     461
    446462        // FIXME: Add additional routing here?
    447463        // FIMXE: How stable is the gain?
Note: See TracChangeset for help on using the changeset viewer.