Skip to content

Commit

Permalink
Merge pull request #39090 from IzaakWN/addDYToHepMCFilter
Browse files Browse the repository at this point in the history
[Fix] Make `IncludeDY` optional
  • Loading branch information
cmsbuild authored Aug 17, 2022
2 parents bb3cbb3 + cb2f977 commit 5d29539
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion GeneratorInterface/Core/src/EmbeddingHepMCFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
#include "boost/algorithm/string/trim_all.hpp"

EmbeddingHepMCFilter::EmbeddingHepMCFilter(const edm::ParameterSet &iConfig)
: ZPDGID_(iConfig.getParameter<int>("BosonPDGID")), includeDY_(iConfig.getParameter<bool>("IncludeDY")) {
: ZPDGID_(iConfig.getParameter<int>("BosonPDGID")),
includeDY_(iConfig.existsAs<bool>("IncludeDY") ? iConfig.getParameter<bool>("IncludeDY") : false) {
// Defining standard decay channels
ee.fill(TauDecayMode::Electron);
ee.fill(TauDecayMode::Electron);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
MuHadCut = cms.string('Mu.Pt > 18 && Had.Pt > 25 && Mu.Eta < 2.1'),
MuMuCut = cms.string('Mu1.Pt > 17 && Mu2.Pt > 8'),
Final_States = cms.vstring('ElEl','ElHad','ElMu','HadHad','MuHad','MuMu'),
BosonPDGID = cms.int32(23)
BosonPDGID = cms.int32(23),
IncludeDY = cms.bool(False)
),
),
pythiaPylistVerbosity = cms.untracked.int32(0),
Expand Down

0 comments on commit 5d29539

Please sign in to comment.