/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_cff.py
73 строки
4 KB
“saswatinandan”
in run3_oxygen eras use triggerResultsFilterFromDB instead of HLTHighLevel, in order to allow prescales
25 июн 2025, 15:59
25 июн 2025, 15:59
088fd7d
Код
Авторство
О чём код?
# AlCaReco for track based alignment using min. bias events import FWCore.ParameterSet.Config as cms import HLTrigger.HLTfilters.hltHighLevel_cfi #Note the MinBias selection should contain as many tracks as possible but no overlaps. So the HLT selection selects any event that is not selected in another TkAl* selector. ALCARECOTkAlMinBiasNOTHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone( andOr = True, ## choose logical OR between Triggerbits eventSetupPathsKey = 'TkAlMinBiasNOT', throw = False # tolerate triggers stated above, but not available ) ALCARECOTkAlMinBiasHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone( andOr = True, ## choose logical OR between Triggerbits eventSetupPathsKey = 'TkAlMinBias', throw = False # tolerate triggers stated above, but not available ) # DCS partitions # "EBp","EBm","EEp","EEm","HBHEa","HBHEb","HBHEc","HF","HO","RPC" # "DT0","DTp","DTm","CSCp","CSCm","CASTOR","TIBTID","TOB","TECp","TECm" # "BPIX","FPIX","ESp","ESm" import DPGAnalysis.Skims.skim_detstatus_cfi ALCARECOTkAlMinBiasDCSFilter = DPGAnalysis.Skims.skim_detstatus_cfi.dcsstatus.clone( DetectorType = cms.vstring('TIBTID','TOB','TECp','TECm','BPIX','FPIX'), ApplyFilter = cms.bool(True), AndOr = cms.bool(True), DebugOn = cms.untracked.bool(False) ) import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi ALCARECOTkAlMinBias = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone() ALCARECOTkAlMinBias.filter = True ##do not store empty events ALCARECOTkAlMinBias.applyBasicCuts = True ALCARECOTkAlMinBias.ptMin = 0.65 ##GeV ALCARECOTkAlMinBias.pMin = 1.5 ##GeV ALCARECOTkAlMinBias.etaMin = -3.5 ALCARECOTkAlMinBias.etaMax = 3.5 ALCARECOTkAlMinBias.nHitMin = 7 ## at least 7 hits required ALCARECOTkAlMinBias.GlobalSelector.applyIsolationtest = False ALCARECOTkAlMinBias.GlobalSelector.applyGlobalMuonFilter = False ALCARECOTkAlMinBias.TwoBodyDecaySelector.applyMassrangeFilter = False ALCARECOTkAlMinBias.TwoBodyDecaySelector.applyChargeFilter = False ALCARECOTkAlMinBias.TwoBodyDecaySelector.applyAcoplanarityFilter = False seqALCARECOTkAlMinBias = cms.Sequence(ALCARECOTkAlMinBiasHLT*~ALCARECOTkAlMinBiasNOTHLT+ALCARECOTkAlMinBiasDCSFilter+ALCARECOTkAlMinBias) ## customizations for the pp_on_AA eras from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA from Configuration.Eras.Modifier_run3_oxygen_cff import run3_oxygen (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlMinBias, trackQualities = cms.vstring("highPurity") ) pp_on_XeXe_2017.toModify(ALCARECOTkAlMinBiasHLT, eventSetupPathsKey='TkAlMinBiasHI') import HLTrigger.HLTfilters.triggerResultsFilterFromDB_cfi ALCARECOTkAlMinBiasTriggerResultsHI = HLTrigger.HLTfilters.triggerResultsFilterFromDB_cfi.triggerResultsFilterFromDB.clone( eventSetupPathsKey = 'TkAlMinBiasHI', usePathStatus = False, hltResults = 'TriggerResults::HLT', l1tResults = '', # leaving empty (not interested in L1T results) throw = False # tolerate triggers stated above, but not available ) seqALCARECOTkAlMinBiasHI = cms.Sequence(ALCARECOTkAlMinBiasTriggerResultsHI*~ALCARECOTkAlMinBiasNOTHLT+ALCARECOTkAlMinBiasDCSFilter+ALCARECOTkAlMinBias) (pp_on_AA | run3_oxygen).toReplaceWith(seqALCARECOTkAlMinBias,seqALCARECOTkAlMinBiasHI) from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker phase2_tracker.toModify(ALCARECOTkAlMinBias, etaMin = -4, etaMax = 4)