File indexing completed on 2026-08-06 09:24:15
0001
0002 #ifndef HERWIG_MEPP2GammaGammaPowheg_H
0003 #define HERWIG_MEPP2GammaGammaPowheg_H
0004
0005
0006
0007
0008 #include "Herwig/MatrixElement/HwMEBase.h"
0009 #include "ThePEG/Helicity/Vertex/Vector/FFVVertex.h"
0010 #include "Herwig/MatrixElement/ProductionMatrixElement.h"
0011 #include "Herwig/Shower/ShowerAlpha.h"
0012
0013 namespace Herwig {
0014
0015 using namespace ThePEG;
0016
0017
0018
0019
0020
0021
0022
0023 class MEPP2GammaGammaPowheg: public HwMEBase {
0024
0025 enum DipoleType { IIQCD1=2, IIQCD2=4,
0026 IFQED1=5, FIQED1=6, IFQED2=7, FIQED2=8 };
0027
0028 enum RadiationType {Subtraction,Hard,Shower};
0029
0030 public:
0031
0032
0033
0034
0035
0036
0037 MEPP2GammaGammaPowheg();
0038
0039
0040
0041
0042
0043
0044
0045 virtual POWHEGType hasPOWHEGCorrection() {return ISR;}
0046
0047
0048
0049
0050 virtual RealEmissionProcessPtr generateHardest(RealEmissionProcessPtr,
0051 ShowerInteraction);
0052
0053
0054 public:
0055
0056
0057
0058
0059
0060
0061
0062 virtual unsigned int orderInAlphaS() const;
0063
0064
0065
0066
0067
0068 virtual unsigned int orderInAlphaEW() const;
0069
0070
0071
0072
0073
0074
0075
0076
0077 virtual double me2() const;
0078
0079
0080
0081
0082 virtual Energy2 scale() const;
0083
0084
0085
0086
0087
0088 virtual int nDim() const;
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098 virtual bool generateKinematics(const double * r);
0099
0100
0101
0102
0103
0104 virtual CrossSection dSigHatDR() const;
0105
0106
0107
0108
0109 virtual void getDiagrams() const;
0110
0111
0112
0113
0114
0115
0116
0117
0118
0119 virtual Selector<DiagramIndex> diagrams(const DiagramVector & dv) const;
0120
0121
0122
0123
0124
0125
0126
0127
0128 virtual Selector<const ColourLines *>
0129 colourGeometries(tcDiagPtr diag) const;
0130
0131
0132 public:
0133
0134
0135
0136
0137
0138
0139
0140 void persistentOutput(PersistentOStream & os) const;
0141
0142
0143
0144
0145
0146
0147 void persistentInput(PersistentIStream & is, int version);
0148
0149
0150
0151
0152
0153
0154
0155
0156 static void Init();
0157
0158 protected:
0159
0160
0161
0162
0163 virtual double NLOWeight() const;
0164
0165
0166
0167
0168 double loGammaGammaME(const cPDVector & particles,
0169 const vector<Lorentz5Momentum> & momenta,
0170 bool first=false) const;
0171
0172
0173
0174
0175 double loGammaqME(const cPDVector & particles,
0176 const vector<Lorentz5Momentum> & momenta,
0177 bool first=false) const;
0178
0179
0180
0181
0182 double loGammaqbarME(const cPDVector & particles,
0183 const vector<Lorentz5Momentum> & momenta,
0184 bool first=false) const;
0185
0186
0187
0188
0189 double loGammagME(const cPDVector & particles,
0190 const vector<Lorentz5Momentum> & momenta,
0191 bool first=false) const;
0192
0193
0194
0195
0196 InvEnergy2 realGammaGammagME(const cPDVector & particles,
0197 const vector<Lorentz5Momentum> & momenta,
0198 DipoleType dipole, RadiationType rad,
0199 bool first=false) const;
0200
0201
0202
0203
0204 InvEnergy2 realGammaGammaqME(const cPDVector & particles,
0205 const vector<Lorentz5Momentum> & momenta,
0206 DipoleType dipole, RadiationType rad,
0207 bool first=false) const;
0208
0209
0210
0211
0212 InvEnergy2 realGammaGammaqbarME(const cPDVector & particles,
0213 const vector<Lorentz5Momentum> & momenta,
0214 DipoleType dipole, RadiationType rad,
0215 bool first=false) const;
0216
0217
0218
0219
0220 double subtractedVirtual() const;
0221
0222
0223
0224
0225 double subtractedReal(pair<double,double> x, double z,
0226 double zJac, double oldqPDF, double newqPDF,
0227 double newgPDF,bool order) const;
0228
0229
0230
0231
0232
0233
0234
0235
0236 double collinearQuark(double x, Energy2 mu2, double jac, double z,
0237 double oldPDF, double newPDF) const;
0238
0239
0240
0241
0242 double collinearGluon(Energy2 mu2, double jac, double z,
0243 double oldPDF, double newPDF) const;
0244
0245
0246
0247
0248
0249
0250
0251
0252 double realME(const cPDVector & particles,
0253 const vector<Lorentz5Momentum> & momenta) const;
0254
0255
0256
0257
0258 RealEmissionProcessPtr hardQCDEmission(RealEmissionProcessPtr,
0259 ParticleVector,
0260 pair<double,double>);
0261
0262
0263
0264
0265 RealEmissionProcessPtr hardQEDEmission(RealEmissionProcessPtr,
0266 ParticleVector,
0267 pair<double,double>);
0268
0269
0270
0271
0272 pair<double,double> supressionFunction(Energy pT,Energy scale) const {
0273 if(supressionScale_==0) scale = lambda_;
0274 Energy2 scale2 = sqr(scale), pT2 = sqr(pT);
0275 switch( supressionFunction_ ) {
0276 case 0:
0277 return make_pair(1.,0.);
0278 case 1:
0279 if(pT < scale ) return make_pair(1.,0.);
0280 else return make_pair(0.,1.);
0281 case 2:
0282 return make_pair(scale2/(pT2+scale2),pT2/(pT2+scale2));
0283 default:
0284 assert(false);
0285 return make_pair(0.,0.);
0286 }
0287 }
0288
0289
0290 protected:
0291
0292
0293
0294
0295
0296
0297
0298 virtual IBPtr clone() const;
0299
0300
0301
0302
0303
0304 virtual IBPtr fullclone() const;
0305
0306 protected:
0307
0308
0309
0310
0311
0312
0313
0314
0315 virtual void doinit();
0316
0317
0318 private:
0319
0320
0321
0322
0323
0324 MEPP2GammaGammaPowheg & operator=(const MEPP2GammaGammaPowheg &) = delete;
0325
0326 private:
0327
0328
0329
0330
0331
0332
0333
0334
0335 AbstractFFVVertexPtr FFPvertex_;
0336
0337
0338
0339
0340 AbstractFFVVertexPtr FFGvertex_;
0341
0342
0343
0344
0345
0346
0347
0348
0349
0350 mutable double zTilde_;
0351
0352
0353
0354
0355 mutable double vTilde_;
0356
0357
0358
0359
0360 mutable double phi_;
0361
0362
0363
0364
0365
0366 unsigned int contrib_;
0367
0368
0369
0370
0371 double power_;
0372
0373
0374
0375
0376 tcPDPtr gluon_;
0377
0378
0379
0380
0381 unsigned int process_;
0382
0383
0384
0385
0386 unsigned int threeBodyProcess_;
0387
0388
0389
0390
0391 int maxflavour_;
0392
0393
0394
0395
0396 mutable double CFfact_;
0397
0398
0399
0400
0401 mutable double TRfact_;
0402
0403
0404
0405
0406 mutable double alphaS_;
0407
0408
0409
0410
0411 bool fixedAlphaS_;
0412
0413
0414
0415
0416 mutable double alphaEM_;
0417
0418
0419
0420
0421 mutable double loME_;
0422
0423
0424
0425
0426 mutable ProductionMatrixElement me_;
0427
0428
0429
0430
0431 mutable DipoleType dipole_;
0432
0433
0434
0435
0436
0437
0438
0439
0440 unsigned int supressionFunction_;
0441
0442
0443
0444
0445 unsigned int supressionScale_;
0446
0447
0448
0449
0450 Energy lambda_;
0451
0452
0453
0454
0455
0456
0457
0458
0459
0460
0461 bool quarkplus_;
0462
0463
0464
0465
0466
0467
0468
0469
0470
0471 vector<tcBeamPtr> beams_;
0472
0473
0474
0475
0476 vector<tcPDPtr> partons_;
0477
0478
0479
0480
0481
0482
0483
0484
0485
0486
0487 double preQCDqqbarq_;
0488
0489
0490
0491 double preQCDqqbarqbar_;
0492
0493
0494
0495
0496 double preQCDqg_;
0497
0498
0499
0500
0501 double preQCDgqbar_;
0502
0503 double preQEDqqbarq_;
0504 double preQEDqqbarqbar_;
0505 double preQEDqgq_;
0506 double preQEDgqbarqbar_;
0507
0508
0509
0510
0511 vector<double> prefactor_;
0512
0513
0514
0515
0516
0517 Energy minpT_;
0518
0519
0520
0521
0522 ShowerAlphaPtr alphaQCD_;
0523
0524
0525
0526
0527 ShowerAlphaPtr alphaQED_;
0528
0529
0530
0531
0532 unsigned int scaleChoice_;
0533
0534
0535
0536
0537 double scalePreFactor_;
0538
0539 };
0540
0541 }
0542
0543 #endif