CMS 3D CMS Logo

TopMuEGSkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
6 
7 
8 # GsfElectron ################
9 
10 looseElectronSelection = cms.EDFilter("GsfElectronRefSelector",
11  src = cms.InputTag( ELECTRON_COLL ),
12  cut = cms.string( ELECTRON_CUTS )
13 )
14 
15 
16 
18 
20 
21 hltBtagTopMuEGSelection = cms.EDFilter("HLTHighLevel",
22  TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
23  HLTPaths = cms.vstring(
24  'HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PFBtagDeepJet_1p5_v*', # DeepCSV paths not available anymore. See https://its.cern.ch/jira/browse/CMSHLT-2592
25  'HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PNet2BTagMean0p50_v*', # Taken from HLTrigger/Configuration/python/HLTrigger_Datasets_GRun_cff.py
26  ),
27  eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
28  andOr = cms.bool(True), # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
29  throw = cms.bool(False), # throw exception on unknown path names
30 # saveTags = cms.bool(False)
31 )
32 
33 
34 
36 
37 muonSelection = cms.EDFilter("MuonSelector",
38  src = cms.InputTag("muons"),
39  cut = cms.string('pt > 20 && abs(eta)<2.4 && isGlobalMuon = 1 && isTrackerMuon = 1 && abs(innerTrack().dxy)<2.0'),
40  filter = cms.bool(True)
41 )
42 
43 
44 
45 muonDecayProducer = cms.EDProducer("CandViewShallowCloneCombiner",
46  checkCharge = cms.bool(False),
47  cut = cms.string('mass > 0'),
48  decay = cms.string("muonSelection looseElectronSelection")
49  )
50 muonDecaySelection = cms.EDFilter("CandViewCountFilter",
51  src = cms.InputTag("muonDecayProducer"),
52  minNumber = cms.uint32(1)
53  )
54 
55 
56 
58 
59 AK4CandidateJetProducer = cms.EDFilter("EtaPtMinCandViewSelector",
60  src = cms.InputTag("ak4PFJets"),
61  ptMin = cms.double(30),
62  etaMin = cms.double(-2.5),
63  etaMax = cms.double(2.5)
64  )
65 
66 dijetSelection = cms.EDFilter("CandViewCountFilter",
67  src = cms.InputTag("AK4CandidateJetProducer"),
68  minNumber = cms.uint32(2)
69  )
70 
71 
72 TopMuEGsequence = cms.Sequence(hltBtagTopMuEGSelection * muonSelection * looseElectronSelection * muonDecayProducer * muonDecaySelection * AK4CandidateJetProducer * dijetSelection)