LHEF  3.0(beta)
Public Member Functions | Public Attributes | List of all members
LHEF::HEPRUP Class Reference

The HEPRUP class is a simple container corresponding to the Les Houches accord (hep-ph/0109068) common block with the same name. More...

#include <LHEF.h>

Inheritance diagram for LHEF::HEPRUP:
LHEF::TagBase

Public Member Functions

std::string weightNameHepMC (int i) const
 Return the name of the weight with given index suitable to ne used for HepMC3 output.
 
void print (std::ostream &file) const
 Print out the corresponding XML tag to a stream.
 
void clear ()
 Clear all information.
 
void resize (int nrup)
 Set the NPRUP variable, corresponding to the number of sub-processes, to nrup, and resize all relevant vectors accordingly.
 
void resize ()
 Assuming the NPRUP variable, corresponding to the number of sub-processes, is correctly set, resize the relevant vectors accordingly.
 
int weightIndex (std::string name) const
 
int nWeights () const
 
Standard constructors and destructors.
 HEPRUP ()
 Default constructor.
 
HEPRUPoperator= (const HEPRUP &x)
 Assignment operator.
 
 HEPRUP (const XMLTag &tag, int versin)
 Construct from a given init tag.
 
 ~HEPRUP ()
 Destructor.
 
- Public Member Functions inherited from LHEF::TagBase
 TagBase ()
 Default constructor does nothing.
 
 TagBase (const AttributeMap &attr, std::string conts=std::string())
 Main constructor stores the attributes and contents of a tag.
 
bool getattr (std::string n, double &v, bool erase=true)
 Find an attribute named n and set the double variable v to the corresponding value.
 
bool getattr (std::string n, bool &v, bool erase=true)
 Find an attribute named n and set the bool variable v to true if the corresponding value is "yes".
 
bool getattr (std::string n, long &v, bool erase=true)
 Find an attribute named n and set the long variable v to the corresponding value.
 
bool getattr (std::string n, int &v, bool erase=true)
 Find an attribute named n and set the long variable v to the corresponding value.
 
bool getattr (std::string n, std::string &v, bool erase=true)
 Find an attribute named n and set the string variable v to the corresponding value.
 
void printattrs (std::ostream &file) const
 print out ' name="value"' for all unparsed attributes.
 
void closetag (std::ostream &file, std::string tag) const
 Print out end of tag marker.
 

Public Attributes

std::pair< long, long > IDBMUP
 PDG id's of beam particles.
 
std::pair< double, double > EBMUP
 Energy of beam particles given in GeV.
 
std::pair< int, int > PDFGUP
 The author group for the PDF used for the beams according to the PDFLib specification.
 
std::pair< int, int > PDFSUP
 The id number the PDF used for the beams according to the PDFLib specification.
 
int IDWTUP
 Master switch indicating how the ME generator envisages the events weights should be interpreted according to the Les Houches accord.
 
int NPRUP
 The number of different subprocesses in this file.
 
std::vector< double > XSECUP
 The cross sections for the different subprocesses in pb.
 
std::vector< double > XERRUP
 The statistical error in the cross sections for the different subprocesses in pb.
 
std::vector< double > XMAXUP
 The maximum event weights (in HEPEUP::XWGTUP) for different subprocesses.
 
std::vector< int > LPRUP
 The subprocess code for the different subprocesses.
 
XSecInfo xsecinfo
 Contents of the xsecinfo tag.
 
std::vector< Cutcuts
 Contents of the cuts tag.
 
std::map< std::string,
std::set< long > > 
ptypes
 A map of codes for different particle types.
 
std::map< long, ProcInfoprocinfo
 Contents of the procinfo tags.
 
std::map< long, MergeInfomergeinfo
 Contents of the mergeinfo tags.
 
std::vector< Generatorgenerators
 The names of the programs and their version information used to create this file.
 
std::vector< WeightInfoweightinfo
 The vector of WeightInfo objects for this file.
 
std::map< std::string, int > weightmap
 A map relating names of weights to indices of the weightinfo vector.
 
std::vector< WeightGroupweightgroup
 The vector of WeightGroup objects in this file.
 
std::string junk
 Just to be on the safe side we save any junk inside the init-tag.
 
int version
 The main version of the information stored.
 
- Public Attributes inherited from LHEF::TagBase
XMLTag::AttributeMap attributes
 The attributes of this tag;.
 
std::string contents
 The contents of this tag.
 

Additional Inherited Members

- Public Types inherited from LHEF::TagBase
typedef XMLTag::AttributeMap AttributeMap
 Convenient typedef.
 
- Static Public Member Functions inherited from LHEF::TagBase
static std::string yes ()
 Static string token for truth values.
 

Detailed Description

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.

Definition at line 1362 of file LHEF.h.

Member Function Documentation

int LHEF::HEPRUP::nWeights ( ) const
inline
Returns
the number of weights (including the nominial one).

Definition at line 1645 of file LHEF.h.

References weightmap.

Referenced by LHEF::HEPEUP::HEPEUP().

int LHEF::HEPRUP::weightIndex ( std::string  name) const
inline
Returns
the index of the weight with the given name

Definition at line 1636 of file LHEF.h.

References weightmap.

Referenced by LHEF::HEPEUP::HEPEUP(), LHEF::HEPEUP::setWeight(), LHEF::HEPEUP::totalWeight(), and LHEF::HEPEUP::weight().

Member Data Documentation

std::pair<long,long> LHEF::HEPRUP::IDBMUP

PDG id's of beam particles.

(first/second is in +/-z direction).

Definition at line 1654 of file LHEF.h.

Referenced by HEPRUP(), operator=(), and print().


The documentation for this class was generated from the following file: