Skip to content

Commit

Permalink
add code for jet matching in pythia > v8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bistapf committed Dec 19, 2024
1 parent 3fb3f9f commit 32d92d2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions standalone/src/DelphesPythia8Reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ class DelphesPythia8Reader : public DelphesInputReader {

// jet matching
#if PYTHIA_VERSION_INTEGER < 8300
Pythia8::CombineMatchingInput* combined = 0;
Pythia8::UserHooks* m_matching = 0;

m_matching = combined->getHook(*m_pythia);
if (!m_matching) {
throw std::runtime_error("can't do matching");
}
m_pythia->setUserHooksPtr(m_matching);
#else
Pythia8::CombineMatchingInput combined;
combined.setHook(*m_pythia);
#endif

if (!m_pythia) {
Expand Down Expand Up @@ -190,12 +196,8 @@ class DelphesPythia8Reader : public DelphesInputReader {
TClonesArray* m_branchParticle;
TClonesArray* m_branchHepMCEvent;

// for matching
Pythia8::CombineMatchingInput* combined = 0;
Pythia8::UserHooks* m_matching = 0;

//resonance decayfilter
Pythia8::ResonanceDecayFilterHook* m_resonanceDecayFilterHook{nullptr};
};

#endif
#endif

0 comments on commit 32d92d2

Please sign in to comment.