PYTHIA
8.312
|
#include <LesHouches.h>
Public Member Functions | |
LHEF3FromPythia8 (Event *eventPtrIn, const Info *infoPtrIn, int pDigitsIn=15, bool writeToFileIn=true) | |
Constructor. | |
bool | setInit () |
Routine for reading, setting and printing the initialisation info. More... | |
void | setEventPtr (Event *evPtr) |
Routine for reading, setting and printing the next event. | |
bool | setEvent (int=0) |
Routine for reading, setting and printing the next event. More... | |
string | getEventString () |
bool | openLHEF (string fileNameIn) |
Function to open the output file. More... | |
bool | closeLHEF (bool updateInit=false) |
Function to close (and possibly update) the output file. More... | |
Public Member Functions inherited from LHAup | |
virtual | ~LHAup () |
Destructor. | |
void | setPtr (Info *infoPtrIn) |
Set pointers. | |
virtual void | newEventFile (const char *) |
Method to be used for LHAupLHEF derived class. | |
virtual bool | fileFound () |
virtual bool | useExternal () |
int | idBeamA () const |
Give back info on beams. | |
int | idBeamB () const |
double | eBeamA () const |
double | eBeamB () const |
int | pdfGroupBeamA () const |
int | pdfGroupBeamB () const |
int | pdfSetBeamA () const |
int | pdfSetBeamB () const |
int | strategy () const |
Give back weight strategy. | |
int | sizeProc () const |
Give back info on processes. | |
int | idProcess (int proc) const |
double | xSec (int proc) const |
double | xErr (int proc) const |
double | xMax (int proc) const |
double | xSecSum () const |
double | xErrSum () const |
void | listInit () |
Print the initialization info; useful to check that setting it worked. More... | |
int | idProcess () const |
Give back process number, weight, scale, alpha_em, alpha_s. | |
double | weight () const |
double | scale () const |
double | alphaQED () const |
double | alphaQCD () const |
int | sizePart () const |
Give back info on separate particle. | |
int | id (int part) const |
int | status (int part) const |
int | mother1 (int part) const |
int | mother2 (int part) const |
int | col1 (int part) const |
int | col2 (int part) const |
double | px (int part) const |
double | py (int part) const |
double | pz (int part) const |
double | e (int part) const |
double | m (int part) const |
double | tau (int part) const |
double | spin (int part) const |
double | scale (int part) const |
int | id1 () const |
Give back info on flavour and x values of hard-process initiators. | |
int | id2 () const |
double | x1 () const |
double | x2 () const |
bool | pdfIsSet () const |
Optional: give back info on parton density values of event. | |
int | id1pdf () const |
int | id2pdf () const |
double | x1pdf () const |
double | x2pdf () const |
double | scalePDF () const |
double | pdf1 () const |
double | pdf2 () const |
bool | scaleShowersIsSet () const |
Optional: give back info on parton shower scales. | |
double | scaleShowers (int i) const |
void | listEvent () |
Print the info; useful to check that reading an event worked. More... | |
virtual bool | skipEvent (int nSkip) |
bool | initLHEF () |
Write initialization information to a Les Houches Event File. More... | |
bool | eventLHEF (bool verbose=true) |
string | getFileName () const |
Get access to the Les Houches Event file name. | |
Public Attributes | |
HEPRUP | heprup |
Some init and event block objects for convenience. | |
HEPEUP | hepeup |
Event * | eventPtr |
Pointer to event that should be printed. | |
const Info * | infoPtr |
Constant info pointer, explicitly overwrites member from LHAup base class. | |
ParticleData * | particleDataPtr |
Additional Inherited Members | |
Protected Member Functions inherited from LHAup | |
LHAup (int strategyIn=3) | |
Constructor. Sets default to be that events come with unit weight. | |
void | setBeamA (int idIn, double eIn, int pdfGroupIn=0, int pdfSetIn=0) |
Input beam info. | |
void | setBeamB (int idIn, double eIn, int pdfGroupIn=0, int pdfSetIn=0) |
void | setStrategy (int strategyIn) |
Input process weight strategy. | |
void | addProcess (int idProcIn, double xSecIn=1., double xErrIn=0., double xMaxIn=1.) |
Input process info. | |
void | setXSec (int iP, double xSecIn) |
Possibility to update some cross section info at end of run. | |
void | setXErr (int iP, double xErrIn) |
void | setXMax (int iP, double xMaxIn) |
void | setProcess (int idProcIn=0, double weightIn=1., double scaleIn=0., double alphaQEDIn=0.0073, double alphaQCDIn=0.12) |
Input info on the selected process. More... | |
void | addParticle (LHAParticle particleIn) |
Input particle info, one particle at the time. | |
void | addParticle (int idIn, int statusIn=0, int mother1In=0, int mother2In=0, int col1In=0, int col2In=0, double pxIn=0., double pyIn=0., double pzIn=0., double eIn=0., double mIn=0., double tauIn=0., double spinIn=9., double scaleIn=-1.) |
void | setIdX (int id1In, int id2In, double x1In, double x2In) |
Input info on flavour and x values of hard-process initiators. | |
void | setPdf (int id1pdfIn, int id2pdfIn, double x1pdfIn, double x2pdfIn, double scalePDFIn, double pdf1In, double pdf2In, bool pdfIsSetIn) |
Optionally input info on parton density values of event. | |
void | setScaleShowers (double scaleIn1, double scaleIn2=0.) |
Optionally input info on parton shower starting scale; two for DPS. | |
bool | setInitLHEF (istream &is, bool readHeaders=false) |
Three routines for LHEF files, but put here for flexibility. More... | |
bool | setNewEventLHEF (istream &is) |
bool | setOldEventLHEF () |
Make current event information read in by setNewEventLHEF. More... | |
istream * | openFile (const char *fn, ifstream &ifs) |
void | closeFile (istream *&is, ifstream &ifs) |
void | setInfoHeader (const string &key, const string &val) |
Protected Attributes inherited from LHAup | |
Info * | infoPtr |
Pointer to various information on the generation. | |
Logger * | loggerPtr |
int | nupSave |
Event properties from LHEF files, for repeated use. | |
int | idprupSave |
double | xwgtupSave |
double | scalupSave |
double | aqedupSave |
double | aqcdupSave |
double | xSecSumSave |
double | xErrSumSave |
vector< LHAParticle > | particlesSave |
bool | getPDFSave |
bool | getScale |
bool | getScaleShowers |
int | id1InSave |
int | id2InSave |
int | id1pdfInSave |
int | id2pdfInSave |
double | x1InSave |
double | x2InSave |
double | x1pdfInSave |
double | x2pdfInSave |
double | scalePDFInSave |
double | pdf1InSave |
double | pdf2InSave |
double | scaleShowersInSave [2] |
string | fileName |
File to which to write Les Houches Event File information. | |
fstream | osLHEF |
char | dateNow [12] |
char | timeNow [9] |
Static Protected Attributes inherited from LHAup | |
static const double | CONVERTMB2PB = 1e9 |
Allow conversion from mb to pb. More... | |
A derived class with LHEF 3.0 information read from PYTHIA 8 itself, for output.
|
virtual |
|
virtual |
Function to open the output file.
LHEF3FromPythia8 class.
Function to open the output file stream.
Open file for writing. Reset it to be empty.
Done.
Reimplemented from LHAup.
|
virtual |
Routine for reading, setting and printing the next event.
Begin filling Les Houches blocks.
The number of particle entries in the current event.
The subprocess code for this event (as given in LPRUP).
The weight for this event.
The PDF weights for the two incoming partons. Note that this variable is not present in the current LesHouches accord (hep-ph/0109068), hopefully it will be present in a future accord.
The scale in GeV used in the calculation of the PDF's in this event.
The value of the QED coupling used in this event.
The value of the QCD coupling used in this event.
Find incoming particles.
Find resonances in hard process.
Find resonances and decay products after showering.
Event for bookkeeping of resonances.
The PDG id's for the particle entries in this event. The status codes for the particle entries in this event. Indices for the first and last mother for the particle entries in this event. The colour-line indices (first(second) is (anti)colour) for the particle entries in this event. Lab frame momentum (Px, Py, Pz, E and M in GeV) for the particle entries in this event. Invariant lifetime (c*tau, distance from production to decay in mm) for the particle entries in this event. Spin info for the particle entries in this event given as the cosine of the angle between the spin vector of a particle and the 3-momentum of the decaying particle, specified in the lab frame.
Attach resonances
Loop through event and attach remaining decays
Done if no daughters exist.
Attach daughters.
End of loop over all entries.
Attach final state particles
Skip resonance decay products.
A pointer to the current HEPRUP object.
The weights associated with this event, as given by the LHAwgt tags.
The weights associated with this event, as given by the LHAweights tags.
Contents of the LHAscales tag
Contents of the LHAweights tag (compressed format)
Contents of the LHArwgt tag (detailed format)
Any other attributes.
Not implemented yet: Write event comments of input LHEF.
Implements LHAup.
|
virtual |
Routine for reading, setting and printing the initialisation info.
Start with clean writer.
PDG id's of beam particles. (first/second is in +/-z direction).
Energy of beam particles given in GeV.
The author group for the PDF used for the beams according to the PDFLib specification.
The id number the PDF used for the beams according to the PDFLib specification.
Master switch indicating how the ME generator envisages the events weights should be interpreted according to the Les Houches accord.
The number of different subprocesses in this file.
The cross sections for the different subprocesses in pb.
The statistical error in the cross sections for the different subprocesses in pb.
The maximum event weights (in HEPEUP::XWGTUP) for different
The subprocess code for the different subprocesses.
Contents of the LHAinitrwgt tag
Contents of the LHAgenerator tags.
A map of the LHAweightgroup tags, indexed by name.
A map of the LHAweight tags, indexed by name.
Get init information.
Not implemented yet: Write header block of input LHEF Write header comments of input LHEF
Print Pythia settings
Not implemented yet: Write init comments of input LHEF.
Done
Implements LHAup.