Skip to content
Snippets Groups Projects
Commit 21c992d2 authored by Charles Burton's avatar Charles Burton
Browse files

Fix shared Pythia8/Pythia8B variables

parent 16204815
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,6 @@ private:
double m_numberAlphaS;
bool m_sameAlphaSAsMPI;
Pythia8::SuppressSmallPT *m_SuppressSmallPT;
unsigned int m_maxFailures;
unsigned int m_failureCount;
};
......
......@@ -179,7 +179,6 @@ StatusCode Pythia8B_i::callGenerator(){
int iEvent(0);
while (iEvent < 1) { // keep going until an event is accepted
++m_totalPythiaCalls;
ATH_MSG_DEBUG("Throwing the dice....");
if ( !Pythia8_i::m_pythia.next() ) {
// First check if it failed because it ran out of events.
......@@ -197,6 +196,9 @@ StatusCode Pythia8B_i::callGenerator(){
continue;
}
}
// Reset failure counter and increment event counter after a successful event
m_failureCount = 0;
++m_totalPythiaCalls;
// Find b(c)/antib(c) quarks and enforce cuts as required
int nbBeforeSelection(0);
......
......@@ -87,6 +87,7 @@ protected:
// make these protected so that Pythia8B can access them
Pythia8::Pythia m_pythia;
HepMC::Pythia8ToHepMC m_pythiaToHepMC;
unsigned int m_maxFailures;
private:
......@@ -121,7 +122,6 @@ private:
double m_sigmaTotal;
double m_conversion;
unsigned int m_maxFailures;
unsigned int m_failureCount;
std::map<std::string, PDGID> m_particleIDs;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment