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 (const std::string &name) const |
int | nWeights () const |
XSecInfo & | getXSecInfo (std::string weightname="") |
const XSecInfo & | getXSecInfo (std::string weightname="") const |
bool | getattr (const std::string &n, double &v, bool erase=true) |
bool | getattr (const std::string &n, bool &v, bool erase=true) |
bool | getattr (const std::string &n, long &v, bool erase=true) |
bool | getattr (const std::string &n, int &v, bool erase=true) |
bool | getattr (const std::string &n, std::string &v, bool erase=true) |
void | printattrs (std::ostream &file) const |
void | closetag (std::ostream &file, const std::string &tag) const |
Standard constructors and destructors. | |
HEPRUP () | |
HEPRUP (const HEPRUP &)=default | |
HEPRUP & | operator= (const HEPRUP &)=default |
HEPRUP (const XMLTag &tagin, int versin) | |
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 |
XMLTag::AttributeMap | attributes |
std::string | contents |
|
inherited |
|
inline |
Construct from a given init tag.
Definition at line 1672 of file LHEF.h.
References XMLTag::attr, TagBase::contents, XMLTag::contents, cuts, dprec, EBMUP, eventfiles, generators, IDBMUP, IDWTUP, MergeInfo::iproc, ProcInfo::iproc, junk, LPRUP, mergeinfo, XMLTag::name, NPRUP, PDFGUP, PDFSUP, procinfo, ptypes, resize(), TagBase::TagBase(), XMLTag::tags, version, weightgroup, weightinfo, weightmap, XSecInfo::weightname, XERRUP, XMAXUP, xsecinfos, and XSECUP.
|
inline |
Clear all information.
Definition at line 1881 of file LHEF.h.
References cuts, junk, mergeinfo, procinfo, ptypes, weightgroup, and weightinfo.
|
inlineinherited |
|
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 400 of file LHEF.h.
References 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 386 of file LHEF.h.
References 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 428 of file LHEF.h.
References 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 414 of file LHEF.h.
References 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 442 of file LHEF.h.
References attributes.
|
inline |
Definition at line 1933 of file LHEF.h.
References XSecInfo::weightname, and xsecinfos.
|
inline |
|
inline |
|
inline |
Print out the corresponding XML tag to a stream.
Definition at line 1784 of file LHEF.h.
References cuts, dprec, EBMUP, eventfiles, generators, LHEF::hashline(), IDBMUP, IDWTUP, junk, LPRUP, mergeinfo, NPRUP, LHEF::oattr(), PDFGUP, PDFSUP, procinfo, ptypes, weightgroup, weightinfo, XERRUP, XMAXUP, xsecinfos, and XSECUP.
|
inlineinherited |
print out ' name="value"' for all unparsed attributes.
Definition at line 453 of file LHEF.h.
References attributes, and LHEF::oattr().
|
inline |
|
inline |
|
inline |
|
inline |
Return the name of the weight with given index suitable to ne used for HepMC3 output.
Definition at line 1770 of file LHEF.h.
References weightgroup, and weightinfo.
|
inlinestaticinherited |
|
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 |