From 9e8ac2518929f19fcbda745fbef3dcac39781dde Mon Sep 17 00:00:00 2001 From: Silvio Donato Date: Thu, 11 Jun 2020 15:30:21 +0200 Subject: [PATCH 1/2] Delete GenTtbarCategorizer_cfi.py (already moved to fillDescription) --- .../python/GenTtbarCategorizer_cfi.py | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 TopQuarkAnalysis/TopTools/python/GenTtbarCategorizer_cfi.py diff --git a/TopQuarkAnalysis/TopTools/python/GenTtbarCategorizer_cfi.py b/TopQuarkAnalysis/TopTools/python/GenTtbarCategorizer_cfi.py deleted file mode 100644 index cd761472a86c3..0000000000000 --- a/TopQuarkAnalysis/TopTools/python/GenTtbarCategorizer_cfi.py +++ /dev/null @@ -1,24 +0,0 @@ -import FWCore.ParameterSet.Config as cms - -categorizeGenTtbar = cms.EDProducer("GenTtbarCategorizer", - # Phase space of additional jets - genJetPtMin = cms.double(20.), - genJetAbsEtaMax = cms.double(2.4), - # Input tags holding information about b/c hadron matching - genJets = cms.InputTag("ak4GenJets"), - genBHadJetIndex = cms.InputTag("matchGenBHadron", "genBHadJetIndex"), - genBHadFlavour = cms.InputTag("matchGenBHadron", "genBHadFlavour"), - genBHadFromTopWeakDecay = cms.InputTag("matchGenBHadron", "genBHadFromTopWeakDecay"), - genBHadPlusMothers = cms.InputTag("matchGenBHadron", "genBHadPlusMothers"), - genBHadPlusMothersIndices = cms.InputTag("matchGenBHadron", "genBHadPlusMothersIndices"), - genBHadIndex = cms.InputTag("matchGenBHadron", "genBHadIndex"), - genBHadLeptonHadronIndex = cms.InputTag("matchGenBHadron", "genBHadLeptonHadronIndex"), - genBHadLeptonViaTau = cms.InputTag("matchGenBHadron", "genBHadLeptonViaTau"), - genCHadJetIndex = cms.InputTag("matchGenCHadron", "genCHadJetIndex"), - genCHadFlavour = cms.InputTag("matchGenCHadron", "genCHadFlavour"), - genCHadFromTopWeakDecay = cms.InputTag("matchGenCHadron", "genCHadFromTopWeakDecay"), - genCHadBHadronId = cms.InputTag("matchGenCHadron", "genCHadBHadronId"), -) - - - From ae7e6bb61a5f82269b22154618d449c3b63d1b7a Mon Sep 17 00:00:00 2001 From: silviodonato Date: Wed, 17 Jun 2020 14:57:17 +0200 Subject: [PATCH 2/2] move to the file automatically generated categorizeGenTtbar_cfi --- PhysicsTools/NanoAOD/python/ttbarCategorization_cff.py | 2 +- TopQuarkAnalysis/TopTools/test/testGenTtbarCategories.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PhysicsTools/NanoAOD/python/ttbarCategorization_cff.py b/PhysicsTools/NanoAOD/python/ttbarCategorization_cff.py index eb1125dfb596d..d65601471a430 100644 --- a/PhysicsTools/NanoAOD/python/ttbarCategorization_cff.py +++ b/PhysicsTools/NanoAOD/python/ttbarCategorization_cff.py @@ -22,7 +22,7 @@ ) ## Producer for ttbar categorisation ID -from TopQuarkAnalysis.TopTools.GenTtbarCategorizer_cfi import categorizeGenTtbar +from TopQuarkAnalysis.TopTools.categorizeGenTtbar_cfi import categorizeGenTtbar categorizeGenTtbar = categorizeGenTtbar.clone( genJetPtMin = 20., genJetAbsEtaMax = 2.4, diff --git a/TopQuarkAnalysis/TopTools/test/testGenTtbarCategories.py b/TopQuarkAnalysis/TopTools/test/testGenTtbarCategories.py index cbce78c8a67e5..cbf7f2ab9a64e 100644 --- a/TopQuarkAnalysis/TopTools/test/testGenTtbarCategories.py +++ b/TopQuarkAnalysis/TopTools/test/testGenTtbarCategories.py @@ -123,7 +123,7 @@ ## Producer for ttbar categorisation ID # MUST use same genJetCollection as used for tools above -from TopQuarkAnalysis.TopTools.GenTtbarCategorizer_cfi import categorizeGenTtbar +from TopQuarkAnalysis.TopTools.categorizeGenTtbar_cfi import categorizeGenTtbar process.categorizeGenTtbar = categorizeGenTtbar.clone( genJetPtMin = 20., genJetAbsEtaMax = 2.4,