From ed2af8e27baa11fb315405dc840b83dd10e8baad Mon Sep 17 00:00:00 2001 From: Carlos Vico Villalba Date: Wed, 3 Jan 2024 21:05:43 +0100 Subject: [PATCH 1/3] Add tt genMet filter --- ...-3Jets_genMET-150_madgraphMLM-pythia8.json | 15 ++++++++ ...-3Jets_genMET-150_madgraphMLM-pythia8.json | 16 +++++++++ ...-3Jets_genMET-150_madgraphMLM-pythia8.json | 15 ++++++++ ...-3Jets_genMET-150_madgraphMLM-pythia8.json | 15 ++++++++ Fragments/Filter/LHE_genMET150_filter.dat | 35 +++++++++++++++++++ 5 files changed, 96 insertions(+) create mode 100644 Cards/MadGraph5_aMCatNLO/TT/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8.json create mode 100644 Cards/MadGraph5_aMCatNLO/TT/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8.json create mode 100644 Cards/MadGraph5_aMCatNLO/TT/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json create mode 100644 Cards/MadGraph5_aMCatNLO/TT/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json create mode 100644 Fragments/Filter/LHE_genMET150_filter.dat diff --git a/Cards/MadGraph5_aMCatNLO/TT/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8.json b/Cards/MadGraph5_aMCatNLO/TT/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8.json new file mode 100644 index 00000000..04a4ea16 --- /dev/null +++ b/Cards/MadGraph5_aMCatNLO/TT/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8.json @@ -0,0 +1,15 @@ +{ + "gridpack_submit": false, + "gridpack_path" : "TT/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8", + "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8-hepmcfilter.dat", "Filter/LHE_genMET150_filter.dat"], + "fragment_user": [], + "fragment_vars": { + "processParameters": [ + "'JetMatching:qCut = 70.'", + "'JetMatching:nQmatch = 5'", + "'JetMatching:nJetMax = 3'", + "'TimeShower:mMaxGamma = 4.0'" + ] + } +} + diff --git a/Cards/MadGraph5_aMCatNLO/TT/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8.json b/Cards/MadGraph5_aMCatNLO/TT/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8.json new file mode 100644 index 00000000..a2c8a6a5 --- /dev/null +++ b/Cards/MadGraph5_aMCatNLO/TT/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8.json @@ -0,0 +1,16 @@ + +{ + "gridpack_submit": false, + "gridpack_path" : "TT/TTto4Q-3Jets_madgraphMLM-pythia8", + "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8-hepmcfilter.dat", "Filter/LHE_genMET150_filter.dat"], + "fragment_user": [], + "fragment_vars": { + "processParameters": [ + "'JetMatching:qCut = 70.'", + "'JetMatching:nQmatch = 5'", + "'JetMatching:nJetMax = 3'", + "'TimeShower:mMaxGamma = 4.0'" + ] + } +} + diff --git a/Cards/MadGraph5_aMCatNLO/TT/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json b/Cards/MadGraph5_aMCatNLO/TT/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json new file mode 100644 index 00000000..a14b599a --- /dev/null +++ b/Cards/MadGraph5_aMCatNLO/TT/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json @@ -0,0 +1,15 @@ +{ + "gridpack_submit": false, + "gridpack_path" : "TT/TTtoLminusNu2Q-3Jets_madgraphMLM-pythia8", + "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8-hepmcfilter.dat", "Filter/LHE_genMET150_filter.dat"], + "fragment_user": [], + "fragment_vars": { + "processParameters": [ + "'JetMatching:qCut = 70.'", + "'JetMatching:nQmatch = 5'", + "'JetMatching:nJetMax = 3'", + "'TimeShower:mMaxGamma = 4.0'" + ] + } +} + diff --git a/Cards/MadGraph5_aMCatNLO/TT/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json b/Cards/MadGraph5_aMCatNLO/TT/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json new file mode 100644 index 00000000..1ac73475 --- /dev/null +++ b/Cards/MadGraph5_aMCatNLO/TT/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json @@ -0,0 +1,15 @@ +{ + "gridpack_submit": false, + "gridpack_path" : "TTtoLplusNu2Q-3Jets_madgraphMLM-pythia8", + "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8-hepmcfilter.dat", "Filter/LHE_genMET150_filter.dat"], + "fragment_user": [], + "fragment_vars": { + "processParameters": [ + "'JetMatching:qCut = 70.'", + "'JetMatching:nQmatch = 5'", + "'JetMatching:nJetMax = 3'", + "'TimeShower:mMaxGamma = 4.0'" + ] + } +} + diff --git a/Fragments/Filter/LHE_genMET150_filter.dat b/Fragments/Filter/LHE_genMET150_filter.dat new file mode 100644 index 00000000..d4f47a56 --- /dev/null +++ b/Fragments/Filter/LHE_genMET150_filter.dat @@ -0,0 +1,35 @@ +tmpGenParticlesForJetsNoNu = cms.EDProducer("InputGenJetsParticleSelector", + src = cms.InputTag("tmpGenParticles"), + ignoreParticleIDs = cms.vuint32(12,14,16), + partonicFinalState = cms.bool(False), + excludeResonances = cms.bool(False), + excludeFromResonancePids = cms.vuint32(12, 13, 14, 16), + tausAsJets = cms.bool(False) +) + +tmpGenMetTrue = cms.EDProducer("GenMETProducer", + src = cms.InputTag("tmpGenParticlesForJetsNoNu"), + alias = cms.string('GenMETAllVisible'), + onlyFiducialParticles = cms.bool(False), + globalThreshold = cms.double(0.0), + usePt = cms.bool(True), + applyFiducialThresholdForFractions = cms.bool(False), +) + +genMETfilter1 = cms.EDFilter("CandViewSelector", + src = cms.InputTag("tmpGenMetTrue"), + cut = cms.string("pt > 150") +) + +genMETfilter2 = cms.EDFilter("CandViewCountFilter", + src = cms.InputTag("genMETfilter1"), + minNumber = cms.uint32(1), +) + +ProductionFilterSequence = cms.Sequence(generator* + tmpGenParticles* + tmpGenParticlesForJetsNoNu * + tmpGenMetTrue* + genMETfilter1* + genMETfilter2 +) From e1a170494b0cb8956968729f27c554867ef5cfb0 Mon Sep 17 00:00:00 2001 From: Carlos Vico Villalba Date: Tue, 9 Jan 2024 20:58:47 +0100 Subject: [PATCH 2/3] Removed the hepmcfilter --- .../TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8.json | 2 +- .../TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json | 2 +- .../TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cards/MadGraph5_aMCatNLO/TT/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8.json b/Cards/MadGraph5_aMCatNLO/TT/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8.json index 04a4ea16..de4755ce 100644 --- a/Cards/MadGraph5_aMCatNLO/TT/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8.json +++ b/Cards/MadGraph5_aMCatNLO/TT/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8.json @@ -1,7 +1,7 @@ { "gridpack_submit": false, "gridpack_path" : "TT/TTto2L2Nu-3Jets_genMET-150_madgraphMLM-pythia8", - "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8-hepmcfilter.dat", "Filter/LHE_genMET150_filter.dat"], + "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8.dat", "Filter/LHE_genMET150_filter.dat"], "fragment_user": [], "fragment_vars": { "processParameters": [ diff --git a/Cards/MadGraph5_aMCatNLO/TT/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json b/Cards/MadGraph5_aMCatNLO/TT/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json index a14b599a..f08fe195 100644 --- a/Cards/MadGraph5_aMCatNLO/TT/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json +++ b/Cards/MadGraph5_aMCatNLO/TT/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLminusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json @@ -1,7 +1,7 @@ { "gridpack_submit": false, "gridpack_path" : "TT/TTtoLminusNu2Q-3Jets_madgraphMLM-pythia8", - "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8-hepmcfilter.dat", "Filter/LHE_genMET150_filter.dat"], + "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8.dat", "Filter/LHE_genMET150_filter.dat"], "fragment_user": [], "fragment_vars": { "processParameters": [ diff --git a/Cards/MadGraph5_aMCatNLO/TT/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json b/Cards/MadGraph5_aMCatNLO/TT/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json index 1ac73475..87da094a 100644 --- a/Cards/MadGraph5_aMCatNLO/TT/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json +++ b/Cards/MadGraph5_aMCatNLO/TT/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8/TTtoLplusNu2Q-3Jets_genMET-150_madgraphMLM-pythia8.json @@ -1,7 +1,7 @@ { "gridpack_submit": false, "gridpack_path" : "TTtoLplusNu2Q-3Jets_madgraphMLM-pythia8", - "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8-hepmcfilter.dat", "Filter/LHE_genMET150_filter.dat"], + "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8.dat", "Filter/LHE_genMET150_filter.dat"], "fragment_user": [], "fragment_vars": { "processParameters": [ From f57d65edcdde0dfabb618f34c2425e6ea12ac6d1 Mon Sep 17 00:00:00 2001 From: Carlos Vico Villalba Date: Wed, 17 Jan 2024 16:20:20 +0100 Subject: [PATCH 3/3] Removed tt to 4Q since it makes no sense in this case --- ...o4Q-3Jets_genMET-150_madgraphMLM-pythia8.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 Cards/MadGraph5_aMCatNLO/TT/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8.json diff --git a/Cards/MadGraph5_aMCatNLO/TT/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8.json b/Cards/MadGraph5_aMCatNLO/TT/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8.json deleted file mode 100644 index a2c8a6a5..00000000 --- a/Cards/MadGraph5_aMCatNLO/TT/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8/TTto4Q-3Jets_genMET-150_madgraphMLM-pythia8.json +++ /dev/null @@ -1,16 +0,0 @@ - -{ - "gridpack_submit": false, - "gridpack_path" : "TT/TTto4Q-3Jets_madgraphMLM-pythia8", - "fragment": ["Generator/ExternalLHEProducer_MadGraph5_aMCatNLO.dat", "PartonShower/madgraphMLM-pythia8-hepmcfilter.dat", "Filter/LHE_genMET150_filter.dat"], - "fragment_user": [], - "fragment_vars": { - "processParameters": [ - "'JetMatching:qCut = 70.'", - "'JetMatching:nQmatch = 5'", - "'JetMatching:nJetMax = 3'", - "'TimeShower:mMaxGamma = 4.0'" - ] - } -} -