Changeset 3615 in Sophya for trunk/Cosmo/SimLSS/cmvtstagn.cc


Ignore:
Timestamp:
May 1, 2009, 1:34:31 PM (16 years ago)
Author:
cmv
Message:

Modifs relatives a l'introduction de RandomGeneratorInterface + delete de srandgen.c, cmv 01/05/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/SimLSS/cmvtstagn.cc

    r3572 r3615  
    88#include <math.h>
    99#include <unistd.h>
     10#include "sophyainit.h"
    1011#include "timing.h"
    1112#include "ntuple.h"
     
    1314#include "geneutils.h"
    1415#include "agnjackson.h"
     16#include "srandgen.h"
    1517
    1618void usage(void);
     
    2729int main(int narg,char *arg[])
    2830{
     31SophyaInit();
    2932 double angsol = 1.;  // sr
    3033 double lxmin=-3.,lxmax=4.; int nbinlx = -100;
     
    100103   for(long i=0;i<npix;i++) {
    101104     if(i%l==0) cout<<"...trial: "<<i<<endl;
    102      unsigned long n = PoissRandLimit(mu,10.);
     105     uint_8 n = Poisson(mu,10.);
    103106     hnobj.Add((double)n);
    104107     sumn += n; sumn2 += n*n;
Note: See TracChangeset for help on using the changeset viewer.