test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TopAnalysis_sequences.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 ## produce ttGenEvent
6 ## semi-leptonic decay
7 import TopQuarkAnalysis.TopEventProducers.producers.TtDecaySelection_cfi
8 
9 ttMuonicFilter = TopQuarkAnalysis.TopEventProducers.producers.TtDecaySelection_cfi.ttDecaySelection.clone()
10 ttMuonicFilter.allowedTopDecays.decayBranchA.electron = cms.bool(False)
11 ttMuonicFilter.allowedTopDecays.decayBranchA.muon = cms.bool(True)
12 ttMuonicFilter.allowedTopDecays.decayBranchA.tau = cms.bool(False)
13 ttMuonicFilter.allowedTopDecays.decayBranchB.electron = cms.bool(False)
14 ttMuonicFilter.allowedTopDecays.decayBranchB.muon = cms.bool(False)
15 ttMuonicFilter.allowedTopDecays.decayBranchB.tau = cms.bool(False)
16 ttMuonicFilter.restrictTauDecays.leptonic = cms.bool(True)
17 ttMuonicFilter.restrictTauDecays.oneProng = cms.bool(True)
18 ttMuonicFilter.restrictTauDecays.threeProng = cms.bool(True)
19 
20 ## invert selection
21 ttNoMuonicFilter = TopQuarkAnalysis.TopEventProducers.producers.TtDecaySelection_cfi.ttDecaySelection.clone()
22 ttNoMuonicFilter.allowedTopDecays.decayBranchA.electron = cms.bool(False)
23 ttNoMuonicFilter.allowedTopDecays.decayBranchA.muon = cms.bool(True)
24 ttNoMuonicFilter.allowedTopDecays.decayBranchA.tau = cms.bool(False)
25 ttNoMuonicFilter.allowedTopDecays.decayBranchB.electron = cms.bool(False)
26 ttNoMuonicFilter.allowedTopDecays.decayBranchB.muon = cms.bool(False)
27 ttNoMuonicFilter.allowedTopDecays.decayBranchB.tau = cms.bool(False)
28 ttNoMuonicFilter.restrictTauDecays.leptonic = cms.bool(True)
29 ttNoMuonicFilter.restrictTauDecays.oneProng = cms.bool(True)
30 ttNoMuonicFilter.restrictTauDecays.threeProng = cms.bool(True)
31 ttNoMuonicFilter.invert = cms.bool(True)
32 
33 
34 ## setup HLT filter
36 
37 ## Analyzer and setup default selection
41 
42 
43 TopAnalysisMuFilter = cms.Sequence(
44  ttMuonicFilter+
45  BooTopHLTFilter+
46  TopAnalyzer)
47 
48 TopAnalysisNoMuFilter = cms.Sequence(
49  ttNoMuonicFilter+
50  BooTopHLTFilter+
51  TopAnalyzer)
52 
53 TopAnalysis = cms.Sequence(BooTopHLTFilter+
54  TopAnalyzer)
55 
56 ABCDAnalysis = cms.Sequence(ABCDAnalyzer)
57 
58 HighMAnalysis = cms.Sequence(HighMAnalyzer)
setup HLT filter
produce ttGenEvent
Analyzer and setup default selection.