#include <RemnantHandler.h>
Public Member Functions | |
bool | multiCapable () const |
Return true if this remnant handler is able to handle multiple extractions of partons from the same particle. | |
Standard constructors and destructors. | |
RemnantHandler (bool multi=false) | |
Default constructor. | |
Virtual functions to be overridden by sub-classes. | |
virtual bool | canHandle (tcPDPtr particle, const cPDVector &partons) const =0 |
Return true if this remnant handler can handle extracting all specified partons from the given particle. | |
virtual int | nDim (const PartonBin &pb, bool doScale) const |
If the generation of remnants is expected to influence the actual cross section of the hard sub process, the degrees of freedom generated by this remnant handler may be included in the general phase space sampling for the subprocess. | |
virtual Lorentz5Momentum | generate (PartonBinInstance &pb, const double *r, Energy2 scale, const LorentzMomentum &parent) const =0 |
Generate the momentum of the extracted parton with the parent momentum given by the last argument. | |
virtual Lorentz5Momentum | generate (PartonBinInstance &pb, const double *r, Energy2 scale, Energy2 shat, const LorentzMomentum &parent) const =0 |
Generate the momentum of the extracted parton with the parent momentum given by the last argument. | |
virtual void | boostRemnants (PartonBinInstance &pb) const |
Boost the generated remnants to the proper momentum given the information in the parton bin, pb. | |
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 Attributes | |
bool | isMultiCapable |
True if this handler can generate remnants also if several partons have been extracted. | |
Private Member Functions | |
RemnantHandler & | operator= (const RemnantHandler &) |
Private and non-existent assignment operator. | |
Static Private Attributes | |
static AbstractClassDescription < RemnantHandler > | initRemnantHandler |
The static object used to initialize the description of this class. |
Definition at line 31 of file RemnantHandler.h.
ThePEG::RemnantHandler::RemnantHandler | ( | bool | multi = false |
) |
Default constructor.
If multi is true the derived class can be used to extract more than one parton.
virtual int ThePEG::RemnantHandler::nDim | ( | const PartonBin & | pb, | |
bool | doScale | |||
) | const [virtual] |
If the generation of remnants is expected to influence the actual cross section of the hard sub process, the degrees of freedom generated by this remnant handler may be included in the general phase space sampling for the subprocess.
In this case this function should be overridden to return the number of degrees of freedom used in the generation. If doScale is false, it means that the actual virtuality of the extracted parton will be obtained from another source.
Reimplemented in ThePEG::LeptonLeptonRemnant.
virtual Lorentz5Momentum ThePEG::RemnantHandler::generate | ( | PartonBinInstance & | pb, | |
const double * | r, | |||
Energy2 | scale, | |||
const LorentzMomentum & | parent | |||
) | const [pure 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. 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.
Implemented in ThePEG::LeptonLeptonRemnant, ThePEG::NoRemnants, and ThePEG::SoftRemnantHandler.
virtual Lorentz5Momentum ThePEG::RemnantHandler::generate | ( | PartonBinInstance & | pb, | |
const double * | r, | |||
Energy2 | scale, | |||
Energy2 | shat, | |||
const LorentzMomentum & | parent | |||
) | const [pure 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.
Implemented in ThePEG::LeptonLeptonRemnant, ThePEG::NoRemnants, and ThePEG::SoftRemnantHandler.
virtual bool ThePEG::RemnantHandler::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 in ThePEG::LeptonLeptonRemnant, and ThePEG::SoftRemnantHandler.
virtual bool ThePEG::RemnantHandler::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 in ThePEG::LeptonLeptonRemnant, and ThePEG::SoftRemnantHandler.
void ThePEG::RemnantHandler::persistentOutput | ( | PersistentOStream & | os | ) | const |
Function used to write out object persistently.
os | the persistent output stream written to. |
Reimplemented from ThePEG::Interfaced.
Reimplemented in ThePEG::LeptonLeptonRemnant, and ThePEG::SoftRemnantHandler.
void ThePEG::RemnantHandler::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::Interfaced.
Reimplemented in ThePEG::LeptonLeptonRemnant, and ThePEG::SoftRemnantHandler.
AbstractClassDescription<RemnantHandler> ThePEG::RemnantHandler::initRemnantHandler [static, private] |
The static object used to initialize the description of this class.
Indicates that this is an abstract class with persistent data.
Definition at line 180 of file RemnantHandler.h.