CMS 3D CMS Logo

goldenWmnSelectionVBTF_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Trigger requirements
5 wmnHLTFilter = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
6 wmnHLTFilter.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT")
7 wmnHLTFilter.HLTPaths = ["HLT_Mu9", "HLT_Mu11", "HLT_Mu15"]
8 wmnHLTFilter.throw = cms.bool(False)
9 
10 # Cuts for each muon
11 goodMuonsForW = cms.EDFilter("MuonViewRefSelector",
12  src = cms.InputTag("muons"),
13  cut = cms.string('isGlobalMuon=1 && isTrackerMuon=1 && abs(eta)<2.1 && abs(globalTrack().dxy)<0.2 && pt>20. && globalTrack().normalizedChi2<10 && globalTrack().hitPattern().numberOfValidTrackerHits>10 && globalTrack().hitPattern().numberOfValidMuonHits>0 && globalTrack().hitPattern().numberOfValidPixelHits>0 && numberOfMatches>1 && (isolationR03().sumPt+isolationR03().emEt+isolationR03().hadEt)<0.15*pt'),
14  filter = cms.bool(True)
15 )
16 
17 # Cuts on wmn system
18 wmnCands = cms.EDProducer("CandViewShallowCloneCombiner",
19  checkCharge = cms.bool(False),
20  cut = cms.string('sqrt((daughter(0).pt+daughter(1).pt)*(daughter(0).pt+daughter(1).pt)-pt*pt)>50'),
21  decay = cms.string("goodMuonsForW pfMet")
22 )
23 wmnFilter = cms.EDFilter("CandViewCountFilter",
24  src = cms.InputTag("wmnCands"),
25  minNumber = cms.uint32(1)
26 )
27 
28 # Dimuons to be vetoed
29 goodMuonsForZ = cms.EDFilter("MuonViewRefSelector",
30  src = cms.InputTag("muons"),
31  cut = cms.string('isGlobalMuon=1 && pt>10.'),
32  filter = cms.bool(True)
33 )
34 dyFilter = cms.EDFilter("CandViewCountFilter",
35  src = cms.InputTag("goodMuonsForZ"),
36  minNumber = cms.uint32(2)
37 )
38 
39 # Path
40 goldenWmnSequence = cms.Sequence(
41  wmnHLTFilter *
42  goodMuonsForW *
43  wmnCands*wmnFilter *
44  goodMuonsForZ*~dyFilter
45 )
hltHighLevel_cfi