Ignore:
Timestamp:
11/25/13 21:44:27 (11 years ago)
Author:
tbretz
Message:
Cleanup of the includes; my suspicion is that the math.h is for the sqrt (which is not needed, and should be in trinagular brackets as in all other files). To get a common namespace, I replaced it by TMath::Sqrt.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimcamera/MSimCamera.cc

    r17383 r17384  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz,  1/2009 <mailto:tbretz@astro.uni-wuerzburg.de>
    19 !
    20 !   Copyright: CheObs Software Development, 2000-2009
     18!   Author(s): Thomas Bretz,  1/2009 <mailto:tbretz@phys.ethz.ch>
     19!
     20!   Copyright: CheObs Software Development, 2000-2013
    2121!
    2222!
     
    4242
    4343#include <TF1.h>
    44 #include <TRandom.h>
    45 #include <TRandom3.h>
     44#include <TRandom.h>            // Needed for TRandom
    4645
    4746#include "MLog.h"
     
    6463#include "MMcEvt.hxx"            // To be replaced by a CheObs class
    6564#include "MRawRunHeader.h"
    66 
    67 #include "math.h"
    6865
    6966ClassImp(MSimCamera);
     
    269266        {
    270267            const Double_t accidentalPhotons      = fACTimeConstant * accidentalPhotonRate;
    271             const Double_t sigmaAccidentalPhotons = sqrt(accidentalPhotons);
     268            const Double_t sigmaAccidentalPhotons = TMath::Sqrt(accidentalPhotons);
    272269
    273270            const Double_t gaus = gRandom->Gaus(accidentalPhotons,sigmaAccidentalPhotons);
Note: See TracChangeset for help on using the changeset viewer.