Class Mag

Inheritance Relationships

Derived Types

Class Documentation

class Mag

abstract class to handle everything related to the computation of expected magnitudes

Subclassed by GalMag, QSOMag, StarMag

Public Functions

Mag(keymap &key_analysed)
inline Mag()
virtual ~Mag()
void read_ext()

read the extinction laws into attribute extAll (vector of vectors of type ext)

void read_B12()
void def_zgrid()

define the vector of redshifts, and associate to it vectors of age and distance modulus, based on the lcdm attribute

inline void set_zgrid(double dz, double zmin, double zmax)

helper function to set the grid of redshift

Parameters:
  • dz – : step in z in the grid

  • zmin – : minimum z

  • zmax – : maximum z

void write_doc()

Write in file sdocOut the documentation for the GALAXY/QSO/STAR case.

virtual void print_info()

print general information onscreen, valid for GAL/QSO/STAR objects

void open_files()

open all the input and output streams needed for the computations

void close_files()

close all opened files

virtual void read_SED() = 0

read SED files, apply extinction corrections, and store into a vector of instances of class SED

Public Static Functions

static ifstream open_opa_files()

open the IGM opacity files

static vector<opa> read_opa()

read the IGM opacities into attribute opaAll (vector of vectors of type opa)

static vector<flt> read_flt(const string&)

read the filter curve and build the corresponding vectors stored in attribute allFlt

Protected Attributes

object_type object
string config
cosmo lcdm
string filtFile
string magtyp
bool outasc
bool verbose
bool add_dust
vector<string> extlaw
int nextlaw
vector<double> ebv
int nebv
vector<int> modext
double dz
double zmin
double zmax
string lib
string colib
string emlines = "NO"
string sedlibFile
string docFile
string binOutFile
string datFile
ifstream ssedIn
ofstream sdocOut
ofstream sbinOut
ofstream sdatOut
vector<ext> extAll
vector<flt> allFlt
vector<GalSED> B12SED
vector<double> gridz
vector<double> gridT
vector<double> gridDM
vector<double> magko
vector<opa> opaAll