CMS 3D CMS Logo

List of all members
lhef::HEPRUP Class Reference

#include <LesHouches.h>

Standard constructors and destructors.

std::pair< int, int > IDBMUP
 
std::pair< double, double > EBMUP
 
std::pair< int, int > PDFGUP
 
std::pair< int, int > PDFSUP
 
int IDWTUP
 
int NPRUP
 
std::vector< double > XSECUP
 
std::vector< double > XERRUP
 
std::vector< double > XMAXUP
 
std::vector< int > LPRUP
 
 HEPRUP ()
 
bool operator== (const HEPRUP &other) const
 
void resize (int nrup)
 
void resize ()
 
void swap (HEPRUP &other)
 

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.

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  }

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

◆ resize() [1/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.

54  {
55  XSECUP.resize(NPRUP);
56  XERRUP.resize(NPRUP);
57  XMAXUP.resize(NPRUP);
58  LPRUP.resize(NPRUP);
59  }

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

Referenced by resize().

◆ resize() [2/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.

44  {
45  NPRUP = nrup;
46  resize();
47  }

References NPRUP, and resize().

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

◆ swap()

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

Definition at line 61 of file LesHouches.h.

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  }

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

Referenced by LHERunInfoProduct::swap().

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
lhef::HEPRUP::XSECUP
std::vector< double > XSECUP
Definition: LesHouches.h:112
lhef::HEPRUP::resize
void resize()
Definition: LesHouches.h:54
lhef::HEPRUP::EBMUP
std::pair< double, double > EBMUP
Definition: LesHouches.h:82
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
lhef::HEPRUP::LPRUP
std::vector< int > LPRUP
Definition: LesHouches.h:128
trackingPlots.other
other
Definition: trackingPlots.py:1460
lhef::HEPRUP::PDFGUP
std::pair< int, int > PDFGUP
Definition: LesHouches.h:88
lhef::HEPRUP::NPRUP
int NPRUP
Definition: LesHouches.h:107
lhef::HEPRUP::IDWTUP
int IDWTUP
Definition: LesHouches.h:101
lhef::HEPRUP::XERRUP
std::vector< double > XERRUP
Definition: LesHouches.h:118
lhef::HEPRUP::PDFSUP
std::pair< int, int > PDFSUP
Definition: LesHouches.h:94
lhef::HEPRUP::XMAXUP
std::vector< double > XMAXUP
Definition: LesHouches.h:123
lhef::HEPRUP::IDBMUP
std::pair< int, int > IDBMUP
Definition: LesHouches.h:77