File indexing completed on 2026-08-06 09:24:13
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef Herwig_OpenLoopsAmplitude_H
0010 #define Herwig_OpenLoopsAmplitude_H
0011
0012
0013
0014
0015 #include "Herwig/MatrixElement/Matchbox/Base/MatchboxOLPME.h"
0016
0017 namespace Herwig {
0018
0019 using namespace ThePEG;
0020
0021
0022
0023
0024
0025
0026
0027 class OpenLoopsProcInfo{
0028
0029 public:
0030
0031
0032
0033
0034 OpenLoopsProcInfo() {}
0035
0036
0037
0038
0039 OpenLoopsProcInfo(int HID,int GID, string procstr,string typestr)
0040 : theHOlpId(HID), theGOlpId(GID), theProcstr(procstr), theTypestr(typestr) {}
0041
0042
0043
0044
0045 int HID() const { return theHOlpId; }
0046
0047
0048
0049
0050 int GID() const { return theGOlpId; }
0051
0052
0053
0054
0055 const string& Pstr() const { return theProcstr; }
0056
0057
0058
0059
0060 const string& Tstr() const { return theTypestr; }
0061
0062
0063
0064
0065 void setGID(int g) { theGOlpId=g; }
0066
0067
0068
0069
0070 void setOAs(int i) { orderAlphas=i; }
0071
0072
0073
0074
0075 int orderAs() { return orderAlphas; }
0076
0077 private:
0078
0079
0080
0081
0082 int theHOlpId;
0083
0084
0085
0086
0087 int theGOlpId;
0088
0089
0090
0091
0092 string theProcstr;
0093
0094
0095
0096
0097 string theTypestr;
0098
0099
0100
0101
0102 int orderAlphas;
0103
0104 public:
0105
0106
0107
0108
0109 void persistentOutput(PersistentOStream & os) const{
0110 os << theHOlpId << theGOlpId << theProcstr << theTypestr << orderAlphas;
0111 }
0112
0113
0114
0115
0116 void persistentInput(PersistentIStream &is) {
0117 is >> theHOlpId >> theGOlpId >> theProcstr >> theTypestr >> orderAlphas;
0118 }
0119
0120 };
0121
0122
0123
0124
0125
0126
0127
0128 class OpenLoopsAmplitude: public MatchboxOLPME {
0129
0130 public:
0131
0132
0133
0134
0135
0136
0137 OpenLoopsAmplitude();
0138
0139
0140
0141
0142 virtual ~OpenLoopsAmplitude();
0143
0144
0145 public:
0146
0147 virtual void fillOrderFile(const map<pair<Process,int>,int>& procs);
0148
0149
0150 virtual bool isCS() const { return false; }
0151 virtual bool isExpanded() const { return true; }
0152 virtual bool isBDK() const { return false; }
0153
0154
0155
0156
0157
0158
0159 virtual bool checkOLPContract();
0160
0161
0162
0163
0164 virtual void startOLP(const string&, int& status);
0165
0166
0167
0168
0169
0170
0171
0172
0173
0174
0175
0176
0177 virtual bool startOLP(const map<pair<Process,int>,int>& procs);
0178
0179
0180
0181
0182
0183
0184 virtual bool hasInitialAverage() const { return true; }
0185
0186
0187
0188
0189
0190 virtual bool hasFinalStateSymmetry() const { return true; }
0191
0192
0193
0194
0195 void evalSubProcess() const;
0196
0197
0198
0199
0200 virtual void evalColourCorrelator(pair<int,int> ij) const;
0201
0202
0203
0204
0205
0206 virtual void evalSpinColourCorrelator(pair<int,int> ij) const;
0207
0208
0209
0210
0211
0212 virtual double spinColourCorrelatedME2(pair<int,int> ij,
0213 const SpinCorrelationTensor& c) const;
0214
0215
0216 public:
0217
0218
0219
0220
0221
0222
0223
0224 void persistentOutput(PersistentOStream & os) const;
0225
0226
0227
0228
0229
0230
0231 void persistentInput(PersistentIStream & is, int version);
0232
0233
0234
0235
0236
0237
0238
0239
0240 static void Init();
0241
0242 protected:
0243
0244
0245
0246
0247
0248
0249
0250 virtual IBPtr clone() const;
0251
0252
0253
0254
0255
0256 virtual IBPtr fullclone() const;
0257
0258
0259 virtual void doinitrun();
0260
0261
0262
0263
0264
0265
0266 private:
0267
0268
0269
0270
0271
0272 OpenLoopsAmplitude & operator=(const OpenLoopsAmplitude &) = delete;
0273
0274
0275
0276
0277 mutable vector<double> colourCorrelatorResults;
0278
0279
0280
0281
0282 mutable vector<double> spinColourCorrelatorResults;
0283
0284
0285
0286
0287
0288 static vector< int > idpair;
0289
0290
0291
0292
0293
0294
0295 map<int , OpenLoopsProcInfo > processmap;
0296
0297
0298
0299
0300
0301 bool theHiggsEff;
0302
0303
0304
0305
0306
0307 bool use_cms;
0308
0309
0310
0311
0312
0313 bool theCollierLib=true;
0314
0315
0316
0317
0318
0319
0320 int psp_tolerance;
0321
0322
0323
0324
0325 static string OpenLoopsLibs_;
0326
0327
0328
0329
0330 static string OpenLoopsPrefix_;
0331
0332
0333
0334
0335
0336
0337 void setOpenLoopsLibs(string p);
0338 string getOpenLoopsLibs() const;
0339
0340 void setOpenLoopsPrefix(string p);
0341 string getOpenLoopsPrefix() const;
0342
0343
0344
0345
0346 };
0347
0348 }
0349
0350 #endif