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

Add tt genMet filter #134

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
@@ -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"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Carlos. Why do these samples use the hepmc filter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AH you are absolutely right, I must have missed that because I copied the json from the QCD one since it was an example for reusing gridpacks. I'll change it right away

"fragment_user": [],
"fragment_vars": {
"processParameters": [
"'JetMatching:qCut = 70.'",
"'JetMatching:nQmatch = 5'",
"'JetMatching:nJetMax = 3'",
"'TimeShower:mMaxGamma = 4.0'"
]
}
}

Original file line number Diff line number Diff line change
@@ -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'"
]
}
}

Original file line number Diff line number Diff line change
@@ -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'"
]
}
}

Original file line number Diff line number Diff line change
@@ -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'"
]
}
}

35 changes: 35 additions & 0 deletions Fragments/Filter/LHE_genMET150_filter.dat
Original file line number Diff line number Diff line change
@@ -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
)