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 (const std::string &name) const |
double | weight (int i=0) const |
double | weight (const std::string &name) const |
void | setWeight (int i, double w) |
bool | setWeight (const std::string &name, double w) |
void | resize () |
bool | setWeightInfo (unsigned int i) |
bool | setSubEvent (unsigned int i) |
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. | |
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 |
|
inline |
Copy constructor
Definition at line 2153 of file LHEF.h.
References HEPEUP(), isGroup, operator=(), and TagBase::TagBase().
Constructor from an event or eventgroup tag.
Definition at line 2218 of file LHEF.h.
References AQCDUP, AQEDUP, clustering, TagBase::contents, XMLTag::contents, currentWeight, TagBase::getattr(), HEPEUP(), heprup, ICOLUP, IDPRUP, IDUP, isGroup, ISTUP, junk, MOTHUP, XMLTag::name, namedweights, ntries, NUP, pdfinfo, PUP, resize(), scales, SCALUP, SPINUP, subevents, TagBase::TagBase(), XMLTag::tags, VTIMUP, weights, XPDWUP, and XWGTUP.
|
inline |
|
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 |
Print out the event (group) as an XML tag.
Definition at line 2339 of file LHEF.h.
References AQCDUP, AQEDUP, clustering, LHEF::hashline(), heprup, ICOLUP, IDPRUP, IDUP, isGroup, ISTUP, junk, MOTHUP, namedweights, ntries, NUP, LHEF::oattr(), pdfinfo, TagBase::printattrs(), PUP, scales, SCALUP, SPINUP, subevents, VTIMUP, weight(), weights, and XWGTUP.
|
inlineinherited |
print out ' name="value"' for all unparsed attributes.
Definition at line 453 of file LHEF.h.
References attributes, and LHEF::oattr().
|
inline |
Reset the HEPEUP object (does not touch the sub events).
Definition at line 2423 of file LHEF.h.
References clustering, NUP, setWeightInfo(), and weights.
|
inline |
|
inline |
Copy information from the given HEPEUP. Sub event information is left untouched.
Definition at line 2162 of file LHEF.h.
References AQCDUP, AQEDUP, clustering, currentWeight, HEPEUP(), heprup, ICOLUP, IDPRUP, IDUP, ISTUP, junk, MOTHUP, namedweights, ntries, NUP, PDFGUPsave, pdfinfo, PDFSUPsave, PUP, scales, SCALUP, SPINUP, VTIMUP, weights, XPDWUP, and XWGTUP.
|
inline |
Setup the current event to use sub event i. If zero, no sub event will be chsen.
Definition at line 2549 of file LHEF.h.
References currentWeight, reset(), setEvent(), subevents, and weights.
|
inline |
Set the weight with the given name.
Definition at line 2491 of file LHEF.h.
References heprup, setWeight(), and weights.
|
inline |
|
inline |
Setup the current event to use weight i. If zero, the default weight will be used.
Definition at line 2518 of file LHEF.h.
References currentWeight, heprup, PDFGUPsave, PDFSUPsave, scales, weights, and XWGTUP.
|
inline |
Return the total weight for this event (including all sub evenets) for the given weight name.
Definition at line 2464 of file LHEF.h.
References heprup, and totalWeight().
|
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.