LHEF
3.0(beta)
|
The HEPRUP class is a simple container corresponding to the Les Houches accord (hep-ph/0109068) common block with the same name. More...
#include <LHEF.h>
Public Member Functions | |
std::string | weightNameHepMC (int i) const |
Return the name of the weight with given index suitable to ne used for HepMC3 output. | |
void | print (std::ostream &file) const |
Print out the corresponding XML tag to a stream. | |
void | clear () |
Clear all information. | |
void | resize (int nrup) |
Set the NPRUP variable, corresponding to the number of sub-processes, to nrup, and resize all relevant vectors accordingly. | |
void | resize () |
Assuming the NPRUP variable, corresponding to the number of sub-processes, is correctly set, resize the relevant vectors accordingly. | |
int | weightIndex (std::string name) const |
int | nWeights () const |
Standard constructors and destructors. | |
HEPRUP () | |
Default constructor. | |
HEPRUP & | operator= (const HEPRUP &x) |
Assignment operator. | |
HEPRUP (const XMLTag &tag, int versin) | |
Construct from a given init tag. | |
~HEPRUP () | |
Destructor. | |
Public Member Functions inherited from LHEF::TagBase | |
TagBase () | |
Default constructor does nothing. | |
TagBase (const AttributeMap &attr, std::string conts=std::string()) | |
Main constructor stores the attributes and contents of a tag. | |
bool | getattr (std::string n, double &v, bool erase=true) |
Find an attribute named n and set the double variable v to the corresponding value. | |
bool | getattr (std::string n, bool &v, bool erase=true) |
Find an attribute named n and set the bool variable v to true if the corresponding value is "yes". | |
bool | getattr (std::string n, long &v, bool erase=true) |
Find an attribute named n and set the long variable v to the corresponding value. | |
bool | getattr (std::string n, int &v, bool erase=true) |
Find an attribute named n and set the long variable v to the corresponding value. | |
bool | getattr (std::string n, std::string &v, bool erase=true) |
Find an attribute named n and set the string variable v to the corresponding value. | |
void | printattrs (std::ostream &file) const |
print out ' name="value"' for all unparsed attributes. | |
void | closetag (std::ostream &file, std::string tag) const |
Print out end of tag marker. | |
Public Attributes | |
std::pair< long, long > | IDBMUP |
PDG id's of beam particles. | |
std::pair< double, double > | EBMUP |
Energy of beam particles given in GeV. | |
std::pair< int, int > | PDFGUP |
The author group for the PDF used for the beams according to the PDFLib specification. | |
std::pair< int, int > | PDFSUP |
The id number the PDF used for the beams according to the PDFLib specification. | |
int | IDWTUP |
Master switch indicating how the ME generator envisages the events weights should be interpreted according to the Les Houches accord. | |
int | NPRUP |
The number of different subprocesses in this file. | |
std::vector< double > | XSECUP |
The cross sections for the different subprocesses in pb. | |
std::vector< double > | XERRUP |
The statistical error in the cross sections for the different subprocesses in pb. | |
std::vector< double > | XMAXUP |
The maximum event weights (in HEPEUP::XWGTUP) for different subprocesses. | |
std::vector< int > | LPRUP |
The subprocess code for the different subprocesses. | |
XSecInfo | xsecinfo |
Contents of the xsecinfo tag. | |
std::vector< Cut > | cuts |
Contents of the cuts tag. | |
std::map< std::string, std::set< long > > | ptypes |
A map of codes for different particle types. | |
std::map< long, ProcInfo > | procinfo |
Contents of the procinfo tags. | |
std::map< long, MergeInfo > | mergeinfo |
Contents of the mergeinfo tags. | |
std::vector< Generator > | generators |
The names of the programs and their version information used to create this file. | |
std::vector< WeightInfo > | weightinfo |
The vector of WeightInfo objects for this file. | |
std::map< std::string, int > | weightmap |
A map relating names of weights to indices of the weightinfo vector. | |
std::vector< WeightGroup > | weightgroup |
The vector of WeightGroup objects in this file. | |
std::string | junk |
Just to be on the safe side we save any junk inside the init-tag. | |
int | version |
The main version of the information stored. | |
Public Attributes inherited from LHEF::TagBase | |
XMLTag::AttributeMap | attributes |
The attributes of this tag;. | |
std::string | contents |
The contents of this tag. | |
Additional Inherited Members | |
Public Types inherited from LHEF::TagBase | |
typedef XMLTag::AttributeMap | AttributeMap |
Convenient typedef. | |
Static Public Member Functions inherited from LHEF::TagBase | |
static std::string | yes () |
Static string token for truth values. | |
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.
|
inline |
Definition at line 1645 of file LHEF.h.
References weightmap.
Referenced by LHEF::HEPEUP::HEPEUP().
|
inline |
Definition at line 1636 of file LHEF.h.
References weightmap.
Referenced by LHEF::HEPEUP::HEPEUP(), LHEF::HEPEUP::setWeight(), LHEF::HEPEUP::totalWeight(), and LHEF::HEPEUP::weight().
std::pair<long,long> LHEF::HEPRUP::IDBMUP |
PDG id's of beam particles.
(first/second is in +/-z direction).
Definition at line 1654 of file LHEF.h.
Referenced by HEPRUP(), operator=(), and print().