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 |
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 |
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, ProcInfo::iproc, MergeInfo::iproc, OAttr< T >::name, XMLTag::name, XMLTag::tags, and XSecInfo::weightname.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 1939 of file LHEF.h.
References XSecInfo::weightname.
|
inline |
|
inline |
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 LHEF::hashline(), and LHEF::oattr().
|
inlineinherited |
print out ' name="value"' for all unparsed attributes.
Definition at line 436 of file LHEF.h.
References 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 1776 of file LHEF.h.
References OAttr< T >::name.
|
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 |