#include <PhotoAbsCS.h>
Definition at line 145 of file PhotoAbsCS.h.
◆ HydrogenPhotoAbsCS()
Heed::HydrogenPhotoAbsCS::HydrogenPhotoAbsCS |
( |
void |
| ) |
|
Definition at line 368 of file PhotoAbsCS.cpp.
369 : PhotoAbsCS("H", 1, 15.43e-6), prefactor(1.) {}
◆ ~HydrogenPhotoAbsCS()
virtual Heed::HydrogenPhotoAbsCS::~HydrogenPhotoAbsCS |
( |
| ) |
|
|
inlinevirtual |
◆ get_CS()
double Heed::HydrogenPhotoAbsCS::get_CS |
( |
double |
energy | ) |
const |
|
virtual |
Definition at line 371 of file PhotoAbsCS.cpp.
371 {
372 if (energy < threshold) {
373 return 0.0;
374 } else {
375 if (energy != DBL_MAX) {
376 return 0.5 *
377 prefactor * 0.0535 * (
pow(100.0e-6 / energy, 3.228));
378 } else {
379 return 0.0;
380 }
381 }
382}
DoubleAc pow(const DoubleAc &f, double p)
◆ get_integral_CS()
double Heed::HydrogenPhotoAbsCS::get_integral_CS |
( |
double |
energy1, |
|
|
double |
energy2 |
|
) |
| const |
|
virtual |
Definition at line 384 of file PhotoAbsCS.cpp.
385 {
386 if (energy2 < threshold) {
387 return 0.0;
388 } else {
389 if (energy1 < threshold) {
390 energy1 = threshold;
391 }
392 if (energy2 == DBL_MAX) {
393 return 0.5 *
394 prefactor * 0.0535 *
pow(100.0e-6, 3.228) / 2.228 *
395 (1.0 /
pow(energy1, 2.228));
396 } else {
397 return 0.5 *
398 prefactor * 0.0535 *
pow(100.0e-6, 3.228) / 2.228 *
399 (1.0 /
pow(energy1, 2.228) - 1.0 /
pow(energy2, 2.228));
400 }
401 }
402}
◆ macro_copy_total()
◆ print()
void Heed::HydrogenPhotoAbsCS::print |
( |
std::ostream & |
file, |
|
|
int |
l |
|
) |
| const |
|
virtual |
Definition at line 406 of file PhotoAbsCS.cpp.
406 {
407 if (l > 0) {
408 Ifile <<
"HydrogenPhotoAbsCS: name=" << name <<
" Z = " << Z
409 << " threshold = " << threshold << std::endl;
410 }
411}
◆ scale()
void Heed::HydrogenPhotoAbsCS::scale |
( |
double |
fact | ) |
|
|
virtual |
The documentation for this class was generated from the following files: