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();
125 for (
unsigned i = 0;
i < comments.size();
i++) {
126 if (comments[
i].rfind(
"#rwgt", 0) == 0)
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,
std::vector< std::pair< int, int > > ICOLUP
std::pair< double, double > EBMUP
std::pair< double, double > x
std::vector< double > VTIMUP
std::pair< int, int > IDBMUP
Log< level::Error, false > LogError
std::pair< double, double > xPDF
std::pair< int, int > PDFGUP
std::vector< FiveVector > PUP
std::vector< double > SPINUP
std::vector< std::pair< int, int > > MOTHUP
std::vector< double > XERRUP
std::vector< double > XMAXUP
std::pair< int, int > PDFSUP
bool setEvent(int idProcIn) override
std::vector< double > XSECUP