Changeset 9427 for trunk/MagicSoft/Mars/msimcamera/MSimAPD.cc
- Timestamp:
- 04/16/09 12:14:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msimcamera/MSimAPD.cc
r9369 r9427 66 66 #include "MPhotonData.h" 67 67 68 #include "MPedestalCam.h" 69 #include "MPedestalPix.h" 70 68 71 #include "MAvalanchePhotoDiode.h" 69 72 … … 122 125 } 123 126 127 fRates = (MPedestalCam*)pList->FindObject("AccidentalPhotonRates", "MPedestalCam"); 128 if (!fRates) 129 { 130 *fLog << inf; 131 *fLog << "AccidentalPhotonRates [MPedestalCam] not found..." << endl; 132 *fLog << " using " << fFreq << " as default for all G-APDs." << endl; 133 } 134 124 135 return kTRUE; 125 136 } … … 197 208 198 209 for (UInt_t idx=0; idx<npix; idx++) 199 static_cast<APD*>(fAPDs.UncheckedAt(idx))->FillRandom(fFreq, fStat->GetTimeFirst()); 210 { 211 const Double_t freq = fRates ? (*fRates)[idx].GetPedestal() : fFreq; 212 static_cast<APD*>(fAPDs.UncheckedAt(idx))->FillRandom(freq, fStat->GetTimeFirst()); 213 } 200 214 201 215 // Get number of photons
Note:
See TracChangeset
for help on using the changeset viewer.