Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,14 @@ public:
LOG(info) << "Info sigmaGen = " << pythiaObject.info.sigmaGen();
LOG(info) << "Info sigmaErr = " << pythiaObject.info.sigmaErr();


// Set event scale and nMPI
LOG(info) << "Info QRen = " << pythiaObject.info.QRen();
LOG(info) << "Info nMPI = " << pythiaObject.info.nMPI();

// Set accepted and attempted values
LOG(info) << "Info accepted = " << pythiaObject.info.nAccepted();
LOG(info) << "Info attempted = " << pythiaObject.info.nTried();

// Set weights (overrides cross-section for each weight)
size_t iw = 0;
auto xsecErr = pythiaObject.info.weightContainerPtr->getTotalXsecErr();
Expand Down Expand Up @@ -176,6 +179,11 @@ public:
// Set event scale and nMPI
eventHeader->putInfo<float>(Key::eventScale, QRen);
eventHeader->putInfo<int>(Key::mpi, nMPI);

// Set accepted and attempted events
eventHeader->putInfo<int>(Key::acceptedEvents, accepted);
eventHeader->putInfo<int>(Key::attemptedEvents, attempted);

LOG(info) << "--- updated header weight = " << weight;

// The following is also set in the base class updateHeader function
Expand Down Expand Up @@ -214,6 +222,9 @@ public:
// Set event scale and nMPI
QRen = info.QRen();
nMPI = info.nMPI();
// Set accepted and attempted events
accepted = info.nAccepted();
attempted = info.nTried();
}

private:
Expand Down Expand Up @@ -249,7 +260,9 @@ private:
// event scale and nMPI
float QRen;
int nMPI;

// accepted and attempted events
int accepted;
int attempted;
};

} // namespace eventgen
Expand Down