#include <SoftRemnantHandler.h>
Public Member Functions | |
Virtual functions mandated by the RemnantHandler base class. | |
virtual bool | canHandle (tcPDPtr particle, const cPDVector &partons) const |
Return true if this remnant handler can handle extracting all specified partons form the given particle. | |
virtual Lorentz5Momentum | generate (PartonBinInstance &pb, const double *r, Energy2 scale, const LorentzMomentum &p) const |
Generate momenta. | |
virtual Lorentz5Momentum | generate (PartonBinInstance &pb, const double *r, Energy2 scale, Energy2 shat, const LorentzMomentum &parent) const |
Generate the momentum of the extracted parton with the parent momentum given by the last argument. | |
virtual bool | recreateRemnants (PartonBinInstance &pb, tPPtr oldp, tPPtr newp, double newl, Energy2 scale, const LorentzMomentum &p, const PVector &prev=PVector()) const |
Redo the remnant generation for the given particle bin, pb. | |
virtual bool | recreateRemnants (PartonBinInstance &pb, tPPtr oldp, tPPtr newp, double newl, Energy2 scale, Energy2 shat, const LorentzMomentum &p, const PVector &prev=PVector()) const |
Redo the remnant generation for the given particle bin, pb. | |
Functions used by the persistent I/O system. | |
void | persistentOutput (PersistentOStream &os) const |
Function used to write out object persistently. | |
void | persistentInput (PersistentIStream &is, int version) |
Function used to read in object persistently. | |
Static Public Member Functions | |
static void | Init () |
Standard Init function used to initialize the interface. | |
Protected Member Functions | |
Clone Methods. | |
virtual IBPtr | clone () const |
Make a simple clone of this object. | |
virtual IBPtr | fullclone () const |
Make a clone of this object, possibly modifying the cloned object to make it sane. | |
Private Member Functions | |
void | setDecayer (RemDecPtr rd) |
Utility function for the interface. | |
SoftRemnantHandler & | operator= (const SoftRemnantHandler &) |
Private and non-existent assignment operator. | |
Private Attributes | |
RemDecPtr | remdec |
A pointer to a RemnantDecayer object which is able to decay the produced RemnantParticle objects. | |
Static Private Attributes | |
static ClassDescription < SoftRemnantHandler > | initSoftRemnantHandler |
Describe a concrete class with persistent data. |
Such a RemnantParticle needs to be decayed by a special RemnantDecayer and the SoftRemnantHandler needs to be assign such a decayer to work properly.
Definition at line 28 of file SoftRemnantHandler.h.
virtual Lorentz5Momentum ThePEG::SoftRemnantHandler::generate | ( | PartonBinInstance & | pb, | |
const double * | r, | |||
Energy2 | scale, | |||
const LorentzMomentum & | p | |||
) | const [virtual] |
Generate momenta.
Generates the momenta of the extracted parton in the particle cms (but with the parton still the positive light-cone fraction) as given by the last argument, p. If the particle is space-like the positive and negative light-cone momenta are and respectively. If the scale is negative, it means that the doScale in the previous call to nDim() was true, otherwise the given scale should be the virtuality of the extracted parton. Generated quantities which are not returned in the momentum may be saved in the PartonBin, pb, for later use. In particular, if the nDim() random numbers, r, are not enough to generate with weight one, the resulting weight should be stored with the remnantWeight() method of the parton bin.
Implements ThePEG::RemnantHandler.
virtual Lorentz5Momentum ThePEG::SoftRemnantHandler::generate | ( | PartonBinInstance & | pb, | |
const double * | r, | |||
Energy2 | scale, | |||
Energy2 | shat, | |||
const LorentzMomentum & | parent | |||
) | const [virtual] |
Generate the momentum of the extracted parton with the parent momentum given by the last argument.
If the scale is negative, it means that the doScale in the previous call to nDim() was true, otherwise the given scale should be the virtuality of the extracted parton. shat is the total invariant mass squared of the hard sub-system produced by the extracted parton and the primary parton entering from the other side. Generated quantities which are not returned in the momentum may be saved in the PartonBinInstance, pb, for later use. In particular, if the nDim() random numbers, r, are not enough to generate with weight one, the resulting weight should be stored with the remnantWeight() method of the parton bin.
Implements ThePEG::RemnantHandler.
virtual bool ThePEG::SoftRemnantHandler::recreateRemnants | ( | PartonBinInstance & | pb, | |
tPPtr | oldp, | |||
tPPtr | newp, | |||
double | newl, | |||
Energy2 | scale, | |||
const LorentzMomentum & | p, | |||
const PVector & | prev = PVector() | |||
) | const [virtual] |
Redo the remnant generation for the given particle bin, pb.
If oldp is non-null it corresponds to the previously extracted parton which should be replaced by newp. If oldp is null it means newp should be extracted in addition to the previously extracted ones available in prev.
Reimplemented from ThePEG::RemnantHandler.
virtual bool ThePEG::SoftRemnantHandler::recreateRemnants | ( | PartonBinInstance & | pb, | |
tPPtr | oldp, | |||
tPPtr | newp, | |||
double | newl, | |||
Energy2 | scale, | |||
Energy2 | shat, | |||
const LorentzMomentum & | p, | |||
const PVector & | prev = PVector() | |||
) | const [virtual] |
Redo the remnant generation for the given particle bin, pb.
If oldp is non-null it corresponds to the previously extracted parton which should be replaced by newp. If oldp is null it means newp should be extracted in addition to the previously extracted ones available in prev. In either case shat is the total invariant mass squared of the hard sub-system produced by the extracted parton and the primary parton entering from the other side.
Reimplemented from ThePEG::RemnantHandler.
void ThePEG::SoftRemnantHandler::persistentOutput | ( | PersistentOStream & | os | ) | const |
Function used to write out object persistently.
os | the persistent output stream written to. |
Reimplemented from ThePEG::RemnantHandler.
void ThePEG::SoftRemnantHandler::persistentInput | ( | PersistentIStream & | is, | |
int | version | |||
) |
Function used to read in object persistently.
is | the persistent input stream read from. | |
version | the version number of the object when written. |
Reimplemented from ThePEG::RemnantHandler.
virtual IBPtr ThePEG::SoftRemnantHandler::clone | ( | ) | const [protected, virtual] |
Make a simple clone of this object.
Implements ThePEG::InterfacedBase.
virtual IBPtr ThePEG::SoftRemnantHandler::fullclone | ( | ) | const [protected, virtual] |
Make a clone of this object, possibly modifying the cloned object to make it sane.
Reimplemented from ThePEG::InterfacedBase.