Changeset 9349 for trunk/MagicSoft/Mars/msimcamera
- Timestamp:
- 02/19/09 16:27:33 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msimcamera/MSimAPD.cc
r9328 r9349 182 182 183 183 // Get arrival time of photon and idx 184 const Double_t t = ph.GetTime(); 185 const UInt_t idx = ph.GetTag(); 184 const Double_t t = ph.GetTime(); 185 const Int_t idx = ph.GetTag(); 186 if (idx<0) 187 { 188 *fLog << err << "ERROR - MSimAPD: Invalid index -1." << endl; 189 return kERROR; 190 } 186 191 187 192 if (ph.GetWeight()!=1) … … 191 196 return kERROR; 192 197 } 193 194 198 // Simulate hitting the APD (the signal height in effective 195 199 // "number of photons" is returned)
Note:
See TracChangeset
for help on using the changeset viewer.