Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

GRBobsConstants.h

00001 
00013 #ifndef GRB_OBS_CONSTANTS_H
00014 #define GRB_OBS_CONSTANTS_H 
00015 
00016 #include <cmath>
00017 
00018 
00019 namespace grbcst
00020 {
00021     const int     ndecs       = 3;
00022     const int     binsperdec  = 5;
00023     const int     nbins       = ndecs * binsperdec;
00024     const int     ntotal      = 667;
00025     
00026     const double  degInPi     = 180.0 / M_PI;
00027     const double  dynrange    = 3;
00028     const double  ethresLAT   = 0.03;
00029     const double  ethresGBM   = 30.0;
00030     const double  zenNorm     = cos(0) - cos(75. / degInPi);
00031     const double  minwid      = 0.01;
00032     const double  maxwid      = 10.0;
00033     const double  logfac0     = pow((maxwid/minwid), (1./nbins));
00034     const double  yr_frac     = 1.0;
00035     const double  alpha       = 1.0;
00036     const double  logdyn      = log10(dynrange);
00037     const double  nu          = 1.5;
00038     const double  timres      = 0.001;
00039     const double  frackeep    = 0.01;
00040     
00041     const long    seed        = 83498275L;
00042     const long    nglast_yr   = long(ntotal * (zenNorm/2));
00043     const long    nbsim       = long(yr_frac * nglast_yr + 0.5);        // number of bursts
00044     //  const long    nbsim       = 1;  // number of bursts
00045 }
00046 
00047 
00048 namespace grbobstypes
00049 {
00050     typedef std::vector<long>::iterator LongIter;
00051     typedef std::vector<double>::iterator DoubleIter;
00052     typedef std::vector<int>::iterator IntIter;
00053     typedef std::vector<int>::size_type IntSize;
00054     typedef std::vector<long>::const_iterator LongConstIter;
00055     typedef std::vector<double>::const_iterator DoubleConstIter;
00056     typedef std::vector<double>::size_type DoubleSize;
00057     typedef std::vector<long>::size_type LongSize;
00058 }
00059 
00060 #endif
00061 
00062 

Generated on Mon Jan 27 11:43:32 2003 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001