CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ttDecayChannelFilters_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # std filters for specific ttbar decays
5 #
6 
7 import TopQuarkAnalysis.TopSkimming.TtDecayChannelFilter_cfi
8 
9 ## fully-hadronic decay
10 ttFullHadronicFilter = TopQuarkAnalysis.TopSkimming.TtDecayChannelFilter_cfi.ttDecayChannelFilter.clone()
11 ttFullHadronicFilter.allowedTopDecays.decayBranchA.electron = False
12 ttFullHadronicFilter.allowedTopDecays.decayBranchA.muon = False
13 ttFullHadronicFilter.allowedTopDecays.decayBranchB.electron = False
14 ttFullHadronicFilter.allowedTopDecays.decayBranchB.muon = False
15 
16 ## semi-leptonic decay
17 ttSemiLeptonicFilter = TopQuarkAnalysis.TopSkimming.TtDecayChannelFilter_cfi.ttDecayChannelFilter.clone()
18 ttSemiLeptonicFilter.allowedTopDecays.decayBranchA.electron = True
19 ttSemiLeptonicFilter.allowedTopDecays.decayBranchA.muon = True
20 ttSemiLeptonicFilter.allowedTopDecays.decayBranchB.electron = False
21 ttSemiLeptonicFilter.allowedTopDecays.decayBranchB.muon = False
22 
23 ## full-leptonic decay
24 ttFullLeptonicFilter = TopQuarkAnalysis.TopSkimming.TtDecayChannelFilter_cfi.ttDecayChannelFilter.clone()
25 ttFullLeptonicFilter.allowedTopDecays.decayBranchA.electron = True
26 ttFullLeptonicFilter.allowedTopDecays.decayBranchA.muon = True
27 ttFullLeptonicFilter.allowedTopDecays.decayBranchB.electron = True
28 ttFullLeptonicFilter.allowedTopDecays.decayBranchB.muon = True
29