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++) {
79 if (iscale>=scales.size()) {
81 <<
"cluster scales for all outgoing partons or for none" 84 scalein = scales[iscale];
97 if(!infoPtr->eventAttributes) {
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;
122 const std::vector<std::string> &
comments =
event->getComments();
123 for (
unsigned i=0;
i<comments.size();
i++){
124 if (comments[
i].rfind(
"#rwgt", 0)==0)
125 (*infoPtr->eventAttributes)[
"#rwgt"] = comments[
i];
130 this->setPdf(pdf->
id.first, pdf->
id.second,
131 pdf->
x.first, pdf->
x.second,
133 pdf->
xPDF.first, pdf->
xPDF.second,
true);
136 this->setPdf(hepeup.
IDUP[0], hepeup.
IDUP[1],
std::pair< double, double > EBMUP
std::pair< double, double > x
std::vector< double > VTIMUP
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::map< std::string, std::string > * fEvAttributes
std::vector< std::pair< int, int > > ICOLUP