AmpGen
2.1
Toggle main menu visibility
Loading...
Searching...
No Matches
kMatrix.h
Go to the documentation of this file.
1
#ifndef AMPGEN_KMATRIX_H
2
#define AMPGEN_KMATRIX_H
3
4
#include "
AmpGen/Expression.h
"
5
#include "
AmpGen/Tensor.h
"
6
#include "
AmpGen/Lineshapes.h
"
7
8
namespace
AmpGen
{
9
namespace
Lineshape
{
23
DECLARE_LINESHAPE
(kMatrix);
24
}
25
26
struct
poleConfig
{
27
Expression
s
;
28
std::vector<Expression>
couplings
;
29
std::vector<Expression>
bl_factors
;
30
poleConfig
(
const
Expression
&
s
,
const
std::vector<Expression> &c = {}) :
s
(
s
),
couplings
(c),
bl_factors
(c.size(), 1) {};
31
32
void
add
(
const
Expression
&
coupling
,
const
Expression
&bl_factor = 1) {
33
couplings
.push_back(
coupling
);
34
bl_factors
.push_back(bl_factor);
35
}
36
const
Expression
coupling
(
const
unsigned
&i)
const
{
return
couplings
[i] *
bl_factors
[i]; }
37
const
Expression
g
(
const
unsigned
&i)
const
{
return
couplings
[i]; }
38
};
39
40
Tensor
constructKMatrix
(
const
Expression
&s,
const
unsigned
&nChannels,
const
std::vector<poleConfig> &poleConfigs);
41
42
Expression
phsp_twoBody
(
const
Expression
&s,
const
double
&m0,
const
double
&m1);
43
Expression
phsp_fourPi
(
const
Expression
&s);
44
Expression
phsp_FOCUS
(
const
Expression
&s,
const
double
&m0,
const
double
&m1);
45
Expression
gFromGamma
(
const
Expression
&m,
const
Expression
&gamma,
const
Expression
&rho);
46
47
std::vector<Variable>
paramVector
(
const
std::string &name,
const
unsigned
int
&nParam);
48
49
Tensor
getPropagator
(
const
Tensor
&kMatrix,
const
std::vector<Expression> &
phaseSpace
,
DebugSymbols
*db =
nullptr
);
50
}
// namespace AmpGen
51
52
#endif
/* end of include guard: AMPGEN_KMATRIX_H */
Expression.h
Lineshapes.h
DECLARE_LINESHAPE
#define DECLARE_LINESHAPE(X)
Definition
Lineshapes.h:44
Tensor.h
AmpGen::Expression
Wrapper class for shared_ptrs to virtual expressions for use in conjunction with operators to build e...
Definition
Expression.h:135
AmpGen::Tensor
Definition
Tensor.h:29
AmpGen::Lineshape
Namespace that contains all lineshapes, i.e.
Definition
CoupledChannel.h:6
AmpGen
Definition
AddCPConjugate.h:2
AmpGen::phsp_fourPi
Expression phsp_fourPi(const Expression &s)
AmpGen::paramVector
std::vector< Variable > paramVector(const std::string &name, const unsigned int &nParam)
AmpGen::phsp_FOCUS
Expression phsp_FOCUS(const Expression &s, const double &m0, const double &m1)
AmpGen::phaseSpace
Expression phaseSpace(const Expression &s, const Particle &p, const size_t &l)
AmpGen::phsp_twoBody
Expression phsp_twoBody(const Expression &s, const double &m0, const double &m1)
AmpGen::gFromGamma
Expression gFromGamma(const Expression &m, const Expression &gamma, const Expression &rho)
AmpGen::DebugSymbols
std::vector< DebugSymbol > DebugSymbols
Definition
Expression.h:111
AmpGen::getPropagator
Tensor getPropagator(const Tensor &kMatrix, const std::vector< Expression > &phaseSpace, DebugSymbols *db=nullptr)
AmpGen::constructKMatrix
Tensor constructKMatrix(const Expression &s, const unsigned &nChannels, const std::vector< poleConfig > &poleConfigs)
AmpGen::poleConfig::add
void add(const Expression &coupling, const Expression &bl_factor=1)
Definition
kMatrix.h:32
AmpGen::poleConfig::s
Expression s
Definition
kMatrix.h:27
AmpGen::poleConfig::bl_factors
std::vector< Expression > bl_factors
Definition
kMatrix.h:29
AmpGen::poleConfig::coupling
const Expression coupling(const unsigned &i) const
Definition
kMatrix.h:36
AmpGen::poleConfig::couplings
std::vector< Expression > couplings
Definition
kMatrix.h:28
AmpGen::poleConfig::poleConfig
poleConfig(const Expression &s, const std::vector< Expression > &c={})
Definition
kMatrix.h:30
AmpGen::poleConfig::g
const Expression g(const unsigned &i) const
Definition
kMatrix.h:37
AmpGen
kMatrix.h
Generated on
for AmpGen by
1.17.0