ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/ControlRegions/python/SingleMuSelections.py
Revision: 1.2
Committed: Fri May 10 15:37:49 2013 UTC (12 years ago) by lantonel
Content type: text/x-python
Branch: MAIN
CVS Tags: V02-03-02, V02-03-01, V02-03-00, V02-02-00, V02-01-01, V02-01-00, HEAD
Changes since 1.1: +9 -1 lines
Log Message:
version 2.0

File Contents

# User Rev Content
1 lantonel 1.1 import FWCore.ParameterSet.Config as cms
2     import copy
3    
4     ##########################################################################
5     ##### Set up control regions for use with the doubleElectron dataset #####
6     ##########################################################################
7    
8     from OSUT3Analysis.ControlRegions.Preselections import *
9    
10     singleMuTriggerPath = cms.vstring("HLT_IsoMu24_v")
11    
12     ##########################################################################
13    
14     WtoMu_Selection = cms.PSet(
15     name = cms.string("W to Mu"),
16     triggers = singleMuTriggerPath,
17     cuts = cms.VPSet ()
18     )
19     WtoMu_Selection.cuts.extend(copy.deepcopy(Event_Preselection.cuts))
20     WtoMu_Selection.cuts.extend(copy.deepcopy(Muon_Preselection.cuts))
21     for cut in WtoMu_Selection.cuts:
22     if "muons" in str(cut.inputCollection):
23     cut.numberRequired = cms.string('== 1')
24    
25     met_cut = cms.PSet (
26     inputCollection = cms.string("mets"),
27     cutString = cms.string("pt > 40"),
28     numberRequired = cms.string("== 1")
29     )
30     WtoMu_Selection.cuts.append(met_cut)
31    
32     metMT_cut = cms.PSet (
33     inputCollection = cms.string("muons"),
34     cutString = cms.string("metMT > 40"),
35     numberRequired = cms.string("== 1")
36     )
37     WtoMu_Selection.cuts.append(metMT_cut)
38    
39     ##########################################################################
40    
41     TTbartoMuHad_Selection = cms.PSet(
42     name = cms.string("TTbar to MuHad"),
43     triggers = singleMuTriggerPath,
44     cuts = cms.VPSet ()
45     )
46     TTbartoMuHad_Selection.cuts.extend(copy.deepcopy(Event_Preselection.cuts))
47     TTbartoMuHad_Selection.cuts.extend(copy.deepcopy(Muon_Preselection.cuts))
48     for cut in TTbartoMuHad_Selection.cuts:
49     if "muons" in str(cut.inputCollection):
50     cut.numberRequired = cms.string('== 1')
51    
52     jet_eta_cut = cms.PSet (
53     inputCollection = cms.string("jets"),
54     cutString = cms.string("abs(eta) < 2.4"),
55     numberRequired = cms.string(">= 4")
56     )
57     TTbartoMuHad_Selection.cuts.append(jet_eta_cut)
58    
59     jet_pt_cut = cms.PSet (
60     inputCollection = cms.string("jets"),
61     cutString = cms.string("pt > 30"),
62     numberRequired = cms.string(">= 4")
63     )
64     TTbartoMuHad_Selection.cuts.append(jet_pt_cut)
65    
66     btag_cut = cms.PSet (
67     inputCollection = cms.string("jets"),
68     cutString = cms.string("btagCombinedSecVertex > 0.679"),
69     numberRequired = cms.string(">= 2")
70     )
71     TTbartoMuHad_Selection.cuts.append(btag_cut)
72    
73     ##########################################################################
74    
75     QCDtoMu_Selection = cms.PSet(
76     name = cms.string("QCD to Mu"),
77     triggers = singleMuTriggerPath,
78     cuts = cms.VPSet ()
79     )
80     QCDtoMu_Selection.cuts.extend(copy.deepcopy(Event_Preselection.cuts))
81     QCDtoMu_Selection.cuts.extend(copy.deepcopy(Muon_Preselection.cuts))
82     for cut in QCDtoMu_Selection.cuts:
83     if "muons" in str(cut.inputCollection):
84     cut.numberRequired = cms.string('== 1')
85     if "relPFdBetaIso" in str(cut.cutString) and "muons" in str(cut.inputCollection):
86 lantonel 1.2 cut.cutString = cms.string('relPFdBetaIso > 0.3')
87    
88     met_cut = cms.PSet (
89     inputCollection = cms.string("mets"),
90     cutString = cms.string("pt < 40"),
91     numberRequired = cms.string("== 1")
92     )
93     QCDtoMu_Selection.cuts.append(met_cut)
94    
95 lantonel 1.1
96     ##########################################################################
97    
98    
99    
100