Changeset 17384
- Timestamp:
- 11/25/13 21:44:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msimcamera/MSimCamera.cc
r17383 r17384 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz, 1/2009 <mailto:tbretz@ astro.uni-wuerzburg.de>19 ! 20 ! Copyright: CheObs Software Development, 2000-20 0918 ! Author(s): Thomas Bretz, 1/2009 <mailto:tbretz@phys.ethz.ch> 19 ! 20 ! Copyright: CheObs Software Development, 2000-2013 21 21 ! 22 22 ! … … 42 42 43 43 #include <TF1.h> 44 #include <TRandom.h> 45 #include <TRandom3.h> 44 #include <TRandom.h> // Needed for TRandom 46 45 47 46 #include "MLog.h" … … 64 63 #include "MMcEvt.hxx" // To be replaced by a CheObs class 65 64 #include "MRawRunHeader.h" 66 67 #include "math.h"68 65 69 66 ClassImp(MSimCamera); … … 269 266 { 270 267 const Double_t accidentalPhotons = fACTimeConstant * accidentalPhotonRate; 271 const Double_t sigmaAccidentalPhotons = sqrt(accidentalPhotons);268 const Double_t sigmaAccidentalPhotons = TMath::Sqrt(accidentalPhotons); 272 269 273 270 const Double_t gaus = gRandom->Gaus(accidentalPhotons,sigmaAccidentalPhotons);
Note:
See TracChangeset
for help on using the changeset viewer.