PageRenderTime 39ms CodeModel.GetById 12ms app.highlight 21ms RepoModel.GetById 2ms app.codeStats 0ms

/ElectroWeakAnalysis/WMuNu/python/WMuNuSelection_cff.py

https://github.com/aivanov-cern/cmssw
Python | 141 lines | 88 code | 28 blank | 25 comment | 0 complexity | 477d1ea4b6cf1e45f5343ea209667ebc MD5 | raw file
  1import FWCore.ParameterSet.Config as cms
  2
  3from ElectroWeakAnalysis.WMuNu.wmunusProducer_cfi import *
  4
  5# Paths for WMuNuSelector filtering of events
  6# Be careful: events may contain more than one WMunuCandidate if they
  7#             contain more than one muon. 
  8# The "real" WMuNuCandidate selected is the first one of the collection
  9
 10selcorMet = cms.EDFilter("WMuNuSelector",
 11      # Fill Basc Histograms? ->
 12      plotHistograms = cms.untracked.bool(False),
 13
 14      # Input collections ->
 15      MuonTag = cms.untracked.InputTag("muons"),
 16      TrigTag = cms.untracked.InputTag("TriggerResults::HLT8E29"),
 17      #TrigTag = cms.untracked.InputTag("TriggerResults::HLT"),
 18      JetTag = cms.untracked.InputTag("antikt5CaloJets"),
 19      WMuNuCollectionTag = cms.untracked.InputTag("corMetWMuNus"),
 20
 21      # Preselection! 
 22      MuonTrig = cms.untracked.string("HLT_Mu9"),
 23      PtThrForZ1 = cms.untracked.double(20.0),
 24      PtThrForZ2 = cms.untracked.double(10.0),
 25      EJetMin = cms.untracked.double(40.),
 26      NJetMax = cms.untracked.int32(999999),
 27
 28      # Main cuts ->
 29      PtCut = cms.untracked.double(25.0),
 30      EtaCut = cms.untracked.double(2.1),
 31      IsRelativeIso = cms.untracked.bool(True),
 32      IsCombinedIso = cms.untracked.bool(False),
 33      IsoCut03 = cms.untracked.double(0.1),
 34      MtMin = cms.untracked.double(50.0),
 35      MtMax = cms.untracked.double(200.0),
 36      MetMin = cms.untracked.double(-999999.),
 37      MetMax = cms.untracked.double(999999.),
 38      AcopCut = cms.untracked.double(2.),
 39
 40      # Muon quality cuts ->
 41      DxyCut = cms.untracked.double(0.2),
 42      NormalizedChi2Cut = cms.untracked.double(10.),
 43      TrackerHitsCut = cms.untracked.int32(11),
 44      IsAlsoTrackerMuon = cms.untracked.bool(True),
 45
 46      # Select only W-, W+ ( default is all Ws)  
 47      SelectByCharge=cms.untracked.int32(0)
 48
 49)
 50
 51selpfMet = cms.EDFilter("WMuNuSelector",
 52      # Fill Basc Histograms? ->
 53      plotHistograms = cms.untracked.bool(False),
 54
 55      # Input collections ->
 56      MuonTag = cms.untracked.InputTag("muons"),
 57      TrigTag = cms.untracked.InputTag("TriggerResults::HLT8E29"),
 58      #TrigTag = cms.untracked.InputTag("TriggerResults::HLT"),
 59      JetTag = cms.untracked.InputTag("antikt5CaloJets"),
 60      WMuNuCollectionTag = cms.untracked.InputTag("pfMetWMuNus"),
 61
 62      # Preselection! 
 63      MuonTrig = cms.untracked.string("HLT_Mu9"),
 64      PtThrForZ1 = cms.untracked.double(20.0),
 65      PtThrForZ2 = cms.untracked.double(10.0),
 66      EJetMin = cms.untracked.double(40.),
 67      NJetMax = cms.untracked.int32(999999),
 68
 69      # Main cuts -> 
 70      UseTrackerPt = cms.untracked.bool(True),
 71      PtCut = cms.untracked.double(25.0),
 72      EtaCut = cms.untracked.double(2.1),
 73      IsRelativeIso = cms.untracked.bool(True),
 74      IsCombinedIso = cms.untracked.bool(False),
 75      IsoCut03 = cms.untracked.double(0.1),
 76      MtMin = cms.untracked.double(50.0),
 77      MtMax = cms.untracked.double(200.0),
 78      MetMin = cms.untracked.double(-999999.),
 79      MetMax = cms.untracked.double(999999.),
 80      AcopCut = cms.untracked.double(2.),
 81
 82      # Muon quality cuts ->
 83      DxyCut = cms.untracked.double(0.2),
 84      NormalizedChi2Cut = cms.untracked.double(10.),
 85      TrackerHitsCut = cms.untracked.int32(11),
 86      IsAlsoTrackerMuon = cms.untracked.bool(True),
 87
 88      # Select only W-, W+ ( default is all Ws)
 89      SelectByCharge=cms.untracked.int32(0)
 90
 91)
 92
 93seltcMet = cms.EDFilter("WMuNuSelector",
 94      # Fill Basc Histograms? ->
 95      plotHistograms = cms.untracked.bool(False),
 96
 97      # Input collections ->
 98      MuonTag = cms.untracked.InputTag("muons"),
 99      TrigTag = cms.untracked.InputTag("TriggerResults::HLT8E29"),
100      #TrigTag = cms.untracked.InputTag("TriggerResults::HLT"),
101      JetTag = cms.untracked.InputTag("antikt5CaloJets"),
102      WMuNuCollectionTag = cms.untracked.InputTag("tcMetWMuNus"),
103
104      # Preselection! 
105      MuonTrig = cms.untracked.string("HLT_Mu9"),
106      PtThrForZ1 = cms.untracked.double(20.0),
107      PtThrForZ2 = cms.untracked.double(10.0),
108      EJetMin = cms.untracked.double(40.),
109      NJetMax = cms.untracked.int32(999999),
110
111      # Main cuts ->
112      UseTrackerPt = cms.untracked.bool(True),
113      PtCut = cms.untracked.double(25.0),
114      EtaCut = cms.untracked.double(2.1),
115      IsRelativeIso = cms.untracked.bool(True),
116      IsCombinedIso = cms.untracked.bool(False),
117      IsoCut03 = cms.untracked.double(0.1),
118      MtMin = cms.untracked.double(50.0),
119      MtMax = cms.untracked.double(200.0),
120      MetMin = cms.untracked.double(-999999.),
121      MetMax = cms.untracked.double(999999.),
122      AcopCut = cms.untracked.double(2.),
123
124      # Muon quality cuts ->
125      DxyCut = cms.untracked.double(0.2),
126      NormalizedChi2Cut = cms.untracked.double(10.),
127      TrackerHitsCut = cms.untracked.int32(11),
128      IsAlsoTrackerMuon = cms.untracked.bool(True),
129
130      # Select only W-, W+ ( default is all Ws)
131      SelectByCharge=cms.untracked.int32(0)
132
133)
134
135selectCaloMetWMuNus = cms.Sequence(corMetWMuNus+selcorMet)
136
137selectPfMetWMuNus = cms.Sequence(pfMetWMuNus+selpfMet)
138
139selectTcMetWMuNus = cms.Sequence(tcMetWMuNus+seltcMet)
140
141