18 if (!runInfo)
return false;
25 setStrategy(heprup.
IDWTUP);
27 for(
int i = 0;
i < heprup.
NPRUP;
i++)
36 std::vector<std::string> slha = runInfo->findHeader(
"slha");
39 for(std::vector<std::string>::const_iterator iter = slha.begin(); iter != slha.end(); ++iter) {
40 slhaheader.append(*iter);
42 infoPtr->setHeader(
"slha",slhaheader);
47 fEvAttributes =
new std::map<std::string, std::string >;
49 fEvAttributes->clear();
58 if (!
event)
return false;
60 if (
event->getReadAttempts() > 0 )
return false;
64 if ( !hepeup.
NUP )
return false;
69 const std::vector<float> &scales =
event->scales();
71 unsigned int iscale = 0;
72 for(
int i = 0;
i < hepeup.
NUP;
i++) {
78 if (setScalesFromLHEF_ && !scales.empty() && hepeup.
ISTUP[
i]==1) {
79 if (iscale>=scales.size()) {
81 <<
"cluster scales for all outgoing partons or for none" 84 scalein = scales[iscale];
97 if(!infoPtr->eventAttributes) {
98 fEvAttributes->clear();
99 infoPtr->eventAttributes = fEvAttributes;
101 infoPtr->eventAttributes->clear();
105 int npLO =
event->npLO();
106 int npNLO =
event->npNLO();
112 snprintf( buffer, 100,
"%i",npLO);
113 (*infoPtr->eventAttributes)[
"npLO"] = buffer;
117 snprintf( buffer, 100,
"%i",npNLO);
118 (*infoPtr->eventAttributes)[
"npNLO"] = buffer;
123 this->setPdf(pdf->
id.first, pdf->
id.second,
124 pdf->
x.first, pdf->
x.second,
126 pdf->
xPDF.first, pdf->
xPDF.second,
true);
129 this->setPdf(hepeup.
IDUP[0], hepeup.
IDUP[1],
130 hepeup.
PUP[0][3] / runInfo->getHEPRUP()->EBMUP.first,
131 hepeup.
PUP[1][3] / runInfo->getHEPRUP()->EBMUP.second,
std::pair< double, double > EBMUP
std::pair< double, double > x
std::vector< double > VTIMUP
std::pair< int, int > IDBMUP
std::pair< double, double > xPDF
std::pair< int, int > PDFGUP
std::vector< std::pair< int, int > > MOTHUP
std::vector< FiveVector > PUP
std::vector< double > SPINUP
std::vector< double > XERRUP
std::vector< double > XMAXUP
std::pair< int, int > PDFSUP
bool setEvent(int idProcIn) override
std::vector< double > XSECUP
std::vector< std::pair< int, int > > ICOLUP