Index: trunk/Mars/msimcamera/MSimCamera.cc
===================================================================
--- trunk/Mars/msimcamera/MSimCamera.cc	(revision 17383)
+++ trunk/Mars/msimcamera/MSimCamera.cc	(revision 17384)
@@ -16,7 +16,7 @@
 !
 !
-!   Author(s): Thomas Bretz,  1/2009 <mailto:tbretz@astro.uni-wuerzburg.de>
-!
-!   Copyright: CheObs Software Development, 2000-2009
+!   Author(s): Thomas Bretz,  1/2009 <mailto:tbretz@phys.ethz.ch>
+!
+!   Copyright: CheObs Software Development, 2000-2013
 !
 !
@@ -42,6 +42,5 @@
 
 #include <TF1.h>
-#include <TRandom.h>
-#include <TRandom3.h>
+#include <TRandom.h>            // Needed for TRandom
 
 #include "MLog.h"
@@ -64,6 +63,4 @@
 #include "MMcEvt.hxx"            // To be replaced by a CheObs class
 #include "MRawRunHeader.h"
-
-#include "math.h"
 
 ClassImp(MSimCamera);
@@ -269,5 +266,5 @@
         {
             const Double_t accidentalPhotons      = fACTimeConstant * accidentalPhotonRate;
-            const Double_t sigmaAccidentalPhotons = sqrt(accidentalPhotons);
+            const Double_t sigmaAccidentalPhotons = TMath::Sqrt(accidentalPhotons);
 
             const Double_t gaus = gRandom->Gaus(accidentalPhotons,sigmaAccidentalPhotons);
