#include <PhotoAbsCS.h>
Definition at line 225 of file PhotoAbsCS.h.
◆ PhenoPhotoAbsCS() [1/2]
Heed::PhenoPhotoAbsCS::PhenoPhotoAbsCS |
( |
void |
| ) |
|
Definition at line 740 of file PhotoAbsCS.cpp.
740: PhotoAbsCS("none", 0, 0.0), power(0.0) {}
◆ PhenoPhotoAbsCS() [2/2]
Heed::PhenoPhotoAbsCS::PhenoPhotoAbsCS |
( |
const String & |
fname, |
|
|
int |
fZ, |
|
|
double |
fthreshold, |
|
|
double |
fpower = 2.75 |
|
) |
| |
Definition at line 742 of file PhotoAbsCS.cpp.
744 : PhotoAbsCS(fname, fZ, fthreshold), power(fpower) {
745 mfunname(
"PhenoPhotoAbsCS::PhenoPhotoAbsCS");
747 " cannot be so, otherwise the integral is infinite",
mcerr);
748 factor =
750}
DoubleAc pow(const DoubleAc &f, double p)
#define check_econd11a(a, signb, add, stream)
const double Thomas_sum_rule_const_Mb
◆ ~PhenoPhotoAbsCS()
virtual Heed::PhenoPhotoAbsCS::~PhenoPhotoAbsCS |
( |
| ) |
|
|
inlinevirtual |
◆ get_CS()
double Heed::PhenoPhotoAbsCS::get_CS |
( |
double |
energy | ) |
const |
|
virtual |
Definition at line 752 of file PhotoAbsCS.cpp.
752 {
753 if (energy < threshold || energy == DBL_MAX) return 0.0;
754 return factor * (
pow(energy, -power));
755}
◆ get_integral_CS()
double Heed::PhenoPhotoAbsCS::get_integral_CS |
( |
double |
energy1, |
|
|
double |
energy2 |
|
) |
| const |
|
virtual |
Definition at line 757 of file PhotoAbsCS.cpp.
757 {
758
759 if (energy2 < threshold) return 0.0;
760 if (energy1 < threshold) energy1 = threshold;
761 double s;
762 if (energy2 == DBL_MAX) {
763 s = factor / (power - 1.) * (1. /
pow(energy1, power - 1.));
764 } else {
765 s = factor / (power - 1.) *
766 (1. /
pow(energy1, power - 1.) - 1. /
pow(energy2, power - 1.));
767 }
768 return s;
769}
◆ macro_copy_total()
◆ print()
void Heed::PhenoPhotoAbsCS::print |
( |
std::ostream & |
file, |
|
|
int |
l |
|
) |
| const |
|
virtual |
Definition at line 776 of file PhotoAbsCS.cpp.
776 {
777 if (l > 0) {
778 Ifile <<
"PhenoPhotoAbsCS: name=" << name <<
" Z = " << Z << std::endl;
779 Ifile <<
" threshold = " << threshold <<
" power=" << power
780 << " factor=" << factor << std::endl;
781 }
782}
◆ scale()
void Heed::PhenoPhotoAbsCS::scale |
( |
double |
fact | ) |
|
|
virtual |
Definition at line 771 of file PhotoAbsCS.cpp.
771 {
772 mfunnamep(
"void PhenoPhotoAbsCS::scale(double fact)");
773 factor *= fact;
774}
#define mfunnamep(string)
The documentation for this class was generated from the following files: