CMS 3D CMS Logo

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 ()
 
void swap (HEPRUP &other)
 
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:91
std::pair< int, int > IDBMUP
Definition: LesHouches.h:86
std::pair< int, int > PDFGUP
Definition: LesHouches.h:97
std::vector< double > XERRUP
Definition: LesHouches.h:127
std::vector< double > XMAXUP
Definition: LesHouches.h:132
std::pair< int, int > PDFSUP
Definition: LesHouches.h:103
std::vector< double > XSECUP
Definition: LesHouches.h:121
std::vector< int > LPRUP
Definition: LesHouches.h:137
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(), lhef::HEPEUP::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:127
std::vector< double > XMAXUP
Definition: LesHouches.h:132
std::vector< double > XSECUP
Definition: LesHouches.h:121
std::vector< int > LPRUP
Definition: LesHouches.h:137
void lhef::HEPRUP::swap ( HEPRUP other)
inline

Definition at line 70 of file LesHouches.h.

References EBMUP, IDBMUP, IDWTUP, LPRUP, NPRUP, PDFGUP, PDFSUP, std::swap(), XERRUP, XMAXUP, and XSECUP.

Referenced by LHERunInfoProduct::swap().

70  {
71  IDBMUP.swap(other.IDBMUP);
72  EBMUP.swap(other.EBMUP);
73  PDFGUP.swap(other.PDFGUP);
74  PDFSUP.swap(other.PDFSUP);
75  std::swap(IDWTUP, other.IDWTUP);
76  std::swap(NPRUP, other.NPRUP);
77  XSECUP.swap(other.XSECUP);
78  XERRUP.swap(other.XERRUP);
79  XMAXUP.swap(other.XMAXUP);
80  LPRUP.swap(other.LPRUP);
81  }
std::pair< double, double > EBMUP
Definition: LesHouches.h:91
std::pair< int, int > IDBMUP
Definition: LesHouches.h:86
std::pair< int, int > PDFGUP
Definition: LesHouches.h:97
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::vector< double > XERRUP
Definition: LesHouches.h:127
std::vector< double > XMAXUP
Definition: LesHouches.h:132
std::pair< int, int > PDFSUP
Definition: LesHouches.h:103
std::vector< double > XSECUP
Definition: LesHouches.h:121
std::vector< int > LPRUP
Definition: LesHouches.h:137

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