Changeset 18333 for trunk/Mars/msimcamera/MSimCamera.cc
- Timestamp:
- 09/02/15 11:13:15 (9 years ago)
- Location:
- trunk/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars
- Property svn:mergeinfo changed
/branches/MarsGapdTimeJitter (added) merged: 18106-18109,18159,18282,18331-18332
- Property svn:mergeinfo changed
-
trunk/Mars/msimcamera/MSimCamera.cc
r18129 r18333 188 188 } 189 189 190 // Get GapdTimeJitter from parameter list 191 fGapdTimeJitter = (MParameterD*)pList->FindObject("GapdTimeJitter"); 192 if (!fGapdTimeJitter) 193 { 194 *fLog << err << "GapdTimeJitter [MParameterD] not found... aborting." << endl; 195 return kFALSE; 196 } 197 190 198 // Create it here to make sure that MGeomApply will set the correct size 191 199 fElectronicNoise = (MPedestalCam*)pList->FindCreateObj("MPedestalCam", "ElectronicNoise"); … … 423 431 //-------------------------------------------------------------------------- 424 432 433 // Get the ResidualTimeSpread Parameter 434 const Double_t gapdTimeJitter = fGapdTimeJitter->GetVal(); 425 435 426 436 // Simulate pulses … … 444 454 445 455 // FIXME: Time jitter? 456 // Jens Buss on GapdTimeJitter 457 // add also a time offset to arrival times of single photons 458 // TODO: change to ns, use: fRunHeader->GetFreqSampling() 459 Double_t timeJitter = gRandom->Gaus(0.0, gapdTimeJitter); 460 t = t + timeJitter; 461 446 462 // FIXME: Add additional routing here? 447 463 // FIMXE: How stable is the gain?
Note:
See TracChangeset
for help on using the changeset viewer.