Define a Reaction list for Tally multiplicator inputs. More...
#include <Tally.hxx>
Public Member Functions | |
| Reaction (const Reaction &r) | |
| Copy constructor. More... | |
| Reaction (int code) | |
| Build a Reaction with a given code. More... | |
| void | Add (int code) |
| Add a reaction (e.g. fission+capture) More... | |
| void | Multiply (int code) |
| multiply reaction (e.g. nu*fission) More... | |
| string | Print () |
| Print a reaction list. More... | |
| vector< int > | GetCode () |
| return the reaction code array More... | |
| bool | operator== (const Reaction r) const |
| true if 2 reactions are identical More... | |
Private Attributes | |
| vector< int > | fCode |
| the reaction code list More... | |
| vector< char > | fOperator |
| the operator list (":" for addition, " " for multiplicatio) More... | |
Define a Reaction list for Tally multiplicator inputs.
Multiplication of reactions are needed for Nu*Sigma_fission.
reaction codes are based on ENDF MT: +(-)1=total(w/o thermal treatment), 2=absorption, 3=elastic scattering -6=fission, 102=capture,...
| Reaction::Reaction | ( | const Reaction & | r | ) |
Copy constructor.
|
inline |
Build a Reaction with a given code.
| void Reaction::Add | ( | int | code | ) |
Add a reaction (e.g. fission+capture)
|
inline |
return the reaction code array
| void Reaction::Multiply | ( | int | code | ) |
multiply reaction (e.g. nu*fission)
| bool Reaction::operator== | ( | const Reaction | r | ) | const |
true if 2 reactions are identical
| string Reaction::Print | ( | ) |
Print a reaction list.
|
private |
the reaction code list
|
private |
the operator list (":" for addition, " " for multiplicatio)