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

◆ CommonBlocks()

lhef::CommonBlocks::CommonBlocks ( )
privatedelete

◆ ~CommonBlocks()

lhef::CommonBlocks::~CommonBlocks ( )
privatedelete

Member Function Documentation

◆ fillHEPEUP()

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

Definition at line 60 of file LHECommonBlocks.h.

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  }

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().

◆ fillHEPRUP()

static void lhef::CommonBlocks::fillHEPRUP ( const HEPRUP heprup)
inlinestatic

Definition at line 41 of file LHECommonBlocks.h.

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  }

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().

◆ readHEPEUP()

static void lhef::CommonBlocks::readHEPEUP ( HEPEUP hepeup)
inlinestatic

Definition at line 100 of file LHECommonBlocks.h.

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  }

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().

◆ readHEPRUP()

static void lhef::CommonBlocks::readHEPRUP ( HEPRUP heprup)
inlinestatic

Definition at line 81 of file LHECommonBlocks.h.

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  }

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().

heprup_
struct HEPRUP_ heprup_
mps_fire.i
i
Definition: mps_fire.py:355
HEPRUP_::xmaxup
double xmaxup[100]
Definition: LHECommonBlocks.h:16
HEPEUP_::spinup
double spinup[500]
Definition: LHECommonBlocks.h:33
HEPEUP_::aqedup
double aqedup
Definition: LHECommonBlocks.h:25
HEPRUP_::pdfsup
int pdfsup[2]
Definition: LHECommonBlocks.h:11
HEPEUP_::pup
double pup[500][5]
Definition: LHECommonBlocks.h:31
HEPEUP_::xwgtup
double xwgtup
Definition: LHECommonBlocks.h:23
HEPEUP_::istup
int istup[500]
Definition: LHECommonBlocks.h:28
hepeup_
struct HEPEUP_ hepeup_
HEPEUP_::aqcdup
double aqcdup
Definition: LHECommonBlocks.h:26
HEPEUP_::idprup
int idprup
Definition: LHECommonBlocks.h:22
HEPEUP_::icolup
int icolup[500][2]
Definition: LHECommonBlocks.h:30
HEPRUP_::pdfgup
int pdfgup[2]
Definition: LHECommonBlocks.h:10
HEPRUP_::idwtup
int idwtup
Definition: LHECommonBlocks.h:12
HEPRUP_::idbmup
int idbmup[2]
Definition: LHECommonBlocks.h:8
HEPRUP_::ebmup
double ebmup[2]
Definition: LHECommonBlocks.h:9
HEPEUP_::mothup
int mothup[500][2]
Definition: LHECommonBlocks.h:29
HEPEUP_::idup
int idup[500]
Definition: LHECommonBlocks.h:27
HEPRUP_::xsecup
double xsecup[100]
Definition: LHECommonBlocks.h:14
HEPEUP_::nup
int nup
Definition: LHECommonBlocks.h:21
HEPRUP_::nprup
int nprup
Definition: LHECommonBlocks.h:13
HEPEUP_::vtimup
double vtimup[500]
Definition: LHECommonBlocks.h:32
HEPRUP_::xerrup
double xerrup[100]
Definition: LHECommonBlocks.h:15
HEPRUP_::lprup
int lprup[100]
Definition: LHECommonBlocks.h:17
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
HEPEUP_::scalup
double scalup
Definition: LHECommonBlocks.h:24