Changeset 18333 for trunk/Mars


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:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars

  • trunk/Mars/ceres.rc

    r18285 r18333  
    245245
    246246ResidualTimeSpread.Val: 0.0
     247GapdTimeJitter.Val: 0.0
    247248
    248249# last line comment
  • trunk/Mars/mjobs/MJSimulation.cc

    r18280 r18333  
    657657    write3af.AddContainer("IntendedPulsePos", "RunHeaders", kTRUE, 1);
    658658    write3af.AddContainer("ResidualTimeSpread", "RunHeaders", kTRUE, 1);
     659    write3af.AddContainer("GapdTimeJitter", "RunHeaders", kTRUE, 1);
    659660    write3af.AddContainer("MRawEvtData",      "Events");
    660661    write3af.AddContainer("MTruePhotonsPerPixelCont", "Events");
     
    739740    resTimeSpread.SetVal(0.0);
    740741    plist.AddToList(&resTimeSpread);
     742
     743    // -------------------------------------------------------------------
     744
     745    // Jens Buss on: residual time spread
     746    MParameterD gapdTimeJitter("GapdTimeJitter");
     747    gapdTimeJitter.SetVal(0.0);
     748    plist.AddToList(&gapdTimeJitter);
    741749
    742750    // -------------------------------------------------------------------
  • 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?
  • trunk/Mars/msimcamera/MSimCamera.h

    r18038 r18333  
    3737    MParameterD       *fCrosstalkCoeffParam;
    3838    MParameterD       *fResidualTimeSpread;    //! Container to store a standard deviation for a residual time spread
    39 
     39    MParameterD       *fGapdTimeJitter;        //! Container to store a standard deviation for a gapd time jitter
     40   
    4041    MMatrix *fFixTimeOffsetsBetweenPixelsInNs; //! Container to store the fix temporal offsets for each pixel in ns
    4142
Note: See TracChangeset for help on using the changeset viewer.