21 setStrategy(heprup.
IDWTUP);
23 for (
int i = 0;
i < heprup.
NPRUP;
i++)
31 std::vector<std::string> slha = runInfo->findHeader(
"slha");
34 for (std::vector<std::string>::const_iterator iter = slha.begin(); iter != slha.end(); ++iter) {
35 slhaheader.append(*iter);
37 infoPtr->setHeader(
"slha", slhaheader);
42 fEvAttributes =
new std::map<std::string, std::string>;
44 fEvAttributes->clear();
54 if (
event->getReadAttempts() > 0)
64 const std::vector<float> &scales =
event->scales();
66 unsigned int iscale = 0;
67 for (
int i = 0;
i < hepeup.
NUP;
i++) {
73 if (setScalesFromLHEF_ && !scales.empty() && hepeup.
ISTUP[
i] == 1) {
74 if (iscale >= scales.size()) {
76 <<
"cluster scales for all outgoing partons or for none" << std::endl;
78 scalein = scales[iscale];
82 addParticle(hepeup.
IDUP[
i],
98 if (!infoPtr->eventAttributes) {
99 fEvAttributes->clear();
100 infoPtr->eventAttributes = fEvAttributes;
102 infoPtr->eventAttributes = fEvAttributes;
103 infoPtr->eventAttributes->clear();
107 int npLO =
event->npLO();
108 int npNLO =
event->npNLO();
114 snprintf(
buffer, 100,
"%i", npLO);
115 (*infoPtr->eventAttributes)[
"npLO"] =
buffer;
119 snprintf(
buffer, 100,
"%i", npNLO);
120 (*infoPtr->eventAttributes)[
"npNLO"] =
buffer;
124 const std::vector<std::string> &
comments =
event->getComments();
127 (*infoPtr->eventAttributes)[
"#rwgt"] =
comments[
i];
132 this->setPdf(pdf->
id.first,
141 this->setPdf(hepeup.
IDUP[0],
143 hepeup.
PUP[0][3] / runInfo->getHEPRUP()->EBMUP.first,
144 hepeup.
PUP[1][3] / runInfo->getHEPRUP()->EBMUP.second,