Class Mag
Defined in File mag.h
Inheritance Relationships
Derived Types
public GalMag(Class GalMag)public QSOMag(Class QSOMag)public StarMag(Class StarMag)
Class Documentation
-
class Mag
abstract class to handle everything related to the computation of expected magnitudes
Subclassed by GalMag, QSOMag, StarMag
Public Functions
-
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
Public Static Functions
-
static ifstream open_opa_files()
open the IGM opacity files
Protected Attributes
-
object_type object
-
string config
-
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<double> gridz
-
vector<double> gridT
-
vector<double> gridDM
-
vector<double> magko
-
inline Mag()