CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
lhef::HEPRUP Class Reference

#include <LesHouches.h>

Public Member Functions

bool operator== (const HEPRUP &other) const
 
void resize (int nrup)
 
void resize ()
 
Standard constructors and destructors.
 HEPRUP ()
 

Public Attributes

std::pair< double, double > EBMUP
 
std::pair< int, int > IDBMUP
 
int IDWTUP
 
std::vector< int > LPRUP
 
int NPRUP
 
std::pair< int, int > PDFGUP
 
std::pair< int, int > PDFSUP
 
std::vector< double > XERRUP
 
std::vector< double > XMAXUP
 
std::vector< double > XSECUP
 

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 22 of file LesHouches.h.

Constructor & Destructor Documentation

lhef::HEPRUP::HEPRUP ( )
inline

Default constructor.

Definition at line 29 of file LesHouches.h.

29 : IDWTUP(0), NPRUP(0) {}

Member Function Documentation

bool lhef::HEPRUP::operator== ( const HEPRUP other) const
inline

Definition at line 33 of file LesHouches.h.

References EBMUP, IDBMUP, IDWTUP, LPRUP, NPRUP, PDFGUP, PDFSUP, XERRUP, XMAXUP, and XSECUP.

34  {
35  return IDBMUP == other.IDBMUP &&
36  EBMUP == other.EBMUP &&
37  PDFGUP == other.PDFGUP &&
38  PDFSUP == other.PDFSUP &&
39  IDWTUP == other.IDWTUP &&
40  NPRUP == other.NPRUP &&
41  XSECUP == other.XSECUP &&
42  XERRUP == other.XERRUP &&
43  XMAXUP == other.XMAXUP &&
44  LPRUP == other.LPRUP;
45  }
std::pair< double, double > EBMUP
Definition: LesHouches.h:78
std::pair< int, int > IDBMUP
Definition: LesHouches.h:73
std::pair< int, int > PDFGUP
Definition: LesHouches.h:84
std::vector< double > XERRUP
Definition: LesHouches.h:114
std::vector< double > XMAXUP
Definition: LesHouches.h:119
std::pair< int, int > PDFSUP
Definition: LesHouches.h:90
std::vector< double > XSECUP
Definition: LesHouches.h:108
std::vector< int > LPRUP
Definition: LesHouches.h:124
void lhef::HEPRUP::resize ( int  nrup)
inline
void lhef::HEPRUP::resize ( )
inline

Assuming the NPRUP variable, corresponding to the number of sub-processes, is correctly set, resize the relevant vectors accordingly.

Definition at line 63 of file LesHouches.h.

References LPRUP, NPRUP, XERRUP, XMAXUP, and XSECUP.

Referenced by Vispa.Gui.TextDialog.TextDialog::__init__(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::__init__(), Vispa.Main.MainWindow.MainWindow::_loadIni(), resize(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

63  {
64  XSECUP.resize(NPRUP);
65  XERRUP.resize(NPRUP);
66  XMAXUP.resize(NPRUP);
67  LPRUP.resize(NPRUP);
68  }
std::vector< double > XERRUP
Definition: LesHouches.h:114
std::vector< double > XMAXUP
Definition: LesHouches.h:119
std::vector< double > XSECUP
Definition: LesHouches.h:108
std::vector< int > LPRUP
Definition: LesHouches.h:124

Member Data Documentation

std::pair<double, double> lhef::HEPRUP::EBMUP
std::pair<int, int> lhef::HEPRUP::IDBMUP
int lhef::HEPRUP::IDWTUP
std::vector<int> lhef::HEPRUP::LPRUP
int lhef::HEPRUP::NPRUP
std::pair<int, int> lhef::HEPRUP::PDFGUP
std::pair<int, int> lhef::HEPRUP::PDFSUP
std::vector<double> lhef::HEPRUP::XERRUP
std::vector<double> lhef::HEPRUP::XMAXUP
std::vector<double> lhef::HEPRUP::XSECUP