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('HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PFBtagDeepCSV_1p5_v*', # new (2022) MuEG trigger paths (used at DQM)
24  'HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_CaloDiJet30_CaloBtagDeepCSV_1p5_v*'), # new (2022) MuEG trigger paths (used at DQM)
25  eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
26  andOr = cms.bool(True), # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
27  throw = cms.bool(False), # throw exception on unknown path names
28 # saveTags = cms.bool(False)
29  )
30 
31 
32 
34 
35 muonSelection = cms.EDFilter("MuonSelector",
36  src = cms.InputTag("muons"),
37  cut = cms.string('pt > 20 && abs(eta)<2.4 && isGlobalMuon = 1 && isTrackerMuon = 1 && abs(innerTrack().dxy)<2.0'),
38  filter = cms.bool(True)
39 )
40 
41 
42 
43 muonDecayProducer = cms.EDProducer("CandViewShallowCloneCombiner",
44  checkCharge = cms.bool(False),
45  cut = cms.string('mass > 0'),
46  decay = cms.string("muonSelection looseElectronSelection")
47  )
48 muonDecaySelection = cms.EDFilter("CandViewCountFilter",
49  src = cms.InputTag("muonDecayProducer"),
50  minNumber = cms.uint32(1)
51  )
52 
53 
54 
56 
57 AK4CandidateJetProducer = cms.EDFilter("EtaPtMinCandViewSelector",
58  src = cms.InputTag("ak4PFJets"),
59  ptMin = cms.double(30),
60  etaMin = cms.double(-2.5),
61  etaMax = cms.double(2.5)
62  )
63 
64 dijetSelection = cms.EDFilter("CandViewCountFilter",
65  src = cms.InputTag("AK4CandidateJetProducer"),
66  minNumber = cms.uint32(2)
67  )
68 
69 
70 TopMuEGsequence = cms.Sequence(hltBtagTopMuEGSelection * muonSelection * looseElectronSelection * muonDecayProducer * muonDecaySelection * AK4CandidateJetProducer * dijetSelection)