![]() |
AmpGen 2.1
|
Class to contain a parameter. In general, this will include global function parameters such as masses and widths, as well as the event buffer (i.e. kinematic quantities), which should be stored in two separated parameter packs. There is also limited support for handling more complex function parameters to functions, such as cache states, but this currently requires manually specifying the argument ordering.
Definition at line 181 of file Expression.h.
Public Member Functions | |
Parameter (const std::string &name="", const double &defaultValue=0, const bool &resolved=false) | |
std::string | to_string (const ASTResolver *resolver=nullptr) const override |
Called to convert the Expression tree into source code. | |
void | resolve (ASTResolver &resolver) const override |
Resolve the dependencies of a tree using an ASTResolver, which keeps track of parameters, dependent sub-trees, etc. | |
virtual | operator Expression () const |
complex_t | operator() () const override |
Evaluate the expression using the tree, will generally be very slow but ocassionally useful for debugging. | |
std::string | name () const |
const double & | defaultValue () const |
double & | defaultValue () |
bool | isResolved () const |
AmpGen::Parameter::Parameter | ( | const std::string & | name = "", |
const double & | defaultValue = 0, | ||
const bool & | resolved = false ) |
|
inline |
Definition at line 192 of file Expression.h.
|
inline |
Definition at line 191 of file Expression.h.
|
inline |
Definition at line 193 of file Expression.h.
|
inline |
Definition at line 190 of file Expression.h.
|
virtual |
|
inlineoverridevirtual |
Implements AmpGen::IExpression.
Definition at line 189 of file Expression.h.
|
overridevirtual |
resolver | resolver object to use |
Implements AmpGen::IExpression.
|
overridevirtual |
Implements AmpGen::IExpression.