12const double Absorption::kU = 1.660539066e-24;
14Absorption::Absorption() {}
21 vector<double> p_trans_vec;
23 for (
int i = 0; i < int(
fNuPaths.size()); i++) {
26 double p_trans = exp(-l * n * xsec);
27 p_trans_vec.push_back(p_trans);
31 return accumulate(p_trans_vec.begin(), p_trans_vec.end(), 1.,
32 multiplies<double>());
virtual void SetPath(std::vector< NuPath > paths)
Set a path sequence.
std::vector< NuPath > fNuPaths
Vector of neutrino paths.
static const double kU
Atomic mass unit.
virtual double Trans(double xsec)
Some useful general definitions.