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