Ignore:
Timestamp:
09/04/19 16:38:03 (5 years ago)
Author:
tbretz
Message:
Performance improvement
Location:
trunk/Mars/msimcamera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimcamera/MSimCamera.cc

    r19621 r19622  
    246246        *fLog << inf << "Gain is also applied to the electronic noise." << endl;
    247247
     248    // To get the area of one Pulse, I only need to calculate the Integral
     249    // of the Pulse Shape, which is stored in fSpline. Because the spline is
     250    // normalized to a maximal amplitude of 1.0, I had to multiply it with
     251    // the Default gain [ADC-Counts * s]
     252    fAreaOfOnePulse = fSpline->Integral() * fDefaultGain;
     253
    248254    return kTRUE;
    249255}
     
    364370        const Double_t crossTalkProb = fCrosstalkCoeffParam->GetVal();
    365371
    366         // To get the area of one Pulse, I only need to calculate the Integral
    367         // of the Pulse Shape, which is stored in fSpline. Because the spline is
    368         // normalized to a maximal amplitude of 1.0, I had to multiply it with
    369         // the Default gain [ADC-Counts * s]
    370         const Double_t areaOfOnePulse = fSpline->Integral() * fDefaultGain;
    371 
    372372        // The sampling rate I get from the RunHeader:
    373373        const Double_t samplingRate = fRunHeader->GetFreqSampling(); // [slices * MHz]
     
    375375        const Double_t accouplingPerSlice = currentAccidentalPhotonRate
    376376            * (1 + crossTalkProb + fACFudgeFactor)
    377             * areaOfOnePulse / samplingRate;
     377            * fAreaOfOnePulse / samplingRate;
    378378
    379379        // The accoupling is substracted from the timeline by decreasing the
  • trunk/Mars/msimcamera/MSimCamera.h

    r18333 r19622  
    5252
    5353    Double_t fACFudgeFactor;
     54    Double_t fACTimeConstant;
    5455
    55     Double_t fACTimeConstant;
     56    Double_t fAreaOfOnePulse; //! Integral of a single pulse
    5657
    5758    // MParContainer
Note: See TracChangeset for help on using the changeset viewer.