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  computeMuonMVA = False,
64  mvaTrainingFile = "RecoMuon/MuonIdentification/data/mu_2017_BDTG.weights.xml",
65  lowPtmvaTrainingFile = "RecoMuon/MuonIdentification/data/mu_lowpt_BDTG.weights.xml",
66  recomputeBasicSelectors = False,
67  mvaUseJec = False,
68  mvaDrMax = 0.4,
69  mvaJetTag = "pfCombinedInclusiveSecondaryVertexV2BJetTags",
70  mvaL1Corrector = "ak4PFCHSL1FastjetCorrector",
71  mvaL1L2L3ResCorrector = "ak4PFCHSL1FastL2L3Corrector",
72  rho = "fixedGridRhoFastjetCentralNeutral",
73 
74  computeSoftMuonMVA = False,
75  softMvaTrainingFile = "RecoMuon/MuonIdentification/data/TMVA-muonid-bmm4-B-25.weights.xml",
76 
77  # MC Info
78  muonSimInfo = "displacedMuonSimClassifier", # This module does not exists but producer checks existence by itself
79 
80  # Trigger Info
81  addTriggerMatching = False,
82  triggerObjects = "slimmedPatTrigger",
83  triggerResults = ["TriggerResults","","HLT"],
84  hltCollectionFilters = ['*']
85 
86 )
87 
88 patDisplacedMuons.isoDeposits = cms.PSet()
89 patDisplacedMuons.isolationValues = cms.PSet()
90 
91 
92 
93 # Displaced muon task filters the displacedMuons that overlap with standard muons
94 makePatDisplacedMuonsTask = cms.Task(
95  filteredDisplacedMuonsTask,
96  patDisplacedMuons
97  )
98 
99 makePatDisplacedMuons = cms.Sequence(makePatDisplacedMuonsTask)
100