CMS 3D CMS Logo

displacedMuonProducer_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 
7 filteredDisplacedMuonsTask = cms.Task(filteredDisplacedMuons)
8 
9 
10 patDisplacedMuons = patMuons.clone(
11 
12  # Input collection
13  muonSource = "filteredDisplacedMuons",
14 
15  # embedding objects
16  embedMuonBestTrack = True,
17  embedTunePMuonBestTrack = True,
18  forceBestTrackEmbedding = False,
19  embedTrack = True,
20  embedCombinedMuon = True,
21  embedStandAloneMuon = True,
22  embedPickyMuon = False,
23  embedTpfmsMuon = False,
24  embedDytMuon = False,
25  embedPFCandidate = False,
26 
27  # embedding of muon MET corrections for caloMET
28  embedCaloMETMuonCorrs = False,
29  # embedding of muon MET corrections for tcMET
30  embedTcMETMuonCorrs = False, # removed from RECO/AOD!
31 
32  # Read and store combined inverse beta
33  addInverseBeta = True,
34  sourceMuonTimeExtra = ["filteredDisplacedMuons","combined"],
35 
36  # mc matching (deactivated)
37  addGenMatch = False,
38  embedGenMatch = False,
39  genParticleMatch = "displacedMuonMatch", # deactivated
40 
41  # high level selections
42  embedHighLevelSelection = True,
43  beamLineSrc = "offlineBeamSpot",
44  pvSrc = "offlinePrimaryVertices",
45 
46  # ecal PF energy
47  embedPfEcalEnergy = False,
48  addPuppiIsolation = False,
49 
50  # Compute and store Mini-Isolation.
51  # Implemention and a description of parameters can be found in:
52  # PhysicsTools/PatUtils/src/PFIsolation.cc
53  # only works in miniaod, so set to True in miniAOD_tools.py
54  computeMiniIso = False,
55  effectiveAreaVec = [0.0566, 0.0562, 0.0363, 0.0119, 0.0064],
56  pfCandsForMiniIso = "packedPFCandidates",
57  miniIsoParams = [0.05, 0.2, 10.0, 0.5, 0.0001, 0.01, 0.01, 0.01, 0.0],
58 
59  computePuppiCombinedIso = False,
60  # Standard Muon Selectors and Jet-related observables
61  # Depends on MiniIsolation, so only works in miniaod
62  # Don't forget to set flags properly in miniAOD_tools.py
63  recomputeBasicSelectors = False,
64  useJec = False,
65  mvaDrMax = 0.4,
66  mvaJetTag = "pfCombinedInclusiveSecondaryVertexV2BJetTags",
67  mvaL1Corrector = "ak4PFCHSL1FastjetCorrector",
68  mvaL1L2L3ResCorrector = "ak4PFCHSL1FastL2L3Corrector",
69  rho = "fixedGridRhoFastjetCentralNeutral",
70 
71  computeSoftMuonMVA = False,
72  softMvaTrainingFile = "RecoMuon/MuonIdentification/data/TMVA-muonid-bmm4-B-25.weights.xml",
73 
74  # MC Info
75  muonSimInfo = "displacedMuonSimClassifier", # This module does not exists but producer checks existence by itself
76 
77  # Trigger Info
78  addTriggerMatching = False,
79  triggerObjects = "slimmedPatTrigger",
80  triggerResults = ["TriggerResults","","HLT"],
81  hltCollectionFilters = ['*']
82 
83 )
84 
85 patDisplacedMuons.isoDeposits = cms.PSet()
86 patDisplacedMuons.isolationValues = cms.PSet()
87 
88 # Displaced muon task filters the displacedMuons that overlap with standard muons
89 makePatDisplacedMuonsTask = cms.Task(
90  filteredDisplacedMuonsTask,
91  patDisplacedMuons
92  )
93 
94 makePatDisplacedMuons = cms.Sequence(makePatDisplacedMuonsTask)
95 
96 from Configuration.Eras.Modifier_run3_common_cff import run3_common
97 run3_common.toModify(patDisplacedMuons,
98  mvaJetTag = "pfDeepCSVJetTags:probb",
99 )
100