CMS 3D CMS Logo

List of all members | Static Public Member Functions | Private Member Functions
lhef::CommonBlocks Class Reference

#include <LHECommonBlocks.h>

Static Public Member Functions

static void fillHEPEUP (const HEPEUP *hepeup)
 
static void fillHEPRUP (const HEPRUP *heprup)
 
static void readHEPEUP (HEPEUP *hepeup)
 
static void readHEPRUP (HEPRUP *heprup)
 

Private Member Functions

 CommonBlocks ()
 
 ~CommonBlocks ()
 

Detailed Description

Definition at line 39 of file LHECommonBlocks.h.

Constructor & Destructor Documentation

lhef::CommonBlocks::CommonBlocks ( )
private
lhef::CommonBlocks::~CommonBlocks ( )
private

Member Function Documentation

static void lhef::CommonBlocks::fillHEPEUP ( const HEPEUP hepeup)
inlinestatic

Definition at line 61 of file LHECommonBlocks.h.

References HEPEUP_::aqcdup, lhef::HEPEUP::AQCDUP, HEPEUP_::aqedup, lhef::HEPEUP::AQEDUP, hepeup_, mps_fire::i, HEPEUP_::icolup, lhef::HEPEUP::ICOLUP, HEPEUP_::idprup, lhef::HEPEUP::IDPRUP, HEPEUP_::idup, lhef::HEPEUP::IDUP, HEPEUP_::istup, lhef::HEPEUP::ISTUP, HEPEUP_::mothup, lhef::HEPEUP::MOTHUP, HEPEUP_::nup, lhef::HEPEUP::NUP, HEPEUP_::pup, lhef::HEPEUP::PUP, HEPEUP_::scalup, lhef::HEPEUP::SCALUP, HEPEUP_::spinup, lhef::HEPEUP::SPINUP, HEPEUP_::vtimup, lhef::HEPEUP::VTIMUP, HEPEUP_::xwgtup, and lhef::HEPEUP::XWGTUP.

Referenced by gen::FortranCallback::fillEvent(), JetMatchingHook::setLHEEvent(), and Herwig6Hadronizer::upEvnt().

62  {
63  hepeup_.nup = hepeup->NUP;
64  hepeup_.idprup = hepeup->IDPRUP;
65  hepeup_.xwgtup = hepeup->XWGTUP;
66  hepeup_.scalup = hepeup->SCALUP;
67  hepeup_.aqedup = hepeup->AQEDUP;
68  hepeup_.aqcdup = hepeup->AQCDUP;
69  for(int i = 0; i < hepeup->NUP; i++) {
70  hepeup_.idup[i] = hepeup->IDUP[i];
71  hepeup_.istup[i] = hepeup->ISTUP[i];
72  hepeup_.mothup[i][0] = hepeup->MOTHUP[i].first;
73  hepeup_.mothup[i][1] = hepeup->MOTHUP[i].second;
74  hepeup_.icolup[i][0] = hepeup->ICOLUP[i].first;
75  hepeup_.icolup[i][1] = hepeup->ICOLUP[i].second;
76  for(unsigned int j = 0; j < 5; j++)
77  hepeup_.pup[i][j] = hepeup->PUP[i][j];
78  hepeup_.vtimup[i] = hepeup->VTIMUP[i];
79  hepeup_.spinup[i] = hepeup->SPINUP[i];
80  }
81  }
int mothup[500][2]
double aqcdup
double spinup[500]
int istup[500]
struct HEPEUP_ hepeup_
double vtimup[500]
double scalup
double xwgtup
int icolup[500][2]
double aqedup
double pup[500][5]
int idup[500]
static void lhef::CommonBlocks::fillHEPRUP ( const HEPRUP heprup)
inlinestatic

Definition at line 41 of file LHECommonBlocks.h.

References HEPRUP_::ebmup, lhef::HEPRUP::EBMUP, heprup_, mps_fire::i, HEPRUP_::idbmup, lhef::HEPRUP::IDBMUP, HEPRUP_::idwtup, lhef::HEPRUP::IDWTUP, HEPRUP_::lprup, lhef::HEPRUP::LPRUP, HEPRUP_::nprup, lhef::HEPRUP::NPRUP, HEPRUP_::pdfgup, lhef::HEPRUP::PDFGUP, HEPRUP_::pdfsup, lhef::HEPRUP::PDFSUP, HEPRUP_::xerrup, lhef::HEPRUP::XERRUP, HEPRUP_::xmaxup, lhef::HEPRUP::XMAXUP, HEPRUP_::xsecup, and lhef::HEPRUP::XSECUP.

Referenced by gen::FortranCallback::fillHeader(), JetMatchingHook::setLHERunInfo(), and Herwig6Hadronizer::upInit().

42  {
43  heprup_.idbmup[0] = heprup->IDBMUP.first;
44  heprup_.idbmup[1] = heprup->IDBMUP.second;
45  heprup_.ebmup[0] = heprup->EBMUP.first;
46  heprup_.ebmup[1] = heprup->EBMUP.second;
47  heprup_.pdfgup[0] = heprup->PDFGUP.first;
48  heprup_.pdfgup[1] = heprup->PDFGUP.second;
49  heprup_.pdfsup[0] = heprup->PDFSUP.first;
50  heprup_.pdfsup[1] = heprup->PDFSUP.second;
51  heprup_.idwtup = heprup->IDWTUP;
52  heprup_.nprup = heprup->NPRUP;
53  for(int i = 0; i < heprup->NPRUP; i++) {
54  heprup_.xsecup[i] = heprup->XSECUP[i];
55  heprup_.xerrup[i] = heprup->XERRUP[i];
56  heprup_.xmaxup[i] = heprup->XMAXUP[i];
57  heprup_.lprup[i] = heprup->LPRUP[i];
58  }
59  }
double ebmup[2]
int pdfgup[2]
struct HEPRUP_ heprup_
int idbmup[2]
double xsecup[100]
double xmaxup[100]
int pdfsup[2]
int lprup[100]
double xerrup[100]
static void lhef::CommonBlocks::readHEPEUP ( HEPEUP hepeup)
inlinestatic

Definition at line 103 of file LHECommonBlocks.h.

References HEPEUP_::aqcdup, lhef::HEPEUP::AQCDUP, HEPEUP_::aqedup, lhef::HEPEUP::AQEDUP, hepeup_, mps_fire::i, HEPEUP_::icolup, lhef::HEPEUP::ICOLUP, HEPEUP_::idprup, lhef::HEPEUP::IDPRUP, HEPEUP_::idup, lhef::HEPEUP::IDUP, HEPEUP_::istup, lhef::HEPEUP::ISTUP, HEPEUP_::mothup, lhef::HEPEUP::MOTHUP, HEPEUP_::nup, lhef::HEPEUP::NUP, HEPEUP_::pup, lhef::HEPEUP::PUP, lhef::HEPEUP::resize(), HEPEUP_::scalup, lhef::HEPEUP::SCALUP, HEPEUP_::spinup, lhef::HEPEUP::SPINUP, HEPEUP_::vtimup, lhef::HEPEUP::VTIMUP, HEPEUP_::xwgtup, and lhef::HEPEUP::XWGTUP.

Referenced by MCatNLOSource::produce().

104  {
105  hepeup->resize(hepeup_.nup);
106  hepeup->IDPRUP = hepeup_.idprup;
107  hepeup->XWGTUP = hepeup_.xwgtup;
108  hepeup->SCALUP = hepeup_.scalup;
109  hepeup->AQEDUP = hepeup_.aqedup;
110  hepeup->AQCDUP = hepeup_.aqcdup;
111  for(int i = 0; i < hepeup->NUP; i++) {
112  hepeup->IDUP[i] = hepeup_.idup[i];
113  hepeup->ISTUP[i] = hepeup_.istup[i];
114  hepeup->MOTHUP[i].first = hepeup_.mothup[i][0];
115  hepeup->MOTHUP[i].second = hepeup_.mothup[i][1];
116  hepeup->ICOLUP[i].first = hepeup_.icolup[i][0];
117  hepeup->ICOLUP[i].second = hepeup_.icolup[i][1];
118  for(unsigned int j = 0; j < 5; j++)
119  hepeup->PUP[i][j] = hepeup_.pup[i][j];
120  hepeup->VTIMUP[i] = hepeup_.vtimup[i];
121  hepeup->SPINUP[i] = hepeup_.spinup[i];
122  }
123  }
int mothup[500][2]
double aqcdup
double spinup[500]
int istup[500]
struct HEPEUP_ hepeup_
double vtimup[500]
double scalup
double xwgtup
int icolup[500][2]
double aqedup
double pup[500][5]
int idup[500]
static void lhef::CommonBlocks::readHEPRUP ( HEPRUP heprup)
inlinestatic

Definition at line 83 of file LHECommonBlocks.h.

References HEPRUP_::ebmup, lhef::HEPRUP::EBMUP, heprup_, mps_fire::i, HEPRUP_::idbmup, lhef::HEPRUP::IDBMUP, HEPRUP_::idwtup, lhef::HEPRUP::IDWTUP, HEPRUP_::lprup, lhef::HEPRUP::LPRUP, HEPRUP_::nprup, lhef::HEPRUP::NPRUP, HEPRUP_::pdfgup, lhef::HEPRUP::PDFGUP, HEPRUP_::pdfsup, lhef::HEPRUP::PDFSUP, lhef::HEPRUP::resize(), HEPRUP_::xerrup, lhef::HEPRUP::XERRUP, HEPRUP_::xmaxup, lhef::HEPRUP::XMAXUP, HEPRUP_::xsecup, and lhef::HEPRUP::XSECUP.

Referenced by MCatNLOSource::beginRun(), and MCatNLOSource::produce().

84  {
85  heprup->resize(heprup_.nprup);
86  heprup->IDBMUP.first = heprup_.idbmup[0];
87  heprup->IDBMUP.second = heprup_.idbmup[1];
88  heprup->EBMUP.first = heprup_.ebmup[0];
89  heprup->EBMUP.second = heprup_.ebmup[1];
90  heprup->PDFGUP.first = heprup_.pdfgup[0];
91  heprup->PDFGUP.second = heprup_.pdfgup[1];
92  heprup->PDFSUP.first = heprup_.pdfsup[0];
93  heprup->PDFSUP.second = heprup_.pdfsup[1];
94  heprup->IDWTUP = heprup_.idwtup;
95  for(int i = 0; i < heprup->NPRUP; i++) {
96  heprup->XSECUP[i] = heprup_.xsecup[i];
97  heprup->XERRUP[i] = heprup_.xerrup[i];
98  heprup->XMAXUP[i] = heprup_.xmaxup[i];
99  heprup->LPRUP[i] = heprup_.lprup[i];
100  }
101  }
double ebmup[2]
int pdfgup[2]
struct HEPRUP_ heprup_
int idbmup[2]
double xsecup[100]
double xmaxup[100]
int pdfsup[2]
int lprup[100]
double xerrup[100]