BIE::PopModelCacheJMC Class Reference

Simple test galaxy model with one flux, one color and no caching. More...

#include <PopModelCacheJMC.h>

Inheritance diagram for BIE::PopModelCacheJMC:
Collaboration diagram for BIE::PopModelCacheJMC:

List of all members.

Public Member Functions

 PopModelCacheJMC ()
 Null constructor.
 PopModelCacheJMC (int ndim, int mdim, SampleDistribution *dist)
 Constructor.
 PopModelCacheJMC (float jmin, float jmax, float kmin, float kmax, float jkmin, float jkmax, int j, int k, int jk, int ndim, int mdim, SampleDistribution *dist)
 Constructor.
 ~PopModelCacheJMC ()
 Destructor.
void SetKnots (int num)
 Reset number of integration points.
void reset (float jmin, float jmax, float kmin, float kmax, float jkmin, float jkmax)
 re-set CMD boundaries
virtual double NormEval (double x, double y, SampleDistribution *d)
 Compute normalization of tiles.
virtual vector< double > Evaluate (double x, double y, SampleDistribution *d)
 Main method returning source density.
string ParameterDescription (int i)
 Label parameters.
int DataDimension ()
 Dimension of data attributes.
void Initialize (State &)
 Initialize state dependent part of calculation.
void Initialize (vector< double > &w, vector< double > *&p)

Static Public Attributes

static double R0
 Observers position (kpc) (default 8.0).
static double A1
 Extinction slab size (kpc) (default 15.0).
static double Z1
 Extinction slab height (pc) (default 150.0).
static double Z0
 Vertical position of sun (pc) (default 15.0).
static double EFAC
 Multiplicative extinction factor (default 1.0).
static double EXTRAD
 Extinction radius in color excess map (default: 1 sq deg).
static double RMIN
 Minimum radius (kpc) (default: 0.01 [10 pc]).
static double RMAX
 Maximum radius (kpc) (default: 20.0 [20 kpc]).
static bool RLOG
 Use logarithmic scaling for line-of-sight integration (default: false).
static double BURST
 Birth rate models.
static double NU
 Birth rate power law index.
static string DataDir
 File defining stellar classes.
static unsigned maxCache
 Maximum number of cache elements.
Global parameters
static int NUM
 Number of integration knots for Jacobi quadrature (default 200).
static double METAL
 Metallicity (default: 0.019).
static double ALPHA
 Jacobi quadrature parameters (default: 0, 0).
static double BETA
static bool RING
 Molecular ring and central extinction (default false).
static double RINGWIDTH
static double RINGAMP
static double RINGLOC
static double CENTERWIDTH
static double CENTERAMP
static double NEARBYWIDTH
static double NEARBYAMP
static double AMIN
 Limits for model parameters.
static double AMAX
static double HMIN
static double HMAX

Protected Member Functions

key_type key_convert (double L, double B)
 Index hash for the cache map.
bool getCacheElement (double L, double B)
 Get the element from the cache (or create it).
virtual void generate (double L, double B)
 Compute model predictions.
virtual void compute_bins (SampleDistribution *sd)
 Compute bins.
void check_bounds ()
 Check for good bounds.

Protected Attributes

ModelPopspops
 Population model.
vector< double > flux
 Point components.
int Nflux
 Number of data dimensions.
JacoQuad * intgr
 Integrator.
int M
 Number in mixture.
int Mcur
bool good_bounds
 Bounds flag.
EvalType type
 Evaluation type.
int nbins
 Histogram components.
vector< dvector > lowb
vector< dvector > highb
int nparam
 Stellar components.
vector< double > w
vector< dvector > pos
vector< dvector > sig
int Ndim
 Number of model dimensions.
vector< double > wt
vector< dvector > pt
vector< double > work
cache_map cache
 Cache variables.
deque< PopCacheJMC * > fifo
 This keeps track of element age.
PopCacheJMCcurElem
 The currently retrieved element.

Static Protected Attributes

static double Log10
 Constants.
static double onedeg

Friends

class boost::serialization::access


Detailed Description

Simple test galaxy model with one flux, one color and no caching.

Member Data Documentation

Birth rate models.

Birth rate burst fraction

cache_map BIE::PopModelCacheJMC::cache [protected]

Cache variables.

The elements mapped by key


The documentation for this class was generated from the following file:

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:13 2010 by doxygen