From ca85fb1b751d13dbac39780f9cdc1d7ac60fc984 Mon Sep 17 00:00:00 2001 From: jaebeom Date: Wed, 1 Sep 2021 05:42:07 +0200 Subject: [PATCH] add flag to use L1 propagated muons --- HiAnalysis/HiOnia/python/hioniaanalyzer_cfi.py | 3 ++- HiAnalysis/HiOnia/python/oniaTreeAnalyzer_cff.py | 1 + .../HiOnia/test/hioniaanalyzer_PbPbPrompt_112X_DATA_cfg.py | 2 ++ .../HiOnia/test/hioniaanalyzer_PbPbPrompt_112X_MC_cfg.py | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/HiAnalysis/HiOnia/python/hioniaanalyzer_cfi.py b/HiAnalysis/HiOnia/python/hioniaanalyzer_cfi.py index 92d034ee60d06..3a1e41a831157 100644 --- a/HiAnalysis/HiOnia/python/hioniaanalyzer_cfi.py +++ b/HiAnalysis/HiOnia/python/hioniaanalyzer_cfi.py @@ -27,7 +27,7 @@ onlyTheBest = cms.bool(False), applyCuts = cms.bool(True), - selTightGlobalMuon = cms.bool(False), + selTightGlobalMuon = cms.bool(False), storeEfficiency = cms.bool(False), SofterSgMuAcceptance = cms.bool(False), SumETvariables = cms.bool(True), @@ -44,6 +44,7 @@ muonLessPV = cms.bool(False), useSVfinder = cms.bool(False), + useL1MuonProp = cms.bool(False), #-- Gen Details BcPDG = cms.int32(541), diff --git a/HiAnalysis/HiOnia/python/oniaTreeAnalyzer_cff.py b/HiAnalysis/HiOnia/python/oniaTreeAnalyzer_cff.py index 2e897f14c738e..8ccbde22ff463 100644 --- a/HiAnalysis/HiOnia/python/oniaTreeAnalyzer_cff.py +++ b/HiAnalysis/HiOnia/python/oniaTreeAnalyzer_cff.py @@ -184,6 +184,7 @@ def oniaTreeAnalyzer(process, muonTriggerList=[[],[],[],[]], HLTProName='HLT', m storeSameSign = cms.bool(True), # Store/Drop same sign dimuons AtLeastOneCand = cms.bool(False), # If true, store only events that have at least one selected candidate dimuon (or trimuon candidate if doTrimuons=true) useSVfinder = cms.bool(False), #whether to use the standard secondary vertex finder (with some parameters tweaked to loosen it) + useL1MuonProp = cms.bool(False), removeSignalEvents = cms.untracked.bool(False), # Remove/Keep signal events removeTrueMuons = cms.untracked.bool(False), # Remove/Keep gen Muons diff --git a/HiAnalysis/HiOnia/test/hioniaanalyzer_PbPbPrompt_112X_DATA_cfg.py b/HiAnalysis/HiOnia/test/hioniaanalyzer_PbPbPrompt_112X_DATA_cfg.py index d715cc15388bb..4fb11bc6a5ea0 100644 --- a/HiAnalysis/HiOnia/test/hioniaanalyzer_PbPbPrompt_112X_DATA_cfg.py +++ b/HiAnalysis/HiOnia/test/hioniaanalyzer_PbPbPrompt_112X_DATA_cfg.py @@ -23,6 +23,7 @@ useSVfinder = False # External SV finder to check if the muons are from a resolved SV miniAOD = True # whether the input file is in miniAOD format (default is AOD) miniAOD_muonCuts = False # Apply the cuts used in the muon collections of miniAOD. Only has an effect with AOD. +useL1MuonProp = False # whether use of eta, phi information at L1 propagated from PV. Only use for offline-online matching studies #---------------------------------------------------------------------------- # Print Onia Tree settings: @@ -218,6 +219,7 @@ process.hionia.AtLeastOneCand = cms.bool(atLeastOneCand) process.hionia.OneMatchedHLTMu = cms.int32(OneMatchedHLTMu) process.hionia.useSVfinder = cms.bool(useSVfinder) +process.hionia.useL1MuonProp = cms.bool(useL1MuonProp) process.hionia.checkTrigNames = cms.bool(False)#change this to get the event-level trigger info in hStats output (but creates lots of warnings when fake trigger names are used) process.oniaTreeAna.replace(process.hionia, process.centralityBin * process.hionia ) diff --git a/HiAnalysis/HiOnia/test/hioniaanalyzer_PbPbPrompt_112X_MC_cfg.py b/HiAnalysis/HiOnia/test/hioniaanalyzer_PbPbPrompt_112X_MC_cfg.py index 7ec855a41d2a0..9f8bd44548ebd 100644 --- a/HiAnalysis/HiOnia/test/hioniaanalyzer_PbPbPrompt_112X_MC_cfg.py +++ b/HiAnalysis/HiOnia/test/hioniaanalyzer_PbPbPrompt_112X_MC_cfg.py @@ -23,6 +23,7 @@ keepExtraColl = False # General Tracks + Stand Alone Muons + Converted Photon collections miniAOD = True # whether the input file is in miniAOD format (default is AOD) miniAOD_muonCuts = False # Apply the cuts used in the muon collections of miniAOD. Only has an effect with AOD. +useL1MuonProp = False # whether use of eta, phi information at L1 propagated from PV. Only use for offline-online matching studies #---------------------------------------------------------------------------- # Print Onia Tree settings: @@ -214,6 +215,7 @@ process.hionia.applyCuts = cms.bool(applyCuts) process.hionia.AtLeastOneCand = cms.bool(atLeastOneCand) process.hionia.OneMatchedHLTMu = cms.int32(OneMatchedHLTMu) +process.hionia.useL1MuonProp = cms.bool(useL1MuonProp) process.hionia.checkTrigNames = cms.bool(False)#change this to get the event-level trigger info in hStats output (but creates lots of warnings when fake trigger names are used) '''