CMS 3D CMS Logo

Classes | Public Member Functions | Public Attributes

lhef::HEPEUP Class Reference

#include <LesHouches.h>

List of all members.

Classes

struct  FiveVector

Public Member Functions

void resize (int nup)
void resize ()
Standard constructors and destructors.
 HEPEUP ()

Public Attributes

double AQCDUP
double AQEDUP
std::vector< std::pair< int,
int > > 
ICOLUP
int IDPRUP
std::vector< int > IDUP
std::vector< int > ISTUP
std::vector< std::pair< int,
int > > 
MOTHUP
int NUP
std::vector< FiveVectorPUP
double SCALUP
std::vector< double > SPINUP
std::vector< double > VTIMUP
std::pair< double, double > XPDWUP
double XWGTUP

Detailed Description

The HEPEUP 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 135 of file LesHouches.h.


Constructor & Destructor Documentation

lhef::HEPEUP::HEPEUP ( ) [inline]

Default constructor.

Definition at line 142 of file LesHouches.h.

                 :
                NUP(0), IDPRUP(0), XWGTUP(0.0), XPDWUP(0.0, 0.0),
                SCALUP(0.0), AQEDUP(0.0), AQCDUP(0.0)
        {}

Member Function Documentation

void lhef::HEPEUP::resize ( int  nup) [inline]

Set the NUP variable, corresponding to the number of particles in the current event, to nup, and resize all relevant vectors accordingly.

Definition at line 161 of file LesHouches.h.

References NUP, and resize().

Referenced by alpgen::fixEventHiggsTTbar(), alpgen::fixEventSingleTop(), alpgen::fixEventTTbar(), alpgen::fixEventWZ(), lhef::LHEEvent::LHEEvent(), AlpgenSource::readAlpgenEvent(), lhef::CommonBlocks::readHEPEUP(), and lhef::LHEEvent::removeParticle().

        {
                NUP = nup;
                resize();
        }
void lhef::HEPEUP::resize ( ) [inline]

Assuming the NUP variable, corresponding to the number of particles in the current event, is correctly set, resize the relevant vectors accordingly.

Definition at line 172 of file LesHouches.h.

References ICOLUP, IDUP, ISTUP, MOTHUP, NUP, PUP, SPINUP, and VTIMUP.

Referenced by resize().

        {
                IDUP.resize(NUP);
                ISTUP.resize(NUP);
                MOTHUP.resize(NUP);
                ICOLUP.resize(NUP);
                PUP.resize(NUP);
                VTIMUP.resize(NUP);
                SPINUP.resize(NUP);
        }

Member Data Documentation

std::vector< std::pair<int, int> > lhef::HEPEUP::ICOLUP
std::vector<int> lhef::HEPEUP::IDUP
std::vector<int> lhef::HEPEUP::ISTUP
std::vector< std::pair<int, int> > lhef::HEPEUP::MOTHUP
std::vector<double> lhef::HEPEUP::SPINUP
std::vector<double> lhef::HEPEUP::VTIMUP
std::pair<double, double> lhef::HEPEUP::XPDWUP

The PDF weights for the two incoming partons. Note that this variable is not present in the current LesHouches accord (hep-ph/0109068), hopefully it will be present in a future accord.

Definition at line 204 of file LesHouches.h.

Referenced by lhef::LHEEvent::LHEEvent().