Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the original GEN module name for ExternalGeneratorFilter in recognizing generator types #34436

Merged
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions PhysicsTools/JetMCAlgos/plugins/HadronAndPartonSelector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ void HadronAndPartonSelector::produce(edm::Event& iEvent, const edm::EventSetup&
if (genEvtInfoProduct.isValid()) {
const edm::StableProvenance& prov = iEvent.getStableProvenance(genEvtInfoProduct.id());
moduleName = edm::moduleName(prov, iEvent.processHistory());
if (moduleName == "ExternalGeneratorFilter") {
moduleName = edm::parameterSet(prov, iEvent.processHistory()).getParameter<std::string>("@external_type");
edm::LogInfo("SpecialModule") << "GEN events are produced by ExternalGeneratorFilter, "
<< "which is a wrapper of the original module: " << moduleName;
}
}

if (moduleName.find("Pythia6") != std::string::npos)
Expand Down
5 changes: 5 additions & 0 deletions TopQuarkAnalysis/TopEventProducers/src/TopDecaySubset.cc
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ TopDecaySubset::ShowerModel TopDecaySubset::checkShowerModel(edm::Event& event)
if (genEvtInfoProduct.isValid()) {
const edm::StableProvenance& prov = event.getStableProvenance(genEvtInfoProduct.id());
moduleName = edm::moduleName(prov, event.processHistory());
if (moduleName == "ExternalGeneratorFilter") {
moduleName = edm::parameterSet(prov, event.processHistory()).getParameter<std::string>("@external_type");
edm::LogInfo("SpecialModule") << "GEN events are produced by ExternalGeneratorFilter, "
<< "which is a wrapper of the original module: " << moduleName;
}
}

ShowerModel shower(kStart);
Expand Down