Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:55

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     recomputeBasicSelectors = False,
0064     useJec = False,
0065     mvaDrMax = 0.4,
0066     mvaJetTag = "pfCombinedInclusiveSecondaryVertexV2BJetTags",
0067     mvaL1Corrector = "ak4PFCHSL1FastjetCorrector",
0068     mvaL1L2L3ResCorrector = "ak4PFCHSL1FastL2L3Corrector",
0069     rho = "fixedGridRhoFastjetCentralNeutral",
0070 
0071     computeSoftMuonMVA = False,
0072     softMvaTrainingFile = "RecoMuon/MuonIdentification/data/TMVA-muonid-bmm4-B-25.weights.xml",
0073     softMvaRun3Model = cms.string("RecoMuon/MuonIdentification/data/Run2022-20231030-1731-Event0"),
0074 
0075     # MC Info
0076     muonSimInfo = "displacedMuonSimClassifier", # This module does not exists but producer checks existence by itself
0077 
0078     # Trigger Info 
0079     addTriggerMatching = False,
0080     triggerObjects = "slimmedPatTrigger",
0081     triggerResults = ["TriggerResults","","HLT"],
0082     hltCollectionFilters = ['*']
0083 
0084 )
0085 
0086 patDisplacedMuons.isoDeposits = cms.PSet()
0087 patDisplacedMuons.isolationValues = cms.PSet()
0088 
0089 # Displaced muon task filters the displacedMuons that overlap with standard muons
0090 makePatDisplacedMuonsTask = cms.Task(
0091     filteredDisplacedMuonsTask,
0092     patDisplacedMuons
0093     )
0094 
0095 makePatDisplacedMuons = cms.Sequence(makePatDisplacedMuonsTask)
0096 
0097 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0098 run3_common.toModify(patDisplacedMuons,
0099                      mvaJetTag = "pfDeepCSVJetTags:probb",
0100 )
0101