Kariba
Loading...
Searching...
No Matches
kariba::Radiation Class Reference

Base class for photon/neutrino distributions. More...

#include <Radiation.hpp>

Inheritance diagram for kariba::Radiation:
kariba::BBody kariba::Compton kariba::Cyclosyn kariba::Grays kariba::Neutrinos_pg kariba::Neutrinos_pp kariba::ShSDisk

Public Member Functions

 Radiation (size_t size)
 
const std::vector< double > & get_energy () const
 
const std::vector< double > & get_nphot () const
 
const std::vector< double > & get_energy_obs () const
 
const std::vector< double > & get_nphot_obs () const
 
size_t get_size () const
 
double get_volume () const
 
double integrated_luminosity (double numin, double numax)
 
void set_beaming (double theta, double speed, double doppler)
 Methods to set viewing angle, beaming and geometry of emission region.
 
void set_inclination (double theta)
 
void set_geometry (const std::string &geom, double l1, double l2)
 
void set_geometry (const std::string &geom, double l1)
 
void set_counterjet (bool flag)
 Method to include a counterjet in cyclosycnchrotron/Compton classes.
 
void test_arrays ()
 Simple method to check arrays; only meant for debugging.
 

Protected Attributes

std::vector< double > en_phot
 array of photon energies
 
std::vector< double > num_phot
 array of number of photons in units of erg/s/Hz
 
std::vector< double > en_phot_obs
 same as above but in observer frame
 
std::vector< double > num_phot_obs
 same as above but in observer frame
 
double r
 
double z
 Dimensions of emitting region.
 
double vol
 Volume of emitting region.
 
double beta
 speed of the emitting region
 
double dopfac
 
double angle
 Viewing angle/Doppler factor of emitting region.
 
double dopnum
 Doppler boosting exponent, depends on geometry.
 
bool counterjet
 boolean switch if user wants to include counterjet emission
 
std::string geometry
 string to track geometry of emitting region
 

Detailed Description

Base class for photon/neutrino distributions.

Constructor & Destructor Documentation

◆ Radiation()

kariba::Radiation::Radiation ( size_t  size)

Member Function Documentation

◆ get_energy()

const std::vector< double > & kariba::Radiation::get_energy ( ) const
inline

◆ get_energy_obs()

const std::vector< double > & kariba::Radiation::get_energy_obs ( ) const
inline

◆ get_nphot()

const std::vector< double > & kariba::Radiation::get_nphot ( ) const
inline

◆ get_nphot_obs()

const std::vector< double > & kariba::Radiation::get_nphot_obs ( ) const
inline

◆ get_size()

size_t kariba::Radiation::get_size ( ) const
inline

◆ get_volume()

double kariba::Radiation::get_volume ( ) const
inline

◆ integrated_luminosity()

double kariba::Radiation::integrated_luminosity ( double  numin,
double  numax 
)

Simple integration method to integrate num_phot_obs and get the luminosity between numin and numax

◆ set_beaming()

void kariba::Radiation::set_beaming ( double  theta,
double  speed,
double  doppler 
)

Methods to set viewing angle, beaming and geometry of emission region.

◆ set_counterjet()

void kariba::Radiation::set_counterjet ( bool  flag)

Method to include a counterjet in cyclosycnchrotron/Compton classes.

◆ set_geometry() [1/2]

void kariba::Radiation::set_geometry ( const std::string &  geom,
double  l1 
)

◆ set_geometry() [2/2]

void kariba::Radiation::set_geometry ( const std::string &  geom,
double  l1,
double  l2 
)

◆ set_inclination()

void kariba::Radiation::set_inclination ( double  theta)

◆ test_arrays()

void kariba::Radiation::test_arrays ( )

Simple method to check arrays; only meant for debugging.

Member Data Documentation

◆ angle

double kariba::Radiation::angle
protected

Viewing angle/Doppler factor of emitting region.

◆ beta

double kariba::Radiation::beta
protected

speed of the emitting region

◆ counterjet

bool kariba::Radiation::counterjet
protected

boolean switch if user wants to include counterjet emission

◆ dopfac

double kariba::Radiation::dopfac
protected

◆ dopnum

double kariba::Radiation::dopnum
protected

Doppler boosting exponent, depends on geometry.

◆ en_phot

std::vector<double> kariba::Radiation::en_phot
protected

array of photon energies

◆ en_phot_obs

std::vector<double> kariba::Radiation::en_phot_obs
protected

same as above but in observer frame

◆ geometry

std::string kariba::Radiation::geometry
protected

string to track geometry of emitting region

◆ num_phot

std::vector<double> kariba::Radiation::num_phot
protected

array of number of photons in units of erg/s/Hz

◆ num_phot_obs

std::vector<double> kariba::Radiation::num_phot_obs
protected

same as above but in observer frame

◆ r

double kariba::Radiation::r
protected

◆ vol

double kariba::Radiation::vol
protected

Volume of emitting region.

◆ z

double kariba::Radiation::z
protected

Dimensions of emitting region.


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