#include <LHAupLesHouches.h>
Definition at line 22 of file LHAupLesHouches.h.
LHAupLesHouches::LHAupLesHouches |
( |
| ) |
|
|
inline |
bool LHAupLesHouches::setEvent |
( |
int |
idProcIn | ) |
|
|
private |
Definition at line 53 of file LHAupLesHouches.cc.
References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, event(), i, lhef::HEPEUP::ICOLUP, gen::PdfInfo::id, lhef::HEPEUP::IDPRUP, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, lhef::HEPEUP::PUP, gen::PdfInfo::scalePDF, lhef::HEPEUP::SCALUP, lhef::HEPEUP::SPINUP, lhef::HEPEUP::VTIMUP, gen::PdfInfo::x, gen::PdfInfo::xPDF, and lhef::HEPEUP::XWGTUP.
55 if (!
event)
return false;
61 if ( !hepeup.
NUP )
return false;
66 const std::vector<float> &scales =
event->scales();
68 unsigned int iscale = 0;
69 for(
int i = 0;
i < hepeup.
NUP;
i++) {
76 if (iscale>=scales.size()) {
78 <<
"cluster scales for all outgoing partons or for none"
81 scalein = scales[iscale];
94 infoPtr->eventAttributes->clear();
97 int npLO =
event->npLO();
98 int npNLO =
event->npNLO();
104 snprintf( buffer, 100,
"%i",npLO);
105 (*infoPtr->eventAttributes)[
"npLO"] = buffer;
109 snprintf( buffer, 100,
"%i",npNLO);
110 (*infoPtr->eventAttributes)[
"npNLO"] = buffer;
115 this->setPdf(pdf->
id.first, pdf->
id.second,
116 pdf->
x.first, pdf->
x.second,
118 pdf->
xPDF.first, pdf->
xPDF.second,
true);
121 this->setPdf(hepeup.
IDUP[0], hepeup.
IDUP[1],
std::pair< double, double > EBMUP
std::pair< double, double > x
std::vector< double > VTIMUP
const int getReadAttempts()
std::pair< double, double > xPDF
std::vector< std::pair< int, int > > MOTHUP
std::vector< FiveVector > PUP
std::vector< double > SPINUP
const HEPRUP * getHEPRUP() const
lhef::LHERunInfo * runInfo
std::vector< std::pair< int, int > > ICOLUP
bool LHAupLesHouches::setInit |
( |
| ) |
|
|
private |
Definition at line 16 of file LHAupLesHouches.cc.
References lhef::HEPRUP::EBMUP, i, lhef::HEPRUP::IDBMUP, lhef::HEPRUP::IDWTUP, lhef::HEPRUP::LPRUP, lhef::HEPRUP::NPRUP, lhef::HEPRUP::PDFGUP, lhef::HEPRUP::PDFSUP, lhef::HEPRUP::XERRUP, lhef::HEPRUP::XMAXUP, and lhef::HEPRUP::XSECUP.
25 setStrategy(heprup.
IDWTUP);
27 for(
int i = 0;
i < heprup.
NPRUP;
i++)
38 std::string slhaheader;
39 for(std::vector<std::string>::const_iterator iter = slha.begin(); iter != slha.end(); ++iter) {
40 slhaheader.append(*iter);
42 infoPtr->setHeader(
"slha",slhaheader);
46 infoPtr->eventAttributes =
new std::map<std::string, std::string >;
std::pair< double, double > EBMUP
std::pair< int, int > IDBMUP
std::pair< int, int > PDFGUP
std::vector< double > XERRUP
std::vector< double > XMAXUP
const HEPRUP * getHEPRUP() const
std::pair< int, int > PDFSUP
lhef::LHERunInfo * runInfo
std::vector< std::string > findHeader(const std::string &tag) const
std::vector< double > XSECUP
void LHAupLesHouches::setScalesFromLHEF |
( |
bool |
b | ) |
|
|
inline |
bool LHAupLesHouches::setScalesFromLHEF_ |
|
private |