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 ()=delete
 
 ~CommonBlocks ()=delete
 

Detailed Description

Definition at line 39 of file LHECommonBlocks.h.

Constructor & Destructor Documentation

lhef::CommonBlocks::CommonBlocks ( )
privatedelete
lhef::CommonBlocks::~CommonBlocks ( )
privatedelete

Member Function Documentation

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

Definition at line 60 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, dqmiolumiharvest::j, 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().

60  {
61  hepeup_.nup = hepeup->NUP;
62  hepeup_.idprup = hepeup->IDPRUP;
63  hepeup_.xwgtup = hepeup->XWGTUP;
64  hepeup_.scalup = hepeup->SCALUP;
65  hepeup_.aqedup = hepeup->AQEDUP;
66  hepeup_.aqcdup = hepeup->AQCDUP;
67  for (int i = 0; i < hepeup->NUP; i++) {
68  hepeup_.idup[i] = hepeup->IDUP[i];
69  hepeup_.istup[i] = hepeup->ISTUP[i];
70  hepeup_.mothup[i][0] = hepeup->MOTHUP[i].first;
71  hepeup_.mothup[i][1] = hepeup->MOTHUP[i].second;
72  hepeup_.icolup[i][0] = hepeup->ICOLUP[i].first;
73  hepeup_.icolup[i][1] = hepeup->ICOLUP[i].second;
74  for (unsigned int j = 0; j < 5; j++)
75  hepeup_.pup[i][j] = hepeup->PUP[i][j];
76  hepeup_.vtimup[i] = hepeup->VTIMUP[i];
77  hepeup_.spinup[i] = hepeup->SPINUP[i];
78  }
79  }
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().

41  {
42  heprup_.idbmup[0] = heprup->IDBMUP.first;
43  heprup_.idbmup[1] = heprup->IDBMUP.second;
44  heprup_.ebmup[0] = heprup->EBMUP.first;
45  heprup_.ebmup[1] = heprup->EBMUP.second;
46  heprup_.pdfgup[0] = heprup->PDFGUP.first;
47  heprup_.pdfgup[1] = heprup->PDFGUP.second;
48  heprup_.pdfsup[0] = heprup->PDFSUP.first;
49  heprup_.pdfsup[1] = heprup->PDFSUP.second;
50  heprup_.idwtup = heprup->IDWTUP;
51  heprup_.nprup = heprup->NPRUP;
52  for (int i = 0; i < heprup->NPRUP; i++) {
53  heprup_.xsecup[i] = heprup->XSECUP[i];
54  heprup_.xerrup[i] = heprup->XERRUP[i];
55  heprup_.xmaxup[i] = heprup->XMAXUP[i];
56  heprup_.lprup[i] = heprup->LPRUP[i];
57  }
58  }
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 100 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, dqmiolumiharvest::j, 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().

100  {
101  hepeup->resize(hepeup_.nup);
102  hepeup->IDPRUP = hepeup_.idprup;
103  hepeup->XWGTUP = hepeup_.xwgtup;
104  hepeup->SCALUP = hepeup_.scalup;
105  hepeup->AQEDUP = hepeup_.aqedup;
106  hepeup->AQCDUP = hepeup_.aqcdup;
107  for (int i = 0; i < hepeup->NUP; i++) {
108  hepeup->IDUP[i] = hepeup_.idup[i];
109  hepeup->ISTUP[i] = hepeup_.istup[i];
110  hepeup->MOTHUP[i].first = hepeup_.mothup[i][0];
111  hepeup->MOTHUP[i].second = hepeup_.mothup[i][1];
112  hepeup->ICOLUP[i].first = hepeup_.icolup[i][0];
113  hepeup->ICOLUP[i].second = hepeup_.icolup[i][1];
114  for (unsigned int j = 0; j < 5; j++)
115  hepeup->PUP[i][j] = hepeup_.pup[i][j];
116  hepeup->VTIMUP[i] = hepeup_.vtimup[i];
117  hepeup->SPINUP[i] = hepeup_.spinup[i];
118  }
119  }
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 81 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().

81  {
82  heprup->resize(heprup_.nprup);
83  heprup->IDBMUP.first = heprup_.idbmup[0];
84  heprup->IDBMUP.second = heprup_.idbmup[1];
85  heprup->EBMUP.first = heprup_.ebmup[0];
86  heprup->EBMUP.second = heprup_.ebmup[1];
87  heprup->PDFGUP.first = heprup_.pdfgup[0];
88  heprup->PDFGUP.second = heprup_.pdfgup[1];
89  heprup->PDFSUP.first = heprup_.pdfsup[0];
90  heprup->PDFSUP.second = heprup_.pdfsup[1];
91  heprup->IDWTUP = heprup_.idwtup;
92  for (int i = 0; i < heprup->NPRUP; i++) {
93  heprup->XSECUP[i] = heprup_.xsecup[i];
94  heprup->XERRUP[i] = heprup_.xerrup[i];
95  heprup->XMAXUP[i] = heprup_.xmaxup[i];
96  heprup->LPRUP[i] = heprup_.lprup[i];
97  }
98  }
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]