Skip to content

Commit

Permalink
changes for MC@NLO and new decay filters
Browse files Browse the repository at this point in the history
  • Loading branch information
kreczko committed Dec 8, 2012
1 parent cdea4ff commit 5c808d8
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 101 deletions.
45 changes: 10 additions & 35 deletions python/TtFullyHadronicFilter_cfi.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,12 @@
import FWCore.ParameterSet.Config as cms

ttFullyHadronicFilter = cms.EDFilter("TtDecayChannelFilter",
## input source for decay channel selection
src = cms.InputTag("genParticles"),
## invert the selection choice
invert = cms.bool(False),

## allow given lepton in corresponding decay
## branch for a given decay channel selection;
## all leptons to 'False' corresponds to the
## full hadronic decay channel
allowedTopDecays = cms.PSet(
decayBranchA = cms.PSet(
electron = cms.bool(False),
muon = cms.bool(False),
tau = cms.bool(False)
),
decayBranchB= cms.PSet(
electron = cms.bool(False),
muon = cms.bool(False),
tau = cms.bool(False)
)
),

## add a restriction to the decay channel of taus
## by redefining the following ParameterSet in
## your cfg file; the following restrictions are
## available:
restrictTauDecays = cms.PSet(
# leptonic = cms.bool(False),
# oneProng = cms.bool(False),
# threeProng = cms.bool(False)
)
)


from TopQuarkAnalysis.TopSkimming.TtDecayChannelFilter_cfi import ttDecayChannelFilter

## fully-hadronic decay
ttFullHadronicFilter = ttDecayChannelFilter.clone()
ttFullHadronicFilter.allowedTopDecays.decayBranchA.electron = False
ttFullHadronicFilter.allowedTopDecays.decayBranchA.muon = False
ttFullHadronicFilter.allowedTopDecays.decayBranchA.tau = False
ttFullHadronicFilter.allowedTopDecays.decayBranchB.electron = False
ttFullHadronicFilter.allowedTopDecays.decayBranchB.muon = False
ttFullHadronicFilter.allowedTopDecays.decayBranchB.tau = False
62 changes: 31 additions & 31 deletions python/TtFullyLeptonicFilter_cfi.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
import FWCore.ParameterSet.Config as cms

ttFullyLeptonicFilter = cms.EDFilter("TtDecayChannelFilter",
## input source for decay channel selection
src = cms.InputTag("genParticles"),
## invert the selection choice
invert = cms.bool(False),
from TopQuarkAnalysis.TopSkimming.TtDecayChannelFilter_cfi import ttDecayChannelFilter

## allow given lepton in corresponding decay
## branch for a given decay channel selection;
## all leptons to 'False' corresponds to the
## full hadronic decay channel
allowedTopDecays = cms.PSet(
decayBranchA = cms.PSet(
electron = cms.bool(True),
muon = cms.bool(True),
tau = cms.bool(False)
),
decayBranchB= cms.PSet(
electron = cms.bool(True),
muon = cms.bool(True),
tau = cms.bool(False)
)
),
## full-leptonic decay
ttFullLeptonicFilter = ttDecayChannelFilter.clone()
ttFullLeptonicFilter.allowedTopDecays.decayBranchA.electron = True
ttFullLeptonicFilter.allowedTopDecays.decayBranchA.muon = True
ttFullLeptonicFilter.allowedTopDecays.decayBranchB.electron = True
ttFullLeptonicFilter.allowedTopDecays.decayBranchB.muon = True
ttFullLeptonicFilter.allowedTopDecays.decayBranchA.tau = True
ttFullLeptonicFilter.allowedTopDecays.decayBranchB.tau = True

## add a restriction to the decay channel of taus
## by redefining the following ParameterSet in
## your cfg file; the following restrictions are
## available:
restrictTauDecays = cms.PSet(
# leptonic = cms.bool(False),
# oneProng = cms.bool(False),
# threeProng = cms.bool(False)
)
)
#more di-leptonic filters
ttFullLeptonicEEFilter = ttDecayChannelFilter.clone()
ttFullLeptonicEEFilter.allowedTopDecays.decayBranchA.electron = True
ttFullLeptonicEEFilter.allowedTopDecays.decayBranchB.electron = True

ttFullLeptonicMuMuFilter = ttDecayChannelFilter.clone()
ttFullLeptonicMuMuFilter.allowedTopDecays.decayBranchA.muon = True
ttFullLeptonicMuMuFilter.allowedTopDecays.decayBranchB.muon = True

ttFullLeptonicTauTauFilter = ttDecayChannelFilter.clone()
ttFullLeptonicTauTauFilter.allowedTopDecays.decayBranchA.tau = True
ttFullLeptonicTauTauFilter.allowedTopDecays.decayBranchB.tau = True
#mixed leptons
ttFullLeptonicETauFilter = ttDecayChannelFilter.clone()
ttFullLeptonicETauFilter.allowedTopDecays.decayBranchA.electron = True
ttFullLeptonicETauFilter.allowedTopDecays.decayBranchB.tau = True

ttFullLeptonicEMuFilter = ttDecayChannelFilter.clone()
ttFullLeptonicEMuFilter.allowedTopDecays.decayBranchA.electron = True
ttFullLeptonicEMuFilter.allowedTopDecays.decayBranchB.muon = True
#more di-leptonic filters
ttFullLeptonicMuTauFilter = ttDecayChannelFilter.clone()
ttFullLeptonicMuTauFilter.allowedTopDecays.decayBranchA.muon = True
ttFullLeptonicMuTauFilter.allowedTopDecays.decayBranchB.tau = True
46 changes: 11 additions & 35 deletions python/TtSemiLeptonicFilter_cfi.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,13 @@
import FWCore.ParameterSet.Config as cms

ttSemiLeptonicFilter = cms.EDFilter("TtDecayChannelFilter",
## input source for decay channel selection
src = cms.InputTag("genParticles"),
## invert the selection choice
invert = cms.bool(False),

## allow given lepton in corresponding decay
## branch for a given decay channel selection;
## all leptons to 'False' corresponds to the
## full hadronic decay channel
allowedTopDecays = cms.PSet(
decayBranchA = cms.PSet(
electron = cms.bool(True),
muon = cms.bool(True),
tau = cms.bool(False)
),
decayBranchB= cms.PSet(
electron = cms.bool(False),
muon = cms.bool(False),
tau = cms.bool(False)
)
),

## add a restriction to the decay channel of taus
## by redefining the following ParameterSet in
## your cfg file; the following restrictions are
## available:
restrictTauDecays = cms.PSet(
# leptonic = cms.bool(False),
# oneProng = cms.bool(False),
# threeProng = cms.bool(False)
)
)


from TopQuarkAnalysis.TopSkimming.TtDecayChannelFilter_cfi import ttDecayChannelFilter

## semi-leptonic-tau decay
ttSemiLeptonicElectronFilter = ttDecayChannelFilter.clone()
ttSemiLeptonicElectronFilter.allowedTopDecays.decayBranchA.electron = True
## semi-leptonic-tau decay
ttSemiLeptonicMuonFilter = ttDecayChannelFilter.clone()
ttSemiLeptonicMuonFilter.allowedTopDecays.decayBranchA.muon = True
## semi-leptonic-tau decay
ttSemiLeptonicTauFilter = ttDecayChannelFilter.clone()
ttSemiLeptonicTauFilter.allowedTopDecays.decayBranchA.tau = True

0 comments on commit 5c808d8

Please sign in to comment.