CMS 3D CMS Logo

ALCARECODtCalib_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import copy
5 
7 
8 # AlCaReco for DT calibration
9 ALCARECODtCalibHLTFilter = copy.deepcopy(hltHighLevel)
10 #ALCARECODtCalibHLTFilter.andOr = True ## choose logical OR between Triggerbits
11 #ALCARECODtCalibHLTFilter.HLTPaths = ['HLT_L1MuOpen*', 'HLT_L1Mu*']
12 ALCARECODtCalibHLTFilter.throw = False ## dont throw on unknown path names
13 ALCARECODtCalibHLTFilter.eventSetupPathsKey = 'DtCalib'
14 
16 dt4DSegmentsNoWire = dt4DSegmentsCfiRef.dt4DSegments.clone()
17 dt4DSegmentsNoWire.Reco4DAlgoConfig.recAlgoConfig.tTrigModeConfig.doWirePropCorrection = False
18 dt4DSegmentsNoWire.Reco4DAlgoConfig.Reco2DAlgoConfig.recAlgoConfig.tTrigModeConfig.doWirePropCorrection = False
19 
20 #this is to select collisions
21 from RecoMET.METFilters.metFilters_cff import primaryVertexFilter, noscraping
22 
23 seqALCARECODtCalib = cms.Sequence(primaryVertexFilter * noscraping * ALCARECODtCalibHLTFilter * DTCalibMuonSelection * dt4DSegmentsNoWire)
24 
25 ## customizations for the pp_on_AA_2018 eras
26 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
27 pp_on_AA_2018.toModify(ALCARECODtCalibHLTFilter,
28  eventSetupPathsKey='DtCalibHI'
29 )
30 
31 seqALCARECODtCalibHI = cms.Sequence(ALCARECODtCalibHLTFilter * dt4DSegmentsNoWire)
32 
33 #Specify to use HI sequence for the pp_on_AA_2018 eras
34 pp_on_AA_2018.toReplaceWith(seqALCARECODtCalib,seqALCARECODtCalibHI)