CMS 3D CMS Logo

Public Member Functions | Public Attributes

lhef::HEPRUP Class Reference

#include <LesHouches.h>

List of all members.

Public Member Functions

bool operator== (const HEPRUP &other) const
void resize ()
void resize (int nrup)
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.

: 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.

        {
                return IDBMUP == other.IDBMUP &&
                       EBMUP == other.EBMUP &&
                       PDFGUP == other.PDFGUP &&
                       PDFSUP == other.PDFSUP &&
                       IDWTUP == other.IDWTUP &&
                       NPRUP == other.NPRUP &&
                       XSECUP == other.XSECUP &&
                       XERRUP == other.XERRUP &&
                       XMAXUP == other.XMAXUP &&
                       LPRUP == other.LPRUP;
        }
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 resize().

                      {
                XSECUP.resize(NPRUP);
                XERRUP.resize(NPRUP);
                XMAXUP.resize(NPRUP);
                LPRUP.resize(NPRUP);
        }
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 52 of file LesHouches.h.

References NPRUP, and resize().

Referenced by AlpgenSource::beginRun(), lhef::LHERunInfo::LHERunInfo(), LHERunInfoProduct::mergeProduct(), and lhef::CommonBlocks::readHEPRUP().

        {
                NPRUP = nrup;
                resize();
        }

Member Data Documentation

std::pair<double, double> lhef::HEPRUP::EBMUP
std::pair<int, int> lhef::HEPRUP::IDBMUP
std::vector<int> lhef::HEPRUP::LPRUP
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