Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-15 22:20:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import *
0004 from PhysicsTools.PatAlgos.producersLayer1.muonProducer_cfi import *
0005 
0006 from PhysicsTools.PatAlgos.recoLayer0.filteredDisplacedMuons_cfi import *
0007 filteredDisplacedMuonsTask = cms.Task(filteredDisplacedMuons)
0008 
0009 
0010 patDisplacedMuons = patMuons.clone(
0011 
0012     # Input collection
0013     muonSource = "filteredDisplacedMuons",
0014 
0015     # embedding objects
0016     embedMuonBestTrack      = True,  ## embed in AOD externally stored muon best track from global pflow
0017     embedTunePMuonBestTrack = True,  ## embed in AOD externally stored muon best track from muon only
0018     forceBestTrackEmbedding = False, ## force embedding separately the best tracks even if they're already embedded e.g. as tracker or global tracks
0019     embedTrack          = True, ## embed in AOD externally stored tracker track
0020     embedCombinedMuon   = True,  ## embed in AOD externally stored combined muon track
0021     embedStandAloneMuon = True,  ## embed in AOD externally stored standalone muon track
0022     embedPickyMuon      = False,  ## embed in AOD externally stored TeV-refit picky muon track
0023     embedTpfmsMuon      = False,  ## embed in AOD externally stored TeV-refit TPFMS muon track
0024     embedDytMuon        = False,  ## embed in AOD externally stored TeV-refit DYT muon track
0025     embedPFCandidate    = False,  ## embed in AOD externally stored particle flow candidate
0026 
0027     # embedding of muon MET corrections for caloMET
0028     embedCaloMETMuonCorrs = False,
0029     # embedding of muon MET corrections for tcMET
0030     embedTcMETMuonCorrs   = False, # removed from RECO/AOD!
0031 
0032     # Read and store combined inverse beta
0033     addInverseBeta    = True,
0034     sourceMuonTimeExtra = ["filteredDisplacedMuons","combined"], 
0035 
0036     # mc matching (deactivated)
0037     addGenMatch   = False,
0038     embedGenMatch = False,
0039     genParticleMatch = "displacedMuonMatch", # deactivated
0040 
0041     # high level selections
0042     embedHighLevelSelection = True,
0043     beamLineSrc             = "offlineBeamSpot",
0044     pvSrc                   = "offlinePrimaryVertices",
0045 
0046     # ecal PF energy
0047     embedPfEcalEnergy = False,
0048     addPuppiIsolation = False,
0049 
0050     # Compute and store Mini-Isolation.
0051     # Implemention and a description of parameters can be found in:
0052     # PhysicsTools/PatUtils/src/PFIsolation.cc
0053     # only works in miniaod, so set to True in miniAOD_tools.py
0054     computeMiniIso = False,
0055     effectiveAreaVec = [0.0566, 0.0562, 0.0363, 0.0119, 0.0064],
0056     pfCandsForMiniIso = "packedPFCandidates",
0057     miniIsoParams = [0.05, 0.2, 10.0, 0.5, 0.0001, 0.01, 0.01, 0.01, 0.0],
0058 
0059     computePuppiCombinedIso = False,
0060     # Standard Muon Selectors and Jet-related observables
0061     # Depends on MiniIsolation, so only works in miniaod
0062     # Don't forget to set flags properly in miniAOD_tools.py                      
0063     computeMuonMVA = False,
0064     mvaTrainingFile      = "RecoMuon/MuonIdentification/data/mu_2017_BDTG.weights.xml",
0065     lowPtmvaTrainingFile = "RecoMuon/MuonIdentification/data/mu_lowpt_BDTG.weights.xml",
0066     recomputeBasicSelectors = False,
0067     mvaUseJec = False,
0068     mvaDrMax = 0.4,
0069     mvaJetTag = "pfCombinedInclusiveSecondaryVertexV2BJetTags",
0070     mvaL1Corrector = "ak4PFCHSL1FastjetCorrector",
0071     mvaL1L2L3ResCorrector = "ak4PFCHSL1FastL2L3Corrector",
0072     rho = "fixedGridRhoFastjetCentralNeutral",
0073 
0074     computeSoftMuonMVA = False,
0075     softMvaTrainingFile = "RecoMuon/MuonIdentification/data/TMVA-muonid-bmm4-B-25.weights.xml",
0076 
0077     # MC Info
0078     muonSimInfo = "displacedMuonSimClassifier", # This module does not exists but producer checks existence by itself
0079 
0080     # Trigger Info 
0081     addTriggerMatching = False,
0082     triggerObjects = "slimmedPatTrigger",
0083     triggerResults = ["TriggerResults","","HLT"],
0084     hltCollectionFilters = ['*']
0085 
0086 )
0087 
0088 patDisplacedMuons.isoDeposits = cms.PSet()
0089 patDisplacedMuons.isolationValues = cms.PSet()
0090 
0091 
0092 
0093 # Displaced muon task filters the displacedMuons that overlap with standard muons
0094 makePatDisplacedMuonsTask = cms.Task(
0095     filteredDisplacedMuonsTask,
0096     patDisplacedMuons
0097     )
0098 
0099 makePatDisplacedMuons = cms.Sequence(makePatDisplacedMuonsTask)
0100