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

◆ HEPRUP()

lhef::HEPRUP::HEPRUP ( )
inline

Default constructor.

Definition at line 29 of file LesHouches.h.

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

Member Function Documentation

◆ operator==()

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

Definition at line 33 of file LesHouches.h.

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

33  {
34  return IDBMUP == other.IDBMUP && EBMUP == other.EBMUP && PDFGUP == other.PDFGUP && PDFSUP == other.PDFSUP &&
35  IDWTUP == other.IDWTUP && NPRUP == other.NPRUP && XSECUP == other.XSECUP && XERRUP == other.XERRUP &&
36  XMAXUP == other.XMAXUP && LPRUP == other.LPRUP;
37  }
std::pair< double, double > EBMUP
Definition: LesHouches.h:82
std::pair< int, int > IDBMUP
Definition: LesHouches.h:77
std::pair< int, int > PDFGUP
Definition: LesHouches.h:88
std::vector< double > XERRUP
Definition: LesHouches.h:118
std::vector< double > XMAXUP
Definition: LesHouches.h:123
std::pair< int, int > PDFSUP
Definition: LesHouches.h:94
std::vector< double > XSECUP
Definition: LesHouches.h:112
std::vector< int > LPRUP
Definition: LesHouches.h:128

◆ resize() [1/2]

void lhef::HEPRUP::resize ( int  nrup)
inline

Set the NPRUP variable, corresponding to the number of sub-processes, to nrup, and resize all relevant vectors accordingly.

Definition at line 44 of file LesHouches.h.

References NPRUP, and resize().

Referenced by AlpgenSource::beginRun(), EmbeddingLHEProducer::beginRunProduce(), lhef::LHERunInfo::LHERunInfo(), and lhef::CommonBlocks::readHEPRUP().

44  {
45  NPRUP = nrup;
46  resize();
47  }
void resize()
Definition: LesHouches.h:54

◆ resize() [2/2]

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

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

Referenced by resize().

54  {
55  XSECUP.resize(NPRUP);
56  XERRUP.resize(NPRUP);
57  XMAXUP.resize(NPRUP);
58  LPRUP.resize(NPRUP);
59  }
std::vector< double > XERRUP
Definition: LesHouches.h:118
std::vector< double > XMAXUP
Definition: LesHouches.h:123
std::vector< double > XSECUP
Definition: LesHouches.h:112
std::vector< int > LPRUP
Definition: LesHouches.h:128

◆ swap()

void lhef::HEPRUP::swap ( HEPRUP other)
inline

Definition at line 61 of file LesHouches.h.

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

Referenced by LHERunInfoProduct::swap().

61  {
62  IDBMUP.swap(other.IDBMUP);
63  EBMUP.swap(other.EBMUP);
64  PDFGUP.swap(other.PDFGUP);
65  PDFSUP.swap(other.PDFSUP);
66  std::swap(IDWTUP, other.IDWTUP);
67  std::swap(NPRUP, other.NPRUP);
68  XSECUP.swap(other.XSECUP);
69  XERRUP.swap(other.XERRUP);
70  XMAXUP.swap(other.XMAXUP);
71  LPRUP.swap(other.LPRUP);
72  }
std::pair< double, double > EBMUP
Definition: LesHouches.h:82
std::pair< int, int > IDBMUP
Definition: LesHouches.h:77
std::pair< int, int > PDFGUP
Definition: LesHouches.h:88
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::vector< double > XERRUP
Definition: LesHouches.h:118
std::vector< double > XMAXUP
Definition: LesHouches.h:123
std::pair< int, int > PDFSUP
Definition: LesHouches.h:94
std::vector< double > XSECUP
Definition: LesHouches.h:112
std::vector< int > LPRUP
Definition: LesHouches.h:128

Member Data Documentation

◆ EBMUP

std::pair<double, double> lhef::HEPRUP::EBMUP

◆ IDBMUP

std::pair<int, int> lhef::HEPRUP::IDBMUP

◆ IDWTUP

int lhef::HEPRUP::IDWTUP

◆ LPRUP

std::vector<int> lhef::HEPRUP::LPRUP

◆ NPRUP

int lhef::HEPRUP::NPRUP

◆ PDFGUP

std::pair<int, int> lhef::HEPRUP::PDFGUP

◆ PDFSUP

std::pair<int, int> lhef::HEPRUP::PDFSUP

◆ XERRUP

std::vector<double> lhef::HEPRUP::XERRUP

◆ XMAXUP

std::vector<double> lhef::HEPRUP::XMAXUP

◆ XSECUP

std::vector<double> lhef::HEPRUP::XSECUP