13 using namespace Pythia8;
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);
46 infoPtr->eventAttributes =
new std::map<std::string, std::string >;
55 if (!
event)
return false;
57 if (
event->getReadAttempts() > 0 )
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++) {
75 if (setScalesFromLHEF_ && scales.size()>0 && hepeup.
ISTUP[
i]==1) {
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],
122 hepeup.
PUP[0][3] / runInfo->getHEPRUP()->EBMUP.first,
123 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
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::vector< double > XERRUP
std::vector< double > XMAXUP
std::pair< int, int > PDFSUP
bool setEvent(int idProcIn)
std::vector< double > XSECUP
std::vector< std::pair< int, int > > ICOLUP