HepMC3 event record library
|
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.
#include <LHEF.h>
Public Types | |
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 |
XSecInfo & | getXSecInfo (std::string weightname="") |
const XSecInfo & | getXSecInfo (std::string weightname="") const |
contents (conts) | |
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 | 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 () | |
Static Public Member Functions | |
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 |
XSecInfos | xsecinfos |
std::vector< EventFile > | eventfiles |
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 |
__pad0__: attributes(attr) | |
XMLTag::AttributeMap | attributes |
std::string | contents |
|
inherited |
Construct from a given init tag.
Definition at line 1674 of file LHEF.h.
References XMLTag::attr, XMLTag::contents, TagBase::contents, HEPRUP::cuts, HEPRUP::EBMUP, HEPRUP::eventfiles, 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, XSecInfo::weightname, HEPRUP::XERRUP, HEPRUP::XMAXUP, HEPRUP::xsecinfos, and HEPRUP::XSECUP.
|
inline |
Clear all information.
Definition at line 1887 of file 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 446 of file 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 369 of file 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 383 of file 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 397 of file 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 411 of file 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 425 of file LHEF.h.
References TagBase::attributes.
|
inline |
Definition at line 1939 of file LHEF.h.
References XSecInfo::weightname, and HEPRUP::xsecinfos.
|
inline |
Definition at line 1950 of file LHEF.h.
References HEPRUP::xsecinfos.
|
inline |
Definition at line 1931 of file LHEF.h.
References HEPRUP::weightmap.
Assignment operator.
Definition at line 1643 of file LHEF.h.
References TagBase::attributes, TagBase::contents, HEPRUP::cuts, HEPRUP::EBMUP, HEPRUP::eventfiles, 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::xsecinfos, and HEPRUP::XSECUP.
|
inline |
Print out the corresponding XML tag to a stream.
Definition at line 1790 of file LHEF.h.
References HEPRUP::cuts, HEPRUP::dprec, HEPRUP::EBMUP, HEPRUP::eventfiles, HEPRUP::generators, LHEF::hashline(), HEPRUP::IDBMUP, HEPRUP::IDWTUP, HEPRUP::junk, HEPRUP::LPRUP, HEPRUP::mergeinfo, HEPRUP::NPRUP, LHEF::oattr(), HEPRUP::PDFGUP, HEPRUP::PDFSUP, HEPRUP::procinfo, HEPRUP::ptypes, HEPRUP::weightgroup, HEPRUP::weightinfo, HEPRUP::XERRUP, HEPRUP::XMAXUP, HEPRUP::xsecinfos, and HEPRUP::XSECUP.
|
inlineinherited |
print out ' name="value"' for all unparsed attributes.
Definition at line 436 of file LHEF.h.
References TagBase::attributes, and LHEF::oattr().
|
inline |
Set the NPRUP variable, corresponding to the number of sub-processes, to nrup, and resize all relevant vectors accordingly.
Definition at line 1902 of file 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 1912 of file LHEF.h.
References HEPRUP::LPRUP, HEPRUP::NPRUP, HEPRUP::XERRUP, HEPRUP::XMAXUP, and HEPRUP::XSECUP.
|
inline |
Definition at line 1922 of file 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 1776 of file LHEF.h.
References HEPRUP::weightgroup, and HEPRUP::weightinfo.
|
inlinestaticinherited |
|
inherited |
|
inherited |
|
mutableinherited |
std::pair<double,double> EBMUP |
std::vector<EventFile> eventfiles |
A vector of EventFiles where the events are stored separate fron the init block.
std::vector<Generator> generators |
std::pair<long,long> IDBMUP |
int IDWTUP |
std::string junk |
std::vector<int> LPRUP |
std::map<long,MergeInfo> mergeinfo |
int NPRUP |
std::pair<int,int> PDFGUP |
std::pair<int,int> PDFSUP |
std::map<long,ProcInfo> procinfo |
std::map<std::string, std::set<long> > ptypes |
std::vector<WeightGroup> weightgroup |
The vector of WeightGroup objects in this file.
std::vector<WeightInfo> weightinfo |
The vector of WeightInfo objects for this file.
std::map<std::string,int> weightmap |
std::vector<double> XERRUP |
std::vector<double> XMAXUP |
The maximum event weights (in HEPEUP::XWGTUP) for different subprocesses.
std::vector<double> XSECUP |