Changeset 19622
 Timestamp:
 Sep 4, 2019, 4:38:03 PM (11 months ago)
 Location:
 trunk/Mars/msimcamera
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Mars/msimcamera/MSimCamera.cc
r19621 r19622 246 246 *fLog << inf << "Gain is also applied to the electronic noise." << endl; 247 247 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 [ADCCounts * s] 252 fAreaOfOnePulse = fSpline>Integral() * fDefaultGain; 253 248 254 return kTRUE; 249 255 } … … 364 370 const Double_t crossTalkProb = fCrosstalkCoeffParam>GetVal(); 365 371 366 // To get the area of one Pulse, I only need to calculate the Integral367 // of the Pulse Shape, which is stored in fSpline. Because the spline is368 // normalized to a maximal amplitude of 1.0, I had to multiply it with369 // the Default gain [ADCCounts * s]370 const Double_t areaOfOnePulse = fSpline>Integral() * fDefaultGain;371 372 372 // The sampling rate I get from the RunHeader: 373 373 const Double_t samplingRate = fRunHeader>GetFreqSampling(); // [slices * MHz] … … 375 375 const Double_t accouplingPerSlice = currentAccidentalPhotonRate 376 376 * (1 + crossTalkProb + fACFudgeFactor) 377 * areaOfOnePulse / samplingRate;377 * fAreaOfOnePulse / samplingRate; 378 378 379 379 // The accoupling is substracted from the timeline by decreasing the 
trunk/Mars/msimcamera/MSimCamera.h
r18333 r19622 52 52 53 53 Double_t fACFudgeFactor; 54 Double_t fACTimeConstant; 54 55 55 Double_t fA CTimeConstant;56 Double_t fAreaOfOnePulse; //! Integral of a single pulse 56 57 57 58 // MParContainer
Note: See TracChangeset
for help on using the changeset viewer.