HepMC event record
|
The HEPRUP class is a simple container corresponding to the Les Houches accord (hep-ph/0109068) common block with the same name. The members are named in the same way as in the common block. However, fortran arrays are represented by vectors, except for the arrays of length two which are represented by pair objects.
Definition at line 1363 of file build/outputs/include/HepMC/LHEF.h.
#include <LHEF.h>
Public Types | |
typedef XMLTag::AttributeMap | AttributeMap |
typedef XMLTag::AttributeMap | AttributeMap |
Public Member Functions | |
std::string | weightNameHepMC (int i) const |
void | print (std::ostream &file) const |
void | clear () |
void | resize (int nrup) |
void | resize () |
int | weightIndex (std::string name) const |
int | nWeights () const |
std::string | weightNameHepMC (int i) const |
void | print (std::ostream &file) const |
void | clear () |
void | resize (int nrup) |
void | resize () |
int | weightIndex (std::string name) const |
int | nWeights () const |
bool | getattr (std::string n, double &v, bool erase=true) |
bool | getattr (std::string n, bool &v, bool erase=true) |
bool | getattr (std::string n, long &v, bool erase=true) |
bool | getattr (std::string n, int &v, bool erase=true) |
bool | getattr (std::string n, std::string &v, bool erase=true) |
bool | getattr (std::string n, double &v, bool erase=true) |
bool | getattr (std::string n, bool &v, bool erase=true) |
bool | getattr (std::string n, long &v, bool erase=true) |
bool | getattr (std::string n, int &v, bool erase=true) |
bool | getattr (std::string n, std::string &v, bool erase=true) |
void | printattrs (std::ostream &file) const |
void | printattrs (std::ostream &file) const |
void | closetag (std::ostream &file, std::string tag) const |
void | closetag (std::ostream &file, std::string tag) const |
Standard constructors and destructors. | |
HEPRUP () | |
HEPRUP & | operator= (const HEPRUP &x) |
HEPRUP (const XMLTag &tagin, int versin) | |
~HEPRUP () | |
HEPRUP () | |
HEPRUP & | operator= (const HEPRUP &x) |
HEPRUP (const XMLTag &tagin, int versin) | |
~HEPRUP () | |
Static Public Member Functions | |
static std::string | yes () |
static std::string | yes () |
Data Fields | |
std::pair< long, long > | IDBMUP |
std::pair< double, double > | EBMUP |
std::pair< int, int > | PDFGUP |
std::pair< int, int > | PDFSUP |
int | IDWTUP |
int | NPRUP |
std::vector< double > | XSECUP |
std::vector< double > | XERRUP |
std::vector< double > | XMAXUP |
std::vector< int > | LPRUP |
XSecInfo | xsecinfo |
std::vector< Cut > | cuts |
std::map< std::string, std::set< long > > | ptypes |
std::map< long, ProcInfo > | procinfo |
std::map< long, MergeInfo > | mergeinfo |
std::vector< Generator > | generators |
std::vector< WeightInfo > | weightinfo |
std::map< std::string, int > | weightmap |
std::vector< WeightGroup > | weightgroup |
std::string | junk |
int | version |
int | dprec |
XMLTag::AttributeMap | attributes |
std::string | contents |
|
inherited |
Convenient typedef.
Definition at line 338 of file build/outputs/include/HepMC/LHEF.h.
|
inherited |
Convenient typedef.
Definition at line 338 of file include/HepMC/LHEF.h.
|
inline |
Default constructor.
Definition at line 1372 of file build/outputs/include/HepMC/LHEF.h.
Construct from a given init tag.
Definition at line 1409 of file build/outputs/include/HepMC/LHEF.h.
References XMLTag::attr, XMLTag::contents, TagBase::contents, HEPRUP::cuts, HEPRUP::EBMUP, HEPRUP::generators, HEPRUP::IDBMUP, HEPRUP::IDWTUP, ProcInfo::iproc, MergeInfo::iproc, HEPRUP::junk, HEPRUP::LPRUP, HEPRUP::mergeinfo, XMLTag::name, HEPRUP::NPRUP, HEPRUP::PDFGUP, HEPRUP::PDFSUP, HEPRUP::procinfo, HEPRUP::ptypes, HEPRUP::resize(), XMLTag::tags, HEPRUP::weightgroup, HEPRUP::weightinfo, HEPRUP::weightmap, HEPRUP::XERRUP, HEPRUP::XMAXUP, HEPRUP::xsecinfo, and HEPRUP::XSECUP.
|
inline |
Destructor.
Definition at line 1494 of file build/outputs/include/HepMC/LHEF.h.
|
inline |
Default constructor.
Definition at line 1372 of file include/HepMC/LHEF.h.
Construct from a given init tag.
Definition at line 1409 of file include/HepMC/LHEF.h.
References TagBase::contents, HEPRUP::cuts, HEPRUP::EBMUP, HEPRUP::generators, HEPRUP::IDBMUP, HEPRUP::IDWTUP, HEPRUP::junk, HEPRUP::LPRUP, HEPRUP::mergeinfo, HEPRUP::NPRUP, HEPRUP::PDFGUP, HEPRUP::PDFSUP, HEPRUP::procinfo, HEPRUP::ptypes, HEPRUP::resize(), HEPRUP::weightgroup, HEPRUP::weightinfo, HEPRUP::weightmap, HEPRUP::XERRUP, HEPRUP::XMAXUP, HEPRUP::xsecinfo, and HEPRUP::XSECUP.
|
inline |
Destructor.
Definition at line 1494 of file include/HepMC/LHEF.h.
|
inline |
Clear all information.
Definition at line 1605 of file build/outputs/include/HepMC/LHEF.h.
References HEPRUP::cuts, HEPRUP::junk, HEPRUP::mergeinfo, HEPRUP::procinfo, HEPRUP::ptypes, HEPRUP::weightgroup, and HEPRUP::weightinfo.
|
inline |
Clear all information.
Definition at line 1605 of file include/HepMC/LHEF.h.
References HEPRUP::cuts, HEPRUP::junk, HEPRUP::mergeinfo, HEPRUP::procinfo, HEPRUP::ptypes, HEPRUP::weightgroup, and HEPRUP::weightinfo.
|
inlineinherited |
Print out end of tag marker. Print contents if not empty else print simple close tag.
Definition at line 434 of file build/outputs/include/HepMC/LHEF.h.
References TagBase::contents.
|
inlineinherited |
Print out end of tag marker. Print contents if not empty else print simple close tag.
Definition at line 434 of file include/HepMC/LHEF.h.
References TagBase::contents.
|
inlineinherited |
Find an attribute named n and set the double variable v to the corresponding value. Remove the correspondig attribute from the list if found and erase is true.
Definition at line 357 of file build/outputs/include/HepMC/LHEF.h.
References TagBase::attributes.
|
inlineinherited |
Find an attribute named n and set the double variable v to the corresponding value. Remove the correspondig attribute from the list if found and erase is true.
Definition at line 357 of file include/HepMC/LHEF.h.
References TagBase::attributes.
|
inlineinherited |
Find an attribute named n and set the bool variable v to true if the corresponding value is "yes". Remove the correspondig attribute from the list if found and erase is true.
Definition at line 371 of file build/outputs/include/HepMC/LHEF.h.
References TagBase::attributes.
|
inlineinherited |
Find an attribute named n and set the bool variable v to true if the corresponding value is "yes". Remove the correspondig attribute from the list if found and erase is true.
Definition at line 371 of file include/HepMC/LHEF.h.
References TagBase::attributes.
|
inlineinherited |
Find an attribute named n and set the long variable v to the corresponding value. Remove the correspondig attribute from the list if found and erase is true.
Definition at line 385 of file build/outputs/include/HepMC/LHEF.h.
References TagBase::attributes.
|
inlineinherited |
Find an attribute named n and set the long variable v to the corresponding value. Remove the correspondig attribute from the list if found and erase is true.
Definition at line 385 of file include/HepMC/LHEF.h.
References TagBase::attributes.
|
inlineinherited |
Find an attribute named n and set the long variable v to the corresponding value. Remove the correspondig attribute from the list if found and erase is true.
Definition at line 399 of file build/outputs/include/HepMC/LHEF.h.
References TagBase::attributes.
|
inlineinherited |
Find an attribute named n and set the long variable v to the corresponding value. Remove the correspondig attribute from the list if found and erase is true.
Definition at line 399 of file include/HepMC/LHEF.h.
References TagBase::attributes.
|
inlineinherited |
Find an attribute named n and set the string variable v to the corresponding value. Remove the correspondig attribute from the list if found and erase is true.
Definition at line 413 of file build/outputs/include/HepMC/LHEF.h.
References TagBase::attributes.
|
inlineinherited |
Find an attribute named n and set the string variable v to the corresponding value. Remove the correspondig attribute from the list if found and erase is true.
Definition at line 413 of file include/HepMC/LHEF.h.
References TagBase::attributes.
|
inline |
Definition at line 1649 of file include/HepMC/LHEF.h.
References HEPRUP::weightmap.
|
inline |
Definition at line 1649 of file build/outputs/include/HepMC/LHEF.h.
References HEPRUP::weightmap.
Assignment operator.
Definition at line 1379 of file build/outputs/include/HepMC/LHEF.h.
References TagBase::attributes, TagBase::contents, HEPRUP::cuts, HEPRUP::EBMUP, HEPRUP::generators, HEPRUP::IDBMUP, HEPRUP::IDWTUP, HEPRUP::junk, HEPRUP::LPRUP, HEPRUP::mergeinfo, HEPRUP::NPRUP, HEPRUP::PDFGUP, HEPRUP::PDFSUP, HEPRUP::procinfo, HEPRUP::ptypes, HEPRUP::version, HEPRUP::weightgroup, HEPRUP::weightinfo, HEPRUP::weightmap, HEPRUP::XERRUP, HEPRUP::XMAXUP, HEPRUP::xsecinfo, and HEPRUP::XSECUP.
Assignment operator.
Definition at line 1379 of file include/HepMC/LHEF.h.
References TagBase::attributes, TagBase::contents, HEPRUP::cuts, HEPRUP::EBMUP, HEPRUP::generators, HEPRUP::IDBMUP, HEPRUP::IDWTUP, HEPRUP::junk, HEPRUP::LPRUP, HEPRUP::mergeinfo, HEPRUP::NPRUP, HEPRUP::PDFGUP, HEPRUP::PDFSUP, HEPRUP::procinfo, HEPRUP::ptypes, HEPRUP::version, HEPRUP::weightgroup, HEPRUP::weightinfo, HEPRUP::weightmap, HEPRUP::XERRUP, HEPRUP::XMAXUP, HEPRUP::xsecinfo, and HEPRUP::XSECUP.
|
inline |
Print out the corresponding XML tag to a stream.
Definition at line 1517 of file include/HepMC/LHEF.h.
References HEPRUP::cuts, HEPRUP::dprec, HEPRUP::EBMUP, HEPRUP::generators, HEPRUP::IDBMUP, HEPRUP::IDWTUP, HEPRUP::junk, HEPRUP::LPRUP, HEPRUP::mergeinfo, XSecInfo::neve, HEPRUP::NPRUP, HEPRUP::PDFGUP, HEPRUP::PDFSUP, XSecInfo::print(), HEPRUP::print(), HEPRUP::procinfo, HEPRUP::ptypes, HEPRUP::weightgroup, HEPRUP::weightinfo, HEPRUP::XERRUP, HEPRUP::XMAXUP, HEPRUP::xsecinfo, and HEPRUP::XSECUP.
|
inline |
Print out the corresponding XML tag to a stream.
Definition at line 1517 of file build/outputs/include/HepMC/LHEF.h.
References HEPRUP::cuts, HEPRUP::dprec, HEPRUP::EBMUP, HEPRUP::generators, HEPRUP::IDBMUP, HEPRUP::IDWTUP, HEPRUP::junk, HEPRUP::LPRUP, HEPRUP::mergeinfo, XSecInfo::neve, HEPRUP::NPRUP, HEPRUP::PDFGUP, HEPRUP::PDFSUP, XSecInfo::print(), HEPRUP::procinfo, HEPRUP::ptypes, HEPRUP::weightgroup, HEPRUP::weightinfo, HEPRUP::XERRUP, HEPRUP::XMAXUP, HEPRUP::xsecinfo, and HEPRUP::XSECUP.
|
inlineinherited |
print out ' name="value"' for all unparsed attributes.
Definition at line 424 of file build/outputs/include/HepMC/LHEF.h.
References TagBase::attributes.
|
inlineinherited |
print out ' name="value"' for all unparsed attributes.
Definition at line 424 of file include/HepMC/LHEF.h.
References TagBase::attributes.
|
inline |
Set the NPRUP variable, corresponding to the number of sub-processes, to nrup, and resize all relevant vectors accordingly.
Definition at line 1620 of file include/HepMC/LHEF.h.
References HEPRUP::NPRUP, and HEPRUP::resize().
|
inline |
Set the NPRUP variable, corresponding to the number of sub-processes, to nrup, and resize all relevant vectors accordingly.
Definition at line 1620 of file build/outputs/include/HepMC/LHEF.h.
References HEPRUP::NPRUP, and HEPRUP::resize().
|
inline |
Assuming the NPRUP variable, corresponding to the number of sub-processes, is correctly set, resize the relevant vectors accordingly.
Definition at line 1630 of file build/outputs/include/HepMC/LHEF.h.
References HEPRUP::LPRUP, HEPRUP::NPRUP, HEPRUP::XERRUP, HEPRUP::XMAXUP, and HEPRUP::XSECUP.
|
inline |
Assuming the NPRUP variable, corresponding to the number of sub-processes, is correctly set, resize the relevant vectors accordingly.
Definition at line 1630 of file include/HepMC/LHEF.h.
References HEPRUP::LPRUP, HEPRUP::NPRUP, HEPRUP::XERRUP, HEPRUP::XMAXUP, and HEPRUP::XSECUP.
|
inline |
Definition at line 1640 of file build/outputs/include/HepMC/LHEF.h.
References HEPRUP::weightmap.
|
inline |
Definition at line 1640 of file include/HepMC/LHEF.h.
References HEPRUP::weightmap.
|
inline |
Return the name of the weight with given index suitable to ne used for HepMC3 output.
Definition at line 1503 of file build/outputs/include/HepMC/LHEF.h.
References HEPRUP::weightgroup, and HEPRUP::weightinfo.
|
inline |
Return the name of the weight with given index suitable to ne used for HepMC3 output.
Definition at line 1503 of file include/HepMC/LHEF.h.
References HEPRUP::weightgroup, and HEPRUP::weightinfo.
|
inlinestaticinherited |
Static string token for truth values.
Definition at line 456 of file build/outputs/include/HepMC/LHEF.h.
|
inlinestaticinherited |
Static string token for truth values.
Definition at line 456 of file include/HepMC/LHEF.h.
|
inherited |
The attributes of this tag;
Definition at line 446 of file build/outputs/include/HepMC/LHEF.h.
|
inherited |
The contents of this tag.
Definition at line 451 of file build/outputs/include/HepMC/LHEF.h.
std::vector< Cut > cuts |
Contents of the cuts tag.
Definition at line 1719 of file build/outputs/include/HepMC/LHEF.h.
int dprec |
The precision used for outputing real numbers.
Definition at line 1770 of file build/outputs/include/HepMC/LHEF.h.
std::pair< double, double > EBMUP |
Energy of beam particles given in GeV.
Definition at line 1663 of file build/outputs/include/HepMC/LHEF.h.
std::vector< Generator > generators |
The names of the programs and their version information used to create this file.
Definition at line 1740 of file build/outputs/include/HepMC/LHEF.h.
std::pair< long, long > IDBMUP |
PDG id's of beam particles. (first/second is in +/-z direction).
Definition at line 1658 of file build/outputs/include/HepMC/LHEF.h.
int IDWTUP |
Master switch indicating how the ME generator envisages the events weights should be interpreted according to the Les Houches accord.
Definition at line 1682 of file build/outputs/include/HepMC/LHEF.h.
std::string junk |
Just to be on the safe side we save any junk inside the init-tag.
Definition at line 1760 of file build/outputs/include/HepMC/LHEF.h.
std::vector< int > LPRUP |
The subprocess code for the different subprocesses.
Definition at line 1709 of file build/outputs/include/HepMC/LHEF.h.
std::map< long, MergeInfo > mergeinfo |
Contents of the mergeinfo tags
Definition at line 1734 of file build/outputs/include/HepMC/LHEF.h.
int NPRUP |
The number of different subprocesses in this file.
Definition at line 1687 of file build/outputs/include/HepMC/LHEF.h.
std::pair< int, int > PDFGUP |
The author group for the PDF used for the beams according to the PDFLib specification.
Definition at line 1669 of file build/outputs/include/HepMC/LHEF.h.
std::pair< int, int > PDFSUP |
The id number the PDF used for the beams according to the PDFLib specification.
Definition at line 1675 of file build/outputs/include/HepMC/LHEF.h.
std::map< long, ProcInfo > procinfo |
Contents of the procinfo tags
Definition at line 1729 of file build/outputs/include/HepMC/LHEF.h.
std::map< std::string, std::set< long > > ptypes |
A map of codes for different particle types.
Definition at line 1724 of file build/outputs/include/HepMC/LHEF.h.
int version |
The main version of the information stored.
Definition at line 1765 of file build/outputs/include/HepMC/LHEF.h.
std::vector< WeightGroup > weightgroup |
The vector of WeightGroup objects in this file.
Definition at line 1755 of file build/outputs/include/HepMC/LHEF.h.
std::vector< WeightInfo > weightinfo |
The vector of WeightInfo objects for this file.
Definition at line 1745 of file build/outputs/include/HepMC/LHEF.h.
std::map< std::string, int > weightmap |
A map relating names of weights to indices of the weightinfo vector.
Definition at line 1750 of file build/outputs/include/HepMC/LHEF.h.
std::vector< double > XERRUP |
The statistical error in the cross sections for the different subprocesses in pb.
Definition at line 1698 of file build/outputs/include/HepMC/LHEF.h.
std::vector< double > XMAXUP |
The maximum event weights (in HEPEUP::XWGTUP) for different subprocesses.
Definition at line 1704 of file build/outputs/include/HepMC/LHEF.h.
XSecInfo xsecinfo |
Contents of the xsecinfo tag
Definition at line 1714 of file build/outputs/include/HepMC/LHEF.h.
std::vector< double > XSECUP |
The cross sections for the different subprocesses in pb.
Definition at line 1692 of file build/outputs/include/HepMC/LHEF.h.