WilsonCoefficient.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 HEPfit Collaboration
3  * All rights reserved.
4  *
5  * For the licensing terms see doc/COPYING.
6  */
7 
8 #include "WilsonCoefficient.h"
9 #include <sstream>
10 #include <stdexcept>
11 
12 void WilsonCoefficient::setCoeff(unsigned int i, gslpp::complex z, orders order_i)
13 {
14  if ((unsigned int) i > size) {
15  std::stringstream out;
16  out << i;
17  throw std::runtime_error("WilsonCoefficient::setCoeff(): coefficient index "
18  + out.str() + " out of range");
19  }
20  if (order_i > order) {
21  std::stringstream out;
22  out << order_i;
23  throw std::runtime_error("WilsonCoefficient::setCoeff(): order " + out.str() +
24  " not implemented ");
25  }
26  elem[order_i]->assign(i, z);
27 }
28 
29 void WilsonCoefficient::setCoeff(unsigned int i, gslpp::complex z, orders_ew order_ew_i)
30 {
31  if ((unsigned int) i > size) {
32  std::stringstream out;
33  out << i;
34  throw std::runtime_error("WilsonCoefficientEW::setCoeff(): coefficient index "
35  + out.str() + " out of range");
36  }
37  if (order_ew_i > order_ew) {
38  std::stringstream out;
39  out << order_ew_i;
40  throw std::runtime_error("WilsonCoefficientEW::setCoeff(): order_ew " + out.str() +
41  " not implemented ");
42  }
43  elem[order_ew_i]->assign(i, z);
44 }
45 
orders
An enum type for orders in QCD.
Definition: OrderScheme.h:31
void setCoeff(const gslpp::vector< gslpp::complex > &z, orders order_i)
orders_ew
An enum type for orders in electroweak.
Definition: OrderScheme.h:45
gslpp::vector< gslpp::complex > * elem[MAXORDER_EW+1]
A class for defining operations on and functions of complex numbers.
Definition: gslpp_complex.h:35