Skip to content

Commit

Permalink
Merge pull request #35 from cms-nanoAOD/fix_event_content
Browse files Browse the repository at this point in the history
Fix event content & run transition
  • Loading branch information
gpetruc committed Oct 4, 2017
2 parents 35ca40d + 3e9aab9 commit 5647425
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion PhysicsTools/NanoAOD/plugins/GenWeightsTableProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class GenWeightsTableProducer : public edm::global::EDProducer<edm::StreamCache<
produces<nanoaod::FlatTable>("LHEScale");
produces<nanoaod::FlatTable>("LHEPdf");
produces<nanoaod::FlatTable>("LHENamed");
produces<nanoaod::MergeableCounterTable,edm::InRun>();
produces<nanoaod::MergeableCounterTable,edm::Transition::EndRun>();
if (namedWeightIDs_.size() != namedWeightLabels_.size()) {
throw cms::Exception("Configuration", "Size mismatch between namedWeightIDs & namedWeightLabels");
}
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/NanoAOD/plugins/NanoAODOutputModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ NanoAODOutputModule::fillDescriptions(edm::ConfigurationDescriptions& descriptio
->setComment("Change the OutputModule name in the fwk job report to fake PoolOutputModule. This is needed to run on cran (and publish) till crab is fixed");

//replace with whatever you want to get from the EDM by default
const std::vector<std::string> keep = {"drop *", "keep FlatTable_*Table_*_*", "keep edmTriggerResults_*_*_*", "keep MergeableCounterTable_*Table_*_*", "keep UniqueString_nanoMetadata_*_*"};
const std::vector<std::string> keep = {"drop *", "keep nanoaodFlatTable_*Table_*_*", "keep edmTriggerResults_*_*_*", "keep nanoaodMergeableCounterTable_*Table_*_*", "keep nanoaodUniqueString_nanoMetadata_*_*"};
edm::OutputModule::fillDescription(desc, keep);

//Used by Workflow management for their own meta data
Expand Down
6 changes: 3 additions & 3 deletions PhysicsTools/NanoAOD/python/NanoAODEDMEventContent_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
NanoAODEDMEventContent = cms.PSet(
outputCommands = cms.untracked.vstring(
'drop *',
"keep FlatTable_*Table_*_*", # event data
"keep nanoaodFlatTable_*Table_*_*", # event data
"keep edmTriggerResults_*_*_*", # event data
"keep MergeableCounterTable_*Table_*_*", # accumulated per/run or per/lumi data
"keep UniqueString_nanoMetadata_*_*", # basic metadata
"keep nanoaodMergeableCounterTable_*Table_*_*", # accumulated per/run or per/lumi data
"keep nanoaodUniqueString_nanoMetadata_*_*", # basic metadata
)
)

Expand Down

0 comments on commit 5647425

Please sign in to comment.