Skip to content

Commit

Permalink
add flag to use L1 propagated muons
Browse files Browse the repository at this point in the history
  • Loading branch information
jaebeom committed Sep 1, 2021
1 parent ae56222 commit ca85fb1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HiAnalysis/HiOnia/python/hioniaanalyzer_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -44,6 +44,7 @@

muonLessPV = cms.bool(False),
useSVfinder = cms.bool(False),
useL1MuonProp = cms.bool(False),

#-- Gen Details
BcPDG = cms.int32(541),
Expand Down
1 change: 1 addition & 0 deletions HiAnalysis/HiOnia/python/oniaTreeAnalyzer_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)

'''
Expand Down

0 comments on commit ca85fb1

Please sign in to comment.