a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
WilsonCoefficientNew Class Reference

A class for the Wilson coefficients. More...

#include <WilsonCoefficientNew.h>

+ Inheritance diagram for WilsonCoefficientNew:

Detailed Description

A class for the Wilson coefficients.

Author
HEPfit Collaboration

Definition at line 22 of file WilsonCoefficientNew.h.

Public Member Functions

Expanded< gslpp::vector< gslpp::complex > > getCoeff () const
 
gslpp::vector< gslpp::complex > getCoeff (qcd_orders order_qcd_i, qed_orders order_qed_i=QED0) const
 
Expanded< gslpp::complex > getCoeffElement (int i) const
 
void resetCoeff ()
 
void setCoeff (const Expanded< gslpp::vector< gslpp::complex > > wc)
 
void setCoeff (const gslpp::vector< gslpp::complex > &v, qcd_orders order_qcd_i, qed_orders order_qed_i=QED0)
 
void setCoeff (int i, gslpp::complex z, qcd_orders order_qcd_i, qed_orders order_qed_i=QED0)
 
 WilsonCoefficientNew (unsigned int dim, schemes scheme, qcd_orders order_qcd, qed_orders order_qed=QED0)
 
- Public Member Functions inherited from WilsonTemplateNew< gslpp::vector< gslpp::complex > >
double getMu () const
 
qcd_orders getOrder_QCD () const
 
qed_orders getOrder_QED () const
 
schemes getScheme () const
 
unsigned int getSize () const
 
const gslpp::vector< gslpp::complex > & getWilson (qcd_orders order_qcd_i, qed_orders order_qed_i=QED0) const
 
void resetWilson ()
 
void setMu (double mu)
 
void setScheme (schemes scheme)
 
 WilsonTemplateNew (unsigned int size_i, schemes scheme_i, qcd_orders order_qcd_i, qed_orders order_qed_i=QED0)
 

Additional Inherited Members

- Protected Member Functions inherited from WilsonTemplateNew< gslpp::vector< gslpp::complex > >
Expanded< gslpp::vector< gslpp::complex > > getWilson () const
 
void setWilson (const gslpp::vector< gslpp::complex > &v, qcd_orders order_qcd_i, qed_orders order_qed_i=QED0)
 
- Protected Attributes inherited from WilsonTemplateNew< gslpp::vector< gslpp::complex > >
double mu
 
qcd_orders order_qcd
 
qed_orders order_qed
 
schemes scheme
 
unsigned int size
 
Expanded< gslpp::vector< gslpp::complex > > wilson
 

Constructor & Destructor Documentation

◆ WilsonCoefficientNew()

WilsonCoefficientNew::WilsonCoefficientNew ( unsigned int  dim,
schemes  scheme,
qcd_orders  order_qcd,
qed_orders  order_qed = QED0 
)

Member Function Documentation

◆ getCoeff() [1/2]

Expanded< gslpp::vector< gslpp::complex > > WilsonCoefficientNew::getCoeff ( ) const

Definition at line 62 of file WilsonCoefficientNew.cpp.

62 {
63 return getWilson();
64}
Expanded< gslpp::vector< gslpp::complex > > getWilson() const

◆ getCoeff() [2/2]

gslpp::vector< gslpp::complex > WilsonCoefficientNew::getCoeff ( qcd_orders  order_qcd_i,
qed_orders  order_qed_i = QED0 
) const

Definition at line 58 of file WilsonCoefficientNew.cpp.

58 {
59 return getWilson(order_qcd_i, order_qed_i);
60}

◆ getCoeffElement()

Expanded< gslpp::complex > WilsonCoefficientNew::getCoeffElement ( int  i) const

Definition at line 16 of file WilsonCoefficientNew.cpp.

16 {
17 Expanded<gslpp::complex> ret;
18
19 if (i >= size) {
20 std::stringstream out;
21 out << i;
22 throw std::runtime_error("WilsonTemplate::getCoeff(): requested element " + out.str() +
23 " not present in the object");
24 }
25 std::vector<std::vector<gslpp::complex> > obj(wilson.getN1());
26 for (int j = 0; j < wilson.getN1(); j++)
27 for (int k = 0; k < wilson.getN2().at(j); k++)
28 obj[j].push_back(wilson.getOrd(j, k)(i));
29 return (Expanded<gslpp::complex>(obj));
30};
Expanded< gslpp::vector< gslpp::complex > > wilson

◆ resetCoeff()

void WilsonCoefficientNew::resetCoeff ( )

◆ setCoeff() [1/3]

void WilsonCoefficientNew::setCoeff ( const Expanded< gslpp::vector< gslpp::complex > >  wc)

Definition at line 66 of file WilsonCoefficientNew.cpp.

66 {
67 wilson = wc;
68}

◆ setCoeff() [2/3]

void WilsonCoefficientNew::setCoeff ( const gslpp::vector< gslpp::complex > &  v,
qcd_orders  order_qcd_i,
qed_orders  order_qed_i = QED0 
)

Definition at line 50 of file WilsonCoefficientNew.cpp.

50 {
51 setWilson(v, order_qcd_i, order_qed_i);
52}
void setWilson(const gslpp::vector< gslpp::complex > &v, qcd_orders order_qcd_i, qed_orders order_qed_i=QED0)

◆ setCoeff() [3/3]

void WilsonCoefficientNew::setCoeff ( int  i,
gslpp::complex  z,
qcd_orders  order_qcd_i,
qed_orders  order_qed_i = QED0 
)

Definition at line 32 of file WilsonCoefficientNew.cpp.

32 {
33 if (i >= size) {
34 std::stringstream out;
35 out << i;
36 throw std::runtime_error("WilsonTemplate::setCoeff(): coefficient index "
37 + out.str() + " out of range");
38 }
39 if (order_qcd_i > order_qcd || order_qed_i > order_qed) {
40 std::stringstream out;
41 out << order_qcd_i << " and " << order_qed_i;
42 throw std::runtime_error("WilsonTemplate::setCoeff(): order " + out.str() +
43 " not implemented ");
44 }
45 gslpp::vector<gslpp::complex> tmp = wilson.getOrd(order_qcd_i, order_qed_i);
46 tmp.assign(i, z);
47 wilson.setOrd(order_qcd_i, order_qed_i, tmp);
48}

The documentation for this class was generated from the following files: