HepMC3 event record library
|
The HEPEUP 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 | |
HEPEUP (const XMLTag &tagin, HEPRUP &heprupin) | |
void | print (std::ostream &file) const |
void | reset () |
void | clear () |
void | resize (int nup) |
double | totalWeight (int i=0) const |
double | totalWeight (std::string name) const |
double | weight (int i=0) const |
double | weight (std::string name) const |
void | setWeight (int i, double w) |
bool | setWeight (std::string name, double w) |
void | resize () |
bool | setWeightInfo (unsigned int i) |
bool | setSubEvent (unsigned int i) |
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. | |
HEPEUP () | |
HEPEUP (const HEPEUP &x) | |
HEPEUP & | setEvent (const HEPEUP &x) |
HEPEUP & | operator= (const HEPEUP &x) |
~HEPEUP () | |
Static Public Member Functions | |
static std::string | yes () |
Data Fields | |
int | NUP |
int | IDPRUP |
double | XWGTUP |
std::pair< double, double > | XPDWUP |
double | SCALUP |
double | AQEDUP |
double | AQCDUP |
std::vector< long > | IDUP |
std::vector< int > | ISTUP |
std::vector< std::pair< int, int > > | MOTHUP |
std::vector< std::pair< int, int > > | ICOLUP |
std::vector< std::vector< double > > | PUP |
std::vector< double > | VTIMUP |
std::vector< double > | SPINUP |
HEPRUP * | heprup |
const WeightInfo * | currentWeight |
std::vector< Weight > | namedweights |
std::vector< std::pair< double, const WeightInfo * > > | weights |
std::vector< Clus > | clustering |
PDFInfo | pdfinfo |
std::pair< int, int > | PDFGUPsave |
std::pair< int, int > | PDFSUPsave |
Scales | scales |
int | ntries |
bool | isGroup |
EventGroup | subevents |
std::string | junk |
XMLTag::AttributeMap | attributes |
std::string | contents |
|
inherited |
Constructor from an event or eventgroup tag.
Definition at line 2198 of file LHEF.h.
References XMLTag::contents, OAttr< T >::name, XMLTag::name, and XMLTag::tags.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Assignment operator.
Definition at line 2176 of file LHEF.h.
References HEPEUP::isGroup, and HEPEUP::subevents.
|
inline |
Print out the event (group) as an XML tag.
Definition at line 2319 of file LHEF.h.
References LHEF::hashline(), and LHEF::oattr().
|
inlineinherited |
print out ' name="value"' for all unparsed attributes.
Definition at line 435 of file LHEF.h.
References LHEF::oattr().
|
inline |
|
inline |
|
inline |
Copy information from the given HEPEUP. Sub event information is left untouched.
Definition at line 2144 of file LHEF.h.
References HEPEUP::AQCDUP, HEPEUP::AQEDUP, HEPEUP::clustering, HEPEUP::currentWeight, HEPEUP::heprup, HEPEUP::ICOLUP, HEPEUP::IDPRUP, HEPEUP::IDUP, HEPEUP::ISTUP, HEPEUP::junk, HEPEUP::MOTHUP, HEPEUP::namedweights, HEPEUP::ntries, HEPEUP::NUP, HEPEUP::PDFGUPsave, HEPEUP::pdfinfo, HEPEUP::PDFSUPsave, HEPEUP::PUP, HEPEUP::scales, HEPEUP::SCALUP, HEPEUP::SPINUP, HEPEUP::VTIMUP, HEPEUP::weights, HEPEUP::XPDWUP, and HEPEUP::XWGTUP.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticinherited |
double AQCDUP |
double AQEDUP |
|
inherited |
std::vector<Clus> clustering |
|
mutableinherited |
const WeightInfo* currentWeight |
HEPRUP* heprup |
A pointer to the current HEPRUP object.
std::vector< std::pair<int,int> > ICOLUP |
int IDPRUP |
std::vector<long> IDUP |
std::vector<int> ISTUP |
std::string junk |
std::vector< std::pair<int,int> > MOTHUP |
std::vector<Weight> namedweights |
int ntries |
int NUP |
std::pair<int,int> PDFGUPsave |
std::pair<int,int> PDFSUPsave |
std::vector< std::vector<double> > PUP |
double SCALUP |
std::vector<double> SPINUP |
EventGroup subevents |
std::vector<double> VTIMUP |
std::vector< std::pair<double, const WeightInfo *> > weights |
The weights for this event and their corresponding WeightInfo object.
std::pair<double,double> XPDWUP |
The PDF weights for the two incoming partons. Note that this variable is not present in the current LesHouches accord (hep-ph/0109068), hopefully it will be present in a future accord.