Changeset 9427
- Timestamp:
- 04/16/09 12:14:40 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9426 r9427 87 87 - write rates to an output container 88 88 89 * ceres.rc: 90 - adapted 89 * ceres.rc: 90 - adapted 91 92 * msimcamera/MSimAPD.[h,cc]: 93 - take the acidental rate from a container 94 91 95 92 96 -
trunk/MagicSoft/Mars/NEWS
r9422 r9427 32 32 * PDEs and mirror reflectivities have been linearily extrapolated 33 33 to match the wavelegth range between 290nm and 900nm 34 35 * There is no default pulse shape anymoe it must be given in 36 the resource file 34 37 35 38 ;callisto: -
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 -
trunk/MagicSoft/Mars/msimcamera/MSimAPD.h
r9369 r9427 14 14 class MPhotonEvent; 15 15 class MPhotonStatistics; 16 class MPedestalCam; 16 17 17 18 class MSimAPD : public MTask … … 21 22 MPhotonEvent *fEvt; //! Event storing the photon information 22 23 MPhotonStatistics *fStat; //! Storing event statistics (needed for the start-time) 24 MPedestalCam *fRates; //! Accidental Photon Rates for all pixels 23 25 24 26 TObjArray fAPDs; //! Array keeping the necessary number of APDs
Note:
See TracChangeset
for help on using the changeset viewer.