9 namespace HelicityFormalism {
14 double J,
double MuPrime,
double Mu,
22 auto tr = std::make_shared<ComPWA::FunctionTree::TreeNode>(
23 MComplex(
"", 0), std::make_shared<WignerDStrategy>());
36 std::shared_ptr<ComPWA::FunctionTree::Parameter> &out) {
38 if (out && checkType != out->type()) {
40 std::string(
" conflicts expected type ") +
41 ParNames[checkType] + std::string(
" of ") + Name +
53 size_t n = thetas->values().size();
58 auto &results = par->
values();
59 if (results.size() != n) {
62 for (
unsigned int ele = 0; ele < n; ele++) {
65 J, muPrime, mu, phis->values()[ele], thetas->values()[ele], 0.0);
66 }
catch (std::exception &ex) {
67 LOG(ERROR) <<
"WignerDStrategy::execute() | " << ex.what();
68 throw std::runtime_error(
"WignerDStrategy::execute() | " 69 "Evaluation of dynamical function failed!");
static const char *const ParNames[7]
Names of the parameter types, should be extended if an new parameter type is added.
std::shared_ptr< TreeNode > createLeaf(std::shared_ptr< Parameter > parameter)
std::shared_ptr< Value< std::vector< std::complex< double > > > > MComplex(std::string name, size_t s, std::complex< double > el=std::complex< double >(0., 0.))
virtual T & values()
Reference on the value.
This class provides a list of parameters and values of different types.
virtual std::shared_ptr< Value< std::vector< double > > > mDoubleValue(size_t i) const
virtual std::shared_ptr< Value< double > > doubleValue(size_t i) const