This commit is contained in:
amandalund 2018-08-30 11:39:12 -05:00
parent d81f1b9c7b
commit 6db62984d7
7 changed files with 72 additions and 125 deletions

View file

@ -14,9 +14,11 @@ Reaction::Reaction(hid_t group, const std::vector<int>& temperatures)
{
read_attribute(group, "Q_value", q_value_);
read_attribute(group, "mt", mt_);
int cm;
read_attribute(group, "center_of_mass", cm);
scatter_in_cm_ = (cm == 1);
int tmp;
read_attribute(group, "center_of_mass", tmp);
scatter_in_cm_ = (tmp == 1);
read_attribute(group, "summed", tmp);
summed_ = (tmp == 1);
// Read cross section and threshold_idx data
for (auto t : temperatures) {
@ -85,6 +87,8 @@ double reaction_q_value(Reaction* rx) { return rx->q_value_; }
bool reaction_scatter_in_cm(Reaction* rx) { return rx->scatter_in_cm_; }
bool reaction_summed(Reaction* rx) { return rx->summed_; }
double reaction_product_decay_rate(Reaction* rx, int product)
{
return rx->products_[product - 1].decay_rate_;