File indexing completed on 2026-08-06 09:24:13
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef HERWIG_InvertedTildeKinematics_H
0010 #define HERWIG_InvertedTildeKinematics_H
0011
0012
0013
0014
0015 #include "ThePEG/Handlers/HandlerBase.h"
0016 #include "ThePEG/Handlers/StandardXComb.h"
0017 #include "ThePEG/Repository/EventGenerator.h"
0018 #include "Herwig/MatrixElement/Matchbox/Dipoles/SubtractionDipole.h"
0019
0020 namespace Herwig {
0021
0022 using namespace ThePEG;
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 class InvertedTildeKinematics: public HandlerBase {
0034
0035 public:
0036
0037
0038
0039
0040 InvertedTildeKinematics();
0041
0042 public:
0043
0044
0045
0046
0047
0048
0049 const Lorentz5Momentum& realEmitterMomentum() const { return theRealEmitterMomentum; }
0050
0051
0052
0053
0054 const Lorentz5Momentum& realEmissionMomentum() const { return theRealEmissionMomentum; }
0055
0056
0057
0058
0059 const Lorentz5Momentum& realSpectatorMomentum() const { return theRealSpectatorMomentum; }
0060
0061
0062
0063
0064 const Lorentz5Momentum& bornEmitterMomentum() const {
0065 return theBornXComb->meMomenta()[theDipole->bornEmitter()];
0066 }
0067
0068
0069
0070
0071 const Lorentz5Momentum& bornSpectatorMomentum() const {
0072 return theBornXComb->meMomenta()[theDipole->bornSpectator()];
0073 }
0074
0075
0076
0077
0078 double emitterX() const {
0079 return
0080 theDipole->bornEmitter() == 0 ?
0081 theBornXComb->lastX1() :
0082 theBornXComb->lastX2();
0083 }
0084
0085
0086
0087
0088 double spectatorX() const {
0089 return
0090 theDipole->bornSpectator() == 0 ?
0091 theBornXComb->lastX1() :
0092 theBornXComb->lastX2();
0093 }
0094
0095
0096
0097
0098 const vector<double>& subtractionParameters() const { return theDipole->subtractionParameters(); }
0099
0100
0101
0102
0103
0104 virtual bool doesTransform() const { return false; }
0105
0106
0107
0108
0109
0110
0111 virtual Lorentz5Momentum transform(const Lorentz5Momentum& p) const { return p; }
0112
0113
0114
0115
0116 Energy2 sHat() const { return theBornXComb->lastSHat(); }
0117
0118
0119 public:
0120
0121
0122
0123
0124 Ptr<InvertedTildeKinematics>::ptr cloneMe() const {
0125 return dynamic_ptr_cast<Ptr<InvertedTildeKinematics>::ptr>(clone());
0126 }
0127
0128
0129
0130
0131
0132
0133
0134 void prepare(tcStdXCombPtr newRealXComb,
0135 tcStdXCombPtr newBornXComb) {
0136 theRealXComb = newRealXComb; theBornXComb = newBornXComb;
0137 }
0138
0139
0140
0141
0142 tcStdXCombPtr realXComb() const { return theRealXComb; }
0143
0144
0145
0146
0147 tcStdXCombPtr bornXComb() const { return theBornXComb; }
0148
0149
0150
0151
0152 void dipole(Ptr<SubtractionDipole>::tptr dip) { theDipole = dip; }
0153
0154
0155
0156
0157 Ptr<SubtractionDipole>::tptr dipole() { return theDipole; }
0158
0159
0160
0161
0162 Ptr<SubtractionDipole>::tcptr dipole() const { return theDipole; }
0163
0164
0165
0166
0167
0168
0169 virtual int nDimRadiation() const { return 3; }
0170
0171
0172
0173
0174
0175
0176
0177
0178
0179 virtual bool doMap(const double *) = 0;
0180
0181
0182
0183
0184
0185 void ptCut(Energy pt) { thePtCut = pt; }
0186
0187
0188
0189
0190
0191 Energy ptCut() const { return thePtCut; }
0192
0193
0194
0195
0196
0197 virtual int evolutionVariable() const { return 0; }
0198
0199
0200
0201
0202
0203 virtual double evolutionCutoff() const { return 0.0; }
0204
0205
0206
0207
0208 virtual Energy lastPt() const = 0;
0209
0210
0211
0212
0213 virtual double lastZ() const = 0;
0214
0215
0216
0217
0218 virtual Energy lastScale() const;
0219
0220
0221
0222
0223 virtual Energy ptMax() const = 0;
0224
0225
0226
0227
0228
0229 virtual pair<double,double> zBounds(Energy pt, Energy hardPt = ZERO) const = 0;
0230
0231
0232
0233
0234 virtual pair<Energy,double> generatePtZ(double& jac, const double * r,
0235 double power=1., vector<double>* values = NULL) const;
0236
0237
0238
0239
0240
0241 double jacobian() const { return theJacobian; }
0242
0243
0244
0245
0246 cPDPtr realEmitterData() const {
0247 return
0248 (theDipole && theRealXComb) ?
0249 theRealXComb->mePartonData()[theDipole->realEmitter()] :
0250 cPDPtr();
0251 }
0252
0253
0254
0255
0256 cPDPtr realEmissionData() const {
0257 return
0258 (theDipole && theRealXComb) ?
0259 theRealXComb->mePartonData()[theDipole->realEmission()] :
0260 cPDPtr();
0261 }
0262
0263
0264
0265
0266 cPDPtr realSpectatorData() const {
0267 return
0268 (theDipole && theRealXComb) ?
0269 theRealXComb->mePartonData()[theDipole->realSpectator()] :
0270 cPDPtr();
0271 }
0272
0273
0274
0275
0276 cPDPtr bornEmitterData() const {
0277 return
0278 (theDipole && theBornXComb) ?
0279 theBornXComb->mePartonData()[theDipole->bornEmitter()] :
0280 cPDPtr();
0281 }
0282
0283
0284
0285
0286 cPDPtr bornSpectatorData() const {
0287 return
0288 (theDipole && theBornXComb) ?
0289 theBornXComb->mePartonData()[theDipole->bornSpectator()] :
0290 cPDPtr();
0291 }
0292
0293
0294 protected:
0295
0296
0297
0298
0299 Lorentz5Momentum& realEmitterMomentum() { return theRealEmitterMomentum; }
0300
0301
0302
0303
0304 Lorentz5Momentum& realEmissionMomentum() { return theRealEmissionMomentum; }
0305
0306
0307
0308
0309 Lorentz5Momentum& realSpectatorMomentum() { return theRealSpectatorMomentum; }
0310
0311
0312
0313
0314 vector<double>& subtractionParameters() { return theDipole->subtractionParameters(); }
0315
0316
0317
0318
0319
0320 void jacobian(double w) { theJacobian = w; }
0321
0322
0323
0324
0325
0326 Lorentz5Momentum getKt(const Lorentz5Momentum& p1,
0327 const Lorentz5Momentum& p2,
0328 Energy pt,
0329 double phi,
0330 bool spacelike = false) const;
0331
0332 public:
0333
0334
0335
0336
0337
0338
0339
0340 void persistentOutput(PersistentOStream & os) const;
0341
0342
0343
0344
0345
0346
0347 void persistentInput(PersistentIStream & is, int version);
0348
0349
0350
0351
0352
0353
0354
0355
0356 static void Init();
0357
0358
0359
0360
0361
0362 protected:
0363
0364
0365
0366
0367
0368
0369
0370
0371
0372
0373
0374
0375 virtual void rebind(const TranslationMap & trans);
0376
0377
0378
0379
0380
0381
0382 virtual IVector getReferences();
0383
0384
0385
0386 private:
0387
0388
0389
0390
0391 Ptr<SubtractionDipole>::tptr theDipole;
0392
0393
0394
0395
0396 tcStdXCombPtr theRealXComb;
0397
0398
0399
0400
0401 tcStdXCombPtr theBornXComb;
0402
0403
0404
0405
0406 Lorentz5Momentum theRealEmitterMomentum;
0407
0408
0409
0410
0411 Lorentz5Momentum theRealEmissionMomentum;
0412
0413
0414
0415
0416 Lorentz5Momentum theRealSpectatorMomentum;
0417
0418
0419
0420
0421
0422 double theJacobian;
0423
0424
0425
0426
0427
0428 Energy thePtCut;
0429
0430 private:
0431
0432
0433
0434
0435
0436 InvertedTildeKinematics & operator=(const InvertedTildeKinematics &) = delete;
0437
0438 };
0439
0440 }
0441
0442 #endif