File indexing completed on 2026-08-06 09:24:00
0001
0002 #ifndef Herwig_KMatrix_H
0003 #define Herwig_KMatrix_H
0004
0005
0006
0007
0008 #include "ThePEG/Interface/Interfaced.h"
0009 #include "Herwig/Decay/IsoSpin.h"
0010 #include "KMatrix.fh"
0011 #include <boost/numeric/ublas/matrix.hpp>
0012 #include "Herwig/Utilities/Interpolator.h"
0013
0014 namespace Herwig {
0015 namespace ublas = boost::numeric::ublas;
0016 using namespace ThePEG;
0017
0018
0019
0020
0021
0022
0023
0024
0025 class KMatrix: public Interfaced {
0026
0027 public:
0028
0029
0030
0031
0032 enum Channels { PiPi, KPi, KEta, KEtaPrime, KK, EtaEta,EtaEtaPrime,FourPi};
0033
0034 public:
0035
0036
0037
0038
0039 KMatrix(FlavourInfo flavour=FlavourInfo(),
0040 vector<Channels> channels=vector<Channels>(),
0041 vector<Energy2> poles=vector<Energy2>(),
0042 vector<vector<Energy> > g=vector<vector<Energy> >());
0043
0044
0045
0046
0047 FlavourInfo flavourInfo() const {
0048 return flavour_;
0049 };
0050
0051
0052
0053
0054
0055
0056 virtual ublas::matrix<double> K(Energy2 s, bool multiplyByPoles=false) const = 0;
0057
0058
0059
0060
0061 virtual ublas::matrix<Complex> rho(Energy2 s) const;
0062
0063
0064
0065
0066 const vector<Energy2> & poles() const {return poles_;}
0067
0068
0069
0070
0071 const vector<vector<Energy> > & poleCouplings() const {return g_;}
0072
0073
0074
0075
0076
0077 virtual ublas::vector<Complex>
0078 amplitudes(Energy2 s, ublas::vector<Complex> pVector,
0079 bool multiplyByPoles=false) const;
0080
0081
0082
0083
0084 unsigned int numberOfChannels() {return channels_.size();}
0085
0086
0087
0088
0089 string setCouplings(string arg);
0090
0091
0092
0093
0094 string setPoles(string arg);
0095
0096 public:
0097
0098
0099
0100
0101
0102
0103
0104 void persistentOutput(PersistentOStream & os) const;
0105
0106
0107
0108
0109
0110
0111 void persistentInput(PersistentIStream & is, int version);
0112
0113
0114
0115
0116
0117
0118
0119
0120 static void Init();
0121
0122 protected:
0123
0124
0125
0126
0127
0128
0129
0130
0131 virtual void doinit();
0132
0133
0134 private:
0135
0136
0137
0138
0139
0140 KMatrix & operator=(const KMatrix &) = delete;
0141
0142 private:
0143
0144
0145
0146
0147 FlavourInfo flavour_;
0148
0149
0150
0151
0152 vector<Channels> channels_;
0153
0154
0155
0156
0157 vector<Energy2> poles_;
0158
0159
0160
0161
0162 vector<vector<Energy> > g_;
0163
0164 private:
0165
0166
0167
0168
0169
0170
0171
0172
0173 Energy mPiPlus_;
0174
0175
0176
0177
0178 Energy mPi0_;
0179
0180
0181
0182
0183 Energy mKPlus_;
0184
0185
0186
0187
0188 Energy mK0_;
0189
0190
0191
0192
0193 Energy mEta_;
0194
0195
0196
0197
0198 Energy mEtaPrime_;
0199
0200
0201
0202
0203
0204
0205
0206
0207
0208 bool initTable_;
0209
0210
0211
0212
0213 double rho0_;
0214
0215
0216
0217
0218 double n_;
0219
0220
0221
0222
0223 vector<Energy2> en_;
0224
0225
0226
0227
0228 vector<double> rho_;
0229
0230
0231
0232
0233 mutable Interpolator<double,Energy2>::Ptr inter_;
0234
0235 };
0236
0237 }
0238
0239 #endif