MURE
|
Define a Reaction list for Tally multiplicator inputs. More...
#include <Reaction.hxx>
Public Member Functions | |
Reaction () | |
~Reaction () | |
Reaction (const Reaction &r) | |
Copy desctructor. | |
Reaction (int code) | |
Build a Reaction with a given code. | |
void | Add (int code) |
Add a reaction (e.g. fission+capture) | |
void | Multiply (int code) |
multiply reaction (e.g. nu*fission) | |
string | Print () const |
Print a reaction list. | |
vector< int > | GetCode () const |
bool | operator== (const Reaction r) const |
true if 2 reactions are identical | |
Private Attributes | |
vector< int > | fCode |
the reaction code list | |
vector< char > | fOperator |
the operator list (":" for addition, " " for multiplicatio) | |
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=elastic scattering, 16=(n,2n) -6=fission, 102=capture, ...
Reaction::Reaction | ( | ) |
Reaction::~Reaction | ( | ) |
Reaction::Reaction | ( | const Reaction & | r | ) |
Copy desctructor.
Reaction::Reaction | ( | int | code | ) |
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 | ( | ) | const |
Print a reaction list.
|
private |
the reaction code list
|
private |
the operator list (":" for addition, " " for multiplicatio)