CMS 3D CMS Logo

List of all members | Classes
lhef::HEPEUP Class Reference

#include <LesHouches.h>

Classes

struct  FiveVector
 

Standard constructors and destructors.

int NUP
 
int IDPRUP
 
double XWGTUP
 
std::pair< double, double > XPDWUP
 
double SCALUP
 
double AQEDUP
 
double AQCDUP
 
std::vector< int > IDUP
 
std::vector< int > ISTUP
 
std::vector< std::pair< int, int > > MOTHUP
 
std::vector< std::pair< int, int > > ICOLUP
 
std::vector< FiveVectorPUP
 
std::vector< double > VTIMUP
 
std::vector< double > SPINUP
 
 HEPEUP ()
 
void resize (int nup)
 
void resize ()
 

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

Constructor & Destructor Documentation

◆ HEPEUP()

lhef::HEPEUP::HEPEUP ( )
inline

Default constructor.

Definition at line 145 of file LesHouches.h.

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

Member Function Documentation

◆ resize() [1/2]

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

171  {
172  IDUP.resize(NUP);
173  ISTUP.resize(NUP);
174  MOTHUP.resize(NUP);
175  ICOLUP.resize(NUP);
176  PUP.resize(NUP);
177  VTIMUP.resize(NUP);
178  SPINUP.resize(NUP);
179  }

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

Referenced by resize().

◆ resize() [2/2]

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.

161  {
162  NUP = nup;
163  resize();
164  }

References NUP, and resize().

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

Member Data Documentation

◆ AQCDUP

double lhef::HEPEUP::AQCDUP

◆ AQEDUP

double lhef::HEPEUP::AQEDUP

◆ ICOLUP

std::vector<std::pair<int, int> > lhef::HEPEUP::ICOLUP

◆ IDPRUP

int lhef::HEPEUP::IDPRUP

◆ IDUP

std::vector<int> lhef::HEPEUP::IDUP

◆ ISTUP

std::vector<int> lhef::HEPEUP::ISTUP

◆ MOTHUP

std::vector<std::pair<int, int> > lhef::HEPEUP::MOTHUP

◆ NUP

int lhef::HEPEUP::NUP

◆ PUP

std::vector<FiveVector> lhef::HEPEUP::PUP

◆ SCALUP

double lhef::HEPEUP::SCALUP

◆ SPINUP

std::vector<double> lhef::HEPEUP::SPINUP

Spin info for the particle entries in this event given as the cosine of the angle between the spin vector of a particle and the 3-momentum of the decaying particle, specified in the lab frame.

Definition at line 259 of file LesHouches.h.

Referenced by gen::TauolappInterface::decay(), EmbeddingLHEProducer::fill_lhe_with_particle(), lhef::CommonBlocks::fillHEPEUP(), alpgen::fixEventHiggsTTbar(), alpgen::fixEventMultiBoson(), alpgen::fixEventTTbar(), alpgen::fixEventWZ(), lhef::LHEEvent::LHEEvent(), LHEEventProduct::const_iterator::next(), lhef::CommonBlocks::readHEPEUP(), lhef::LHEEvent::removeParticle(), resize(), and LHAupLesHouches::setEvent().

◆ VTIMUP

std::vector<double> lhef::HEPEUP::VTIMUP

◆ XPDWUP

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

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

◆ XWGTUP

double lhef::HEPEUP::XWGTUP
lhef::HEPEUP::AQCDUP
double AQCDUP
Definition: LesHouches.h:218
lhef::HEPEUP::MOTHUP
std::vector< std::pair< int, int > > MOTHUP
Definition: LesHouches.h:234
lhef::HEPEUP::ISTUP
std::vector< int > ISTUP
Definition: LesHouches.h:228
lhef::HEPEUP::SPINUP
std::vector< double > SPINUP
Definition: LesHouches.h:259
lhef::HEPEUP::resize
void resize()
Definition: LesHouches.h:171
lhef::HEPEUP::NUP
int NUP
Definition: LesHouches.h:184
lhef::HEPEUP::ICOLUP
std::vector< std::pair< int, int > > ICOLUP
Definition: LesHouches.h:240
lhef::HEPEUP::VTIMUP
std::vector< double > VTIMUP
Definition: LesHouches.h:252
lhef::HEPEUP::AQEDUP
double AQEDUP
Definition: LesHouches.h:213
lhef::HEPEUP::XWGTUP
double XWGTUP
Definition: LesHouches.h:194
lhef::HEPEUP::XPDWUP
std::pair< double, double > XPDWUP
Definition: LesHouches.h:202
lhef::HEPEUP::IDUP
std::vector< int > IDUP
Definition: LesHouches.h:223
lhef::HEPEUP::IDPRUP
int IDPRUP
Definition: LesHouches.h:189
lhef::HEPEUP::PUP
std::vector< FiveVector > PUP
Definition: LesHouches.h:246
lhef::HEPEUP::SCALUP
double SCALUP
Definition: LesHouches.h:208